fix is_generalized_rabin() and is_generalized_streett()

Fixes #325.

* spot/twa/acc.cc: Here.
* tests/core/accsimpl.test: New test case.
* NEWS: Mention the issue.
This commit is contained in:
Alexandre Duret-Lutz 2018-02-16 16:34:08 +01:00
parent 9ec6e9172c
commit 5a2e4f54c5
3 changed files with 36 additions and 6 deletions

View file

@ -28,3 +28,26 @@ set -e
ltlcross -f FGa \
'ltl2tgba -G -D %f | autfilt --complement >%O' \
'ltl2tgba -G -D %f | autfilt --complement | autfilt --simplify-acceptance >%O'
cat >325 <<EOF
HOA: v1
States: 1
Start: 0
AP: 2 "a" "b"
acc-name: Rabin 3
Acceptance: 6 (Fin(0) & Inf(1)) | (Fin(2) & Inf(3)) | (Fin(4) & Inf(5))
properties: trans-labels explicit-labels trans-acc complete
properties: deterministic
--BODY--
State: 0
[!0&!1] 0 {0 4}
[!0&1] 0 {0 3 4}
[0&!1] 0 {2 5}
[0&1] 0 {1 2 5}
--END--
EOF
autfilt --simplify-acceptance 325 > 325s
exp='4 Fin(0) | (Fin(0) & Inf(1)) | (Fin(2) & Inf(3))'
test "$exp" = "`autfilt --stats='%a %g' 325s`"