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:
Alexandre Duret-Lutz 2015-05-12 20:13:19 +02:00
parent 487a86d06a
commit 778d8fe95b
3 changed files with 43 additions and 3 deletions

View file

@ -2537,9 +2537,8 @@ namespace spot
}
}
for (auto n: namer->names())
n->destroy();
delete namer;
// Set the following to true to preserve state names.
a->release_formula_namer(namer, false);
dict->register_propositions(fc.used_vars(), a);