spot::sbacc() works on alternating automata, fix dualize

Fixes #273.

* NEWS: Mention this.
* spot/twaalgos/dualize.cc, tests/python/dualize.py: Adapt dualize.
* spot/twaalgos/sbacc.cc, tests/core/sbacc.test: sbacc support
  alternating automata
This commit is contained in:
Thomas Medioni 2017-06-30 15:01:04 +02:00
parent c8889e65f0
commit 7e7c257597
5 changed files with 157 additions and 46 deletions

View file

@ -224,3 +224,46 @@ State: 1
EOF
autfilt --sbacc taut.hoa > out.hoa
diff out.hoa expect.hoa
cat >alt.hoa <<EOF
HOA: v1
States: 4
Start: 0
AP: 1 "a"
Acceptance: 2 Inf(0) & Inf(1)
--BODY--
State: 0
[0] 1&2 {0}
[0] 3 {0}
State: 1
[0] 0 {1}
State: 2
[t] 2
State: 3
[!0] 0
--END--
EOF
cat >expect.hoa <<EOF
HOA: v1
States: 4
Start: 0
AP: 1 "a"
acc-name: generalized-Buchi 2
Acceptance: 2 Inf(0)&Inf(1)
properties: univ-branch trans-labels explicit-labels state-acc
--BODY--
State: 0 {0}
[0] 3
[0] 1&2
State: 1 {0 1}
[0] 0
State: 2
[t] 2
State: 3 {0}
[!0] 0
--END--
EOF
autfilt --sbacc alt.hoa > out.hoa
diff out.hoa expect.hoa