translate: fix stutter-invariant flag on leading Xs

Issue discovered by Mikuláš Klokočka and reported by František
Blahoudek.

* spot/twaalgos/translate.cc: Reset the stutter-invariant flag
when adding extra transitions for leading Xs.
* tests/core/stutter-tgba.test: New test case.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2018-12-07 15:53:54 +01:00
parent 560c6f2d48
commit 77f3ba9478
3 changed files with 18 additions and 0 deletions

4
NEWS
View file

@ -90,6 +90,10 @@ New in spot 2.6.3.dev (not yet released)
Bugs fixed:
- translate() would incorrectly mark as stutter-invariant
some automata produced from formulas of the form X(f...)
where f... is syntactically stutter-invariant.
- acc_cond::is_generalized_rabin() and
acc_cond::is_generalized_streett() did not recognize the cases
were a single generalized pair is used.