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:
Alexandre Duret-Lutz 2014-05-22 20:31:50 +02:00
parent 31bf8c2c1e
commit e299a3d1bf
4 changed files with 70 additions and 77 deletions

View file

@ -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_;