Class RewriteGraph
java.lang.Object
es.ucm.maude.bindings.RewriteGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
int
getNextState
(int stateNr, int index) List the successors of a state in the graph.
int
Get the number of rewrites used to generate this graph,
including the evaluation of atomic propositions.int
Get the number of states in the graph.getRule
(int origin, int dest) Get a rule that connects two states.
int
getStateParent
(int stateNr) Get the (one) parent of a given state.
getStateTerm
(int stateNr) Get the term of the given state.
modelCheck
(Term formula) Model check a given LTL formula.
-
Constructor Details
-
RewriteGraph
Construct a state transition graph.
- Parameters:
term
- Initial state term (it will be reduced).
-
-
Method Details
-
delete
public void delete() -
getStateTerm
Get the term of the given state.
- Parameters:
stateNr
- A state number.
-
getRule
Get a rule that connects two states.
- Parameters:
origin
- Origin state number.dest
- Destination state number.
- Returns:
- A rule that connects the two states or null if none.
-
getNrRewrites
public int getNrRewrites()Get the number of rewrites used to generate this graph,
including the evaluation of atomic propositions. -
modelCheck
Model check a given LTL formula.
- Parameters:
formula
- Term of theFormula
sort.
- Returns:
- The result of model checking.
-
getNrStates
public int getNrStates()Get the number of states in the graph. -
getNextState
public int getNextState(int stateNr, int index) List the successors of a state in the graph.
- Parameters:
stateNr
- A state number.index
- A child index (from zero).
- Returns:
- The state number of a successor or -1.
-
getStateParent
public int getStateParent(int stateNr) Get the (one) parent of a given state.
- Parameters:
stateNr
- A state number.
- Returns:
- The state number of the parent or -1.
-