java.lang.Object
dev.civl.gmc.smc.SMC
This is a simple sequential model checker (SMC) implementing general model
checker (GMC).
The main purposes is for both testing interfaces of GMC and providing and simple sequential implementation example for GMC.
The main purposes is for both testing interfaces of GMC and providing and simple sequential implementation example for GMC.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(MatrixDirectedGraph graph, StatePredicateIF<Integer> predicate, GMCConfiguration config) For a givenMatrixDirectedGraphgraphand apredicateimplementingStatePredicateIF,
If thepredicateis hold,truewill be returned, elsefalse.
Note that the default starting state is the state with id of0booleanrun(MatrixDirectedGraph graph, StatePredicateIF<Integer> predicate, Integer initialState, GMCConfiguration config) For a givenMatrixDirectedGraphgraph, apredicateimplementingStatePredicateIFand a starting stateinitialState,
If thepredicateis hold,truewill be returned, elsefalse.voidsetDebug(boolean isDebug) Set SMC to print debugging info, iffisDebugistrue
-
Constructor Details
-
SMC
public SMC()
-
-
Method Details
-
run
public boolean run(MatrixDirectedGraph graph, StatePredicateIF<Integer> predicate, Integer initialState, GMCConfiguration config) For a givenMatrixDirectedGraphgraph, apredicateimplementingStatePredicateIFand a starting stateinitialState,
If thepredicateis hold,truewill be returned, elsefalse.- Parameters:
graph- AMatrixDirectedGraphrepresenting the transition map.predicate- A predicate of a propertyinitialState- The starting state- Returns:
trueiff there is a state in the violation state list, elsefalse.
-
run
public boolean run(MatrixDirectedGraph graph, StatePredicateIF<Integer> predicate, GMCConfiguration config) For a givenMatrixDirectedGraphgraphand apredicateimplementingStatePredicateIF,
If thepredicateis hold,truewill be returned, elsefalse.
Note that the default starting state is the state with id of0- Parameters:
graph- AMatrixDirectedGraphrepresenting the transition map.predicate- A predicate of a property- Returns:
trueiff there is a state in the violation state list, elsefalse.
-
setDebug
public void setDebug(boolean isDebug) Set SMC to print debugging info, iffisDebugistrue
-