-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PEx] Make receive inside while as not implemented for now
Update enum logging and stats reporting PMap: throw error if adding already existing key
- Loading branch information
Showing
6 changed files
with
142 additions
and
66 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
33 changes: 25 additions & 8 deletions
33
Src/PRuntimes/PExplicitRuntime/src/main/java/pexplicit/runtime/STATUS.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 |
---|---|---|
@@ -1,12 +1,29 @@ | ||
package pexplicit.runtime; | ||
|
||
public enum STATUS { | ||
INCOMPLETE, // search still ongoing | ||
SCHEDULEOUT, // schedule limit reached | ||
TIMEOUT, // timeout reached | ||
MEMOUT, // memout reached | ||
VERIFIED, // full state space explored and no bug found | ||
BUG_FOUND, // found a bug | ||
INTERRUPTED, // interrupted by user | ||
ERROR // unexpected error encountered | ||
INCOMPLETE("incomplete"), // search still ongoing | ||
SCHEDULEOUT("scheduleout"), // schedule limit reached | ||
TIMEOUT("timeout"), // timeout reached | ||
MEMOUT("memout"), // memout reached | ||
VERIFIED("proved"), // full state space explored and no bug found | ||
VERIFIED_UPTO_MAX_STEPS("proved"), // full state space explored and no bug found upto max steps | ||
BUG_FOUND("cex"), // found a bug | ||
INTERRUPTED("interrupted"), // interrupted by user | ||
ERROR("error"); // unexpected error encountered | ||
|
||
private String name; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param n Name of the enum | ||
*/ | ||
STATUS(String n) { | ||
this.name = n; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.name; | ||
} | ||
} |
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
22 changes: 19 additions & 3 deletions
22
...ntime/src/main/java/pexplicit/runtime/scheduler/explicit/strategy/SearchStrategyMode.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 |
---|---|---|
@@ -1,7 +1,23 @@ | ||
package pexplicit.runtime.scheduler.explicit.strategy; | ||
|
||
public enum SearchStrategyMode { | ||
DepthFirst, | ||
Random, | ||
Astar | ||
DepthFirst("dfs"), | ||
Random("random"), | ||
Astar("astar"); | ||
|
||
private String name; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param n Name of the enum | ||
*/ | ||
SearchStrategyMode(String n) { | ||
this.name = n; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.name; | ||
} | ||
} |
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