gfguarantee: fix selection of moved init state
Fixes #357. * spot/twaalgos/gfguarantee.cc: Decide that a moved init state is to close from the terminal state *before* actually modifying the automaton. * tests/core/ltl2tgba2.test: Add a test.
This commit is contained in:
parent
04d05104fa
commit
c1b7497f84
2 changed files with 27 additions and 5 deletions
|
|
@ -378,3 +378,13 @@ ltl2tgba -Fformulas/1 --stats='%f, %s,%t' |
|
|||
ltl2tgba -BD -F-/1 --stats='%f,%>, %s,%t' > output
|
||||
|
||||
diff formulas output
|
||||
|
||||
# Regression test for issue #357. The second formula used to
|
||||
# incorrectly produce 13 edges when translated after the first one
|
||||
# because the transition were explored in a different order.
|
||||
ltl2tgba -D 'a | Fb' 'GF(d & (!c | XXc))' --stats=%s,%e,%d >out
|
||||
cat >expected <<EOF
|
||||
3,5,1
|
||||
4,12,1
|
||||
EOF
|
||||
diff out expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue