Simulation keeps track of simulated states in the input automaton.

* NEWS: Document the change.
* spot/twaalgos/simulation.cc: Implement the change.
* spot/twa/twagraph.cc: `copy_state_names_from` uses simulated states
  info if present.
* spot/twaalgos/determinize.cc: Pretty-print in determinization follows
  simulated states, avoiding possible confusion.
* tests/Makefile.am, tests/python/simstate.py: Add a test.
This commit is contained in:
Maximilien Colange 2017-05-19 17:44:02 +02:00
parent 967b1a4192
commit 7b5ab54530
6 changed files with 228 additions and 12 deletions

5
NEWS
View file

@ -54,6 +54,11 @@ New in spot 2.3.4.dev (not yet released)
the second command outputs an automaton with states that show
references to the first one.
- A new named property for automata called "simulated-states" can be
used to record the origin of a state through simulation. The
behavior is similar to "original-states" above. Determinization
takes advantage of this in its pretty print.
- The new function spot::acc_cond::is_streett_like() checks whether
an acceptance condition is conjunction of disjunctive clauses
containing at most one Inf and at most one Fin. It builds a