Impove simplify_acceptance
* spot/twaalgos/cleanacc.cc: Use cleanup_acceptance if propagate_fin_inf was useful. * spot/twa/acc.hh: Avoid to reverse the order of the condition in propagate_fin_inf. * tests/core/accsimpl.test, tests/core/remfin.test, tests/python/merge.py, tests/python/automata.ipynb: Update tests. * tests/python/toparity.py: Update tests and add tests to check the number of states.
This commit is contained in:
parent
a020607664
commit
630b8333fe
7 changed files with 1029 additions and 1139 deletions
|
|
@ -49,5 +49,5 @@ State: 0
|
|||
EOF
|
||||
|
||||
autfilt --simplify-acceptance 325 > 325s
|
||||
exp='4 Fin(0) | (Fin(0) & Inf(1)) | (Fin(2) & Inf(3))'
|
||||
exp='3 Fin(0) | (Fin(1) & Inf(2))'
|
||||
test "$exp" = "`autfilt --stats='%a %g' 325s`"
|
||||
|
|
|
|||
|
|
@ -336,27 +336,24 @@ State: 3
|
|||
[!0&!1] 3 {0}
|
||||
--END--
|
||||
HOA: v1
|
||||
States: 4
|
||||
States: 3
|
||||
Start: 0
|
||||
AP: 2 "a" "b"
|
||||
Acceptance: 4 (Inf(0)&Inf(1)) | Inf(0) | (Inf(2)&Inf(3))
|
||||
Acceptance: 3 (Inf(1)&Inf(2)) | Inf(0)
|
||||
properties: trans-labels explicit-labels trans-acc
|
||||
--BODY--
|
||||
State: 0
|
||||
[t] 0 {3}
|
||||
[0] 1 {3}
|
||||
[!0] 2 {0 3}
|
||||
[t] 0 {2}
|
||||
[0] 1 {2}
|
||||
[!0] 2 {0 2}
|
||||
State: 1
|
||||
[1] 0 {3}
|
||||
[0&1] 1 {0 3}
|
||||
[!0&1] 2 {2 3}
|
||||
[1] 0 {2}
|
||||
[0&1] 1 {0 2}
|
||||
[!0&1] 2 {1 2}
|
||||
State: 2
|
||||
[!1] 0
|
||||
[0&!1] 1 {0}
|
||||
[!0&!1] 2 {0}
|
||||
[!0&!1] 3
|
||||
State: 3
|
||||
[!0&!1] 3 {0 1}
|
||||
--END--
|
||||
HOA: v1
|
||||
States: 1
|
||||
|
|
@ -942,7 +939,7 @@ State: 3
|
|||
[!0&!1] 3 {0}
|
||||
--END--
|
||||
HOA: v1
|
||||
States: 4
|
||||
States: 3
|
||||
Start: 0
|
||||
AP: 2 "a" "b"
|
||||
acc-name: Buchi
|
||||
|
|
@ -961,9 +958,6 @@ State: 2
|
|||
[!1] 0
|
||||
[0&!1] 1 {0}
|
||||
[!0&!1] 2 {0}
|
||||
[!0&!1] 3
|
||||
State: 3
|
||||
[!0&!1] 3 {0}
|
||||
--END--
|
||||
HOA: v1
|
||||
States: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue