run: fix reduce on automata with Fin

Reported by Florian Renkin.

* spot/twaalgos/emptiness.cc (reduce): If the automaton uses Fin
acceptance, check the reduced cycle and revert to the original cycle
if necessary.
* tests/python/intrun.py: New file.
* tests/Makefile.am: Add it.
* spot/twaalgos/emptiness.hh: Improve documentation.
This commit is contained in:
Alexandre Duret-Lutz 2020-07-10 18:05:18 +02:00
parent 9caba8bfe8
commit f2403c91dc
5 changed files with 80 additions and 9 deletions

5
NEWS
View file

@ -61,6 +61,11 @@ New in spot 2.9.0.dev (not yet released)
- Improve ltldo diagnostics to fix spurious test-suite failure on
systems with antique GNU libc.
- twa_run::reduce() could reduce accepting runs incorrectly on
automata using Fin in their acceptance condition. This caused
issues in intersecting_run(), exclusive_run(),
intersecting_word(), exclusive_word(), which all call reduce().
New in spot 2.9 (2020-04-30)
Command-line tools: