simulation: build tgba_digraph
* src/tgbaalgos/simulation.cc: Buid a tgba_digraph as the result of the simulation. * src/tgba/tgbagraph.hh (create_namer): New function. * src/tgbatest/basimul.test: Add an additional test case that caused a bug fixed in a previous patch. * src/tgbatest/sim.test: Adjust.
This commit is contained in:
parent
31bf8c2c1e
commit
e299a3d1bf
4 changed files with 70 additions and 77 deletions
|
|
@ -21,6 +21,7 @@
|
|||
# define SPOT_TGBA_TGBAGRAPH_HH
|
||||
|
||||
#include "graph/graph.hh"
|
||||
#include "graph/ngraph.hh"
|
||||
#include "tgba/bdddict.hh"
|
||||
#include "tgba/tgba.hh"
|
||||
#include "misc/bddop.hh"
|
||||
|
|
@ -178,6 +179,15 @@ namespace spot
|
|||
return g_;
|
||||
}
|
||||
|
||||
template <typename State_Name,
|
||||
typename Name_Hash = std::hash<State_Name>,
|
||||
typename Name_Equal = std::equal_to<State_Name>>
|
||||
named_graph<graph_t, State_Name, Name_Hash, Name_Equal>*
|
||||
create_namer()
|
||||
{
|
||||
return new named_graph<graph_t, State_Name, Name_Hash, Name_Equal>(g_);
|
||||
}
|
||||
|
||||
const graph_t& get_graph() const
|
||||
{
|
||||
return g_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue