ltl2tgba_fm: make it easier to preserve state names
* src/twa/twagraph.cc, src/twa/twagraph.hh (create_formula_namer, release_formula_namer): New functions. * src/twaalgos/ltl2tgba_fm.cc: Use it.
This commit is contained in:
parent
487a86d06a
commit
778d8fe95b
3 changed files with 43 additions and 3 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include "twa/bdddict.hh"
|
||||
#include "twa/twa.hh"
|
||||
#include "twaalgos/dupexp.hh"
|
||||
#include "ltlast/formula.hh"
|
||||
#include <sstream>
|
||||
|
||||
namespace spot
|
||||
|
|
@ -222,6 +223,16 @@ namespace spot
|
|||
return new named_graph<graph_t, State_Name, Name_Hash, Name_Equal>(g_);
|
||||
}
|
||||
|
||||
typename namer<const ltl::formula*>::type*
|
||||
create_formula_namer()
|
||||
{
|
||||
return create_namer<const ltl::formula*>();
|
||||
}
|
||||
|
||||
void
|
||||
release_formula_namer(typename namer<const ltl::formula*>::type* namer,
|
||||
bool keep_names);
|
||||
|
||||
graph_t& get_graph()
|
||||
{
|
||||
return g_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue