twa_graph: introduce copy_state_names_from()

* spot/twa/twagraph.cc, spot/twa/twagraph.hh: Here.  Also
make sure "original-states" survives defrag_states().
* NEWS: Mention it.
* tests/python/origstate.py: New file.
* tests/Makefile.am: Add it.
This commit is contained in:
Alexandre Duret-Lutz 2017-04-10 19:26:52 +02:00
parent 865171230f
commit 46d8aaaae1
5 changed files with 160 additions and 0 deletions

4
NEWS
View file

@ -62,6 +62,10 @@ New in spot 2.3.3.dev (not yet released)
- The 'spot.gen' package exports the functions from libspotgen.
See https://spot.lrde.epita.fr/ipynb/gen.html for examples.
- twa_graph::copy_state_names_from() can be used to copy the state
names from another automaton, honoring "original-states" if
present.
Bugs fixed:
- the transformation to state-based acceptance (spot::sbacc()) was