|
spot 2.16
|
Convert a (cube) model into a twa. Note that this algorithm cannot be run in parallel but could. More...
#include <spot/mc/utils.hh>
Classes | |
| struct | todo__element |
| DFS stack element pairing a state its with successor iterator. More... | |
Public Member Functions | |
| kripkecube_to_twa (kripkecube< State, SuccIterator > &sys, bdd_dict_ptr dict) | |
| Constructor for kripkecube-to-twa conversion. | |
| ~kripkecube_to_twa () | |
| Destructor. | |
| void | run () |
| Run the conversion algorithm. | |
| void | setup () |
| Setup algorithm resources. | |
| bool | push (State s, unsigned i) |
| Push state to stack. | |
| bool | pop (State) |
| Pop state from stack. | |
| void | edge (unsigned src, unsigned dst) |
| Add edge from src to dst. | |
| void | finalize () |
| Finalize the result twa. | |
| twa_graph_ptr | twa () |
| Return the resulting twa. | |
Protected Types | |
| typedef std::unordered_map< const State, int, StateHash, StateEqual > | visited__map |
| Type alias for visited map. | |
Protected Attributes | |
| kripkecube< State, SuccIterator > & | sys_ |
| Reference to system model. | |
| std::vector< todo__element > | todo_ |
| DFS todo stack. | |
| visited__map | visited_ |
| Visited states map. | |
| unsigned int | dfs_number_ = 0 |
| DFS numbering counter. | |
| unsigned int | transitions_ = 0 |
| Transitions counter. | |
| spot::twa_graph_ptr | res_ |
| Result twa. | |
| std::vector< std::string > * | names_ |
| State names. | |
| bdd_dict_ptr | dict_ |
| BDD dictionary. | |
| std::unordered_map< int, int > | reverse_binder_ |
| Reverse binding for APs. | |
Convert a (cube) model into a twa. Note that this algorithm cannot be run in parallel but could.
|
protected |
Type alias for visited map.
|
inline |
Constructor for kripkecube-to-twa conversion.
|
inline |
Destructor.
|
inline |
Add edge from src to dst.
References spot::cube_to_bdd().
|
inline |
Finalize the result twa.
|
inline |
Pop state from stack.
|
inline |
Push state to stack.
|
inline |
Run the conversion algorithm.
|
inline |
Setup algorithm resources.
References spot::ap, spot::make_bdd_dict(), and spot::make_twa_graph().
|
inline |
Return the resulting twa.
|
protected |
DFS numbering counter.
|
protected |
BDD dictionary.
|
protected |
State names.
|
protected |
Result twa.
|
protected |
Reverse binding for APs.
|
protected |
Reference to system model.
|
protected |
DFS todo stack.
|
protected |
Transitions counter.
|
protected |
Visited states map.
1.9.8