simulation: simplify using tgba_digraph more
* src/graph/graph.hh (new_states): New. * src/tgba/tgbagraph.hh (graph_t): Make it public. * src/tgbaalgos/simulation.cc: Get read of the acc_compl_automaton class and replace it by a loop over all states of a tgba_digraph. Remove some useless data structures.
This commit is contained in:
parent
2c36ef54c0
commit
bb2ce45b8a
3 changed files with 112 additions and 224 deletions
|
|
@ -332,6 +332,15 @@ namespace spot
|
|||
return s;
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
state new_states(unsigned n, Args&&... args)
|
||||
{
|
||||
state s = states_.size();
|
||||
while (n--)
|
||||
states_.emplace_back(std::forward<Args>(args)...);
|
||||
return s;
|
||||
}
|
||||
|
||||
state_storage_t&
|
||||
state_storage(state s)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue