parity_type_to_parity: Add missing cases
* spot/twaalgos/toparity.cc: Correct some cases where the solution was not detected. * tests/python/toparity.py: Update tests.
This commit is contained in:
parent
abe7222973
commit
7868115a8b
2 changed files with 56 additions and 21 deletions
|
|
@ -547,4 +547,26 @@ State: 9 3 {4} 2 3 {4} 6 --END--
|
|||
b = spot.iar_maybe(a)
|
||||
tc.assertEqual(b.num_states(), 87)
|
||||
tc.assertTrue(a.equivalent_to(b))
|
||||
test(a, [87, 91, 91, 87, 87, 87, 51, 51, 21])
|
||||
test(a, [87, 91, 91, 87, 87, 87, 51, 35, 21])
|
||||
|
||||
a = spot.automaton("""HOA: v1
|
||||
States: 4
|
||||
Start: 0
|
||||
AP: 2 "p0" "p1"
|
||||
Acceptance: 2 Fin(1) & Fin(0)
|
||||
properties: trans-labels explicit-labels state-acc
|
||||
--BODY--
|
||||
State: 0
|
||||
[!0&!1] 2
|
||||
[!0&!1] 1
|
||||
State: 1
|
||||
[!0&1] 0
|
||||
[0&1] 3
|
||||
State: 2
|
||||
[0&!1] 1
|
||||
State: 3 {0}
|
||||
[!0&1] 3
|
||||
[!0&!1] 1
|
||||
--END--""")
|
||||
b = spot.parity_type_to_parity(a)
|
||||
tc.assertTrue(spot.are_equivalent(a, b))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue