sbacc: remove spurious initial state in some output
This fixes #492, based on a report from Jérôme Dubois. * spot/twaalgos/sbacc.cc: If the initial state is in a rejecting component, start with an initial state whose colors are unsat_mark. * tests/core/sbacc.test: Add test case. * tests/python/pdegen.py: Adjust it.
This commit is contained in:
parent
253dd80b53
commit
c0a43cd92b
4 changed files with 47 additions and 7 deletions
|
|
@ -289,3 +289,37 @@ State: 0 [0] 0 {0}
|
|||
State: 1 [0] 1 [0] 0
|
||||
--END--
|
||||
EOF
|
||||
|
||||
autfilt -S > out <<EOF
|
||||
HOA: v1
|
||||
States: 2
|
||||
Start: 0
|
||||
AP: 2 "a" "b"
|
||||
acc-name: co-Buchi
|
||||
Acceptance: 1 Fin(0)
|
||||
properties: trans-labels explicit-labels trans-acc
|
||||
--BODY--
|
||||
State: 0
|
||||
[0] 0 {0}
|
||||
[1] 1
|
||||
State: 1
|
||||
[1] 1 {0}
|
||||
--END--
|
||||
EOF
|
||||
cat >exp <<EOF
|
||||
HOA: v1
|
||||
States: 2
|
||||
Start: 0
|
||||
AP: 2 "a" "b"
|
||||
acc-name: co-Buchi
|
||||
Acceptance: 1 Fin(0)
|
||||
properties: trans-labels explicit-labels state-acc colored
|
||||
--BODY--
|
||||
State: 0 {0}
|
||||
[0] 0
|
||||
[1] 1
|
||||
State: 1 {0}
|
||||
[1] 1
|
||||
--END--
|
||||
EOF
|
||||
diff out exp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue