-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from csanadtelbisz/xcfa-coi-benchmark
Xcfa COI SPIN artifact code
- Loading branch information
Showing
20 changed files
with
632 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...ts/common/analysis/src/main/java/hu/bme/mit/theta/analysis/algorithm/cegar/COILogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package hu.bme.mit.theta.analysis.algorithm.cegar; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class COILogger { | ||
static long coiTimer = 0; | ||
static long transFuncTimer = 0; | ||
private static long startCoi = 0; | ||
private static long startTransFunc = 0; | ||
public static void startCoiTimer() { | ||
startCoi = System.currentTimeMillis(); | ||
} | ||
public static void stopCoiTimer() { | ||
coiTimer += System.currentTimeMillis() - startCoi; | ||
} | ||
public static void startTransFuncTimer() { | ||
startTransFunc = System.currentTimeMillis(); | ||
} | ||
public static void stopTransFuncTimer() { | ||
transFuncTimer += System.currentTimeMillis() - startTransFunc; | ||
} | ||
|
||
static long nops = 0; | ||
static List<Long> nopsList = new ArrayList<>(); | ||
public static void incNops() { | ||
nops++; | ||
} | ||
public static void decNops() { | ||
nops--; | ||
} | ||
static long havocs = 0; | ||
static List<Long> havocsList = new ArrayList<>(); | ||
public static void incHavocs() { | ||
havocs++; | ||
} | ||
public static void decHavocs() { | ||
havocs--; | ||
} | ||
static long allLabels = 0; | ||
static List<Long> allLabelsList = new ArrayList<>(); | ||
public static void incAllLabels() { | ||
allLabels++; | ||
} | ||
static long exploredActions = 0; | ||
static List<Long> exploredActionsList = new ArrayList<>(); | ||
public static void incExploredActions() { | ||
exploredActions++; | ||
} | ||
static long covers = 0; | ||
static List<Long> coversList = new ArrayList<>(); | ||
public static void incCovers() { | ||
covers++; | ||
} | ||
public static void newIteration() { | ||
nopsList.add(nops); | ||
havocsList.add(havocs); | ||
allLabelsList.add(allLabels); | ||
exploredActionsList.add(exploredActions); | ||
coversList.add(covers); | ||
nops = 0; | ||
havocs = 0; | ||
allLabels = 0; | ||
exploredActions = 0; | ||
covers = 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.