LAR made smarter with symmetry-based degeneralization
* spot/twaalgos/toparity.cc: here * spot/twa/acc.hh, spot/twa/acc.cc: compute symmetries of an acceptance condition * tests/python/accparse2.py, tests/python/toparity.py: test it
This commit is contained in:
parent
3303b86a89
commit
516e9536df
5 changed files with 173 additions and 23 deletions
|
|
@ -20,6 +20,21 @@
|
|||
|
||||
import spot
|
||||
|
||||
a = spot.automaton("""HOA: v1
|
||||
States: 1
|
||||
Start: 0
|
||||
AP: 2 "a" "b"
|
||||
Acceptance: 2 Inf(0)|Inf(1)
|
||||
--BODY--
|
||||
State: 0
|
||||
[0&1] 0 {0 1}
|
||||
[0&!1] 0 {0}
|
||||
[!0&1] 0 {1}
|
||||
[!0&!1] 0
|
||||
--END--""")
|
||||
p = spot.to_parity(a)
|
||||
assert spot.are_equivalent(a, p)
|
||||
|
||||
for f in spot.randltl(4, 400):
|
||||
d = spot.translate(f, "det", "G")
|
||||
p = spot.to_parity(d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue