twa_graph: fix purge_unreachable_states on alternating automata
The algorithm had two problems: it was removing only useless destination from universal destination (instead of removing the entire edge), and it was not properly iterating over the entire reachable automaton. * spot/twa/twagraph.cc: Fix it. * spot/twa/twagraph.hh: Adjust documentation. * tests/core/alternating.test: Add more tests. * tests/python/twagraph.py: Adjust. * NEWS: Mention the bug.
This commit is contained in:
parent
73bb562bf5
commit
6623af67e6
5 changed files with 250 additions and 44 deletions
3
NEWS
3
NEWS
|
|
@ -12,6 +12,9 @@ New in spot 2.3.2.dev (not yet released)
|
|||
the output is "terminal" because dtwa_complement() failed to reset
|
||||
that property.
|
||||
|
||||
- spot::twa_graph::purge_unreachable_states() was misbehaving on
|
||||
alternating automata.
|
||||
|
||||
New in spot 2.3.2 (2017-03-15)
|
||||
|
||||
Tools:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue