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

View file

@ -103,6 +103,16 @@ test `autfilt -c --is-stutter-invariant input` = 0
grep '!deterministic' input.2
grep '!stutter-invariant' input.2
# From an email by František Blahoudek and Mikuláš Klokočka
ltl2tgba 'X(a & GF(a | Gb))' > input
grep stutter input && exit 1
grep deterministic input && exit 1
# This will involve a complementation
run 0 autfilt -H1.1 --check=stutter input > input.2
test `autfilt -c --is-stutter-invariant input` = 0
grep '!deterministic' input.2
grep '!stutter-invariant' input.2
# From an email by Anton Pirogov
cat >pirogov <<EOF