print_hoa: add support for universal branches

* spot/twaalgos/hoa.cc: Implement it.
* tests/python/alternating.py: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2016-11-24 21:13:13 +01:00
parent 6aad559c29
commit 56df459c75
2 changed files with 52 additions and 10 deletions

View file

@ -50,3 +50,22 @@ try:
except RuntimeError:
received = True
assert received
h = aut.to_str('hoa')
print(h)
assert h == """HOA: v1
States: 3
Start: 0
AP: 2 "p1" "p2"
acc-name: Buchi
Acceptance: 1 Inf(0)
properties: univ-branch trans-labels explicit-labels trans-acc
--BODY--
State: 0
[0] 1&2 {0}
[1] 0&1
State: 1
[0&1] 0&2&1
State: 2
[0 | 1] 2
--END--"""