rs_like: fix bug to accept Fin | Fin , Inf & Inf

co-Büchi is now recognized as Streett-like, Büchi as Rabin-like.
Also recognized Inf & Inf & Inf... as Streett-like and
Fin | Fin | Fin... as Rabin-like.

* spot/twa/acc.cc: Fix the bug
* tests/python/rs_like.py: Add some test case
This commit is contained in:
Thomas Medioni 2017-05-23 10:50:54 +02:00
parent acdaaac4f0
commit 4da6a5cde1
2 changed files with 25 additions and 15 deletions

View file

@ -54,6 +54,9 @@ def test_rabin(acc, expected_rabin_like, expected_pairs):
o_acc = spot.acc_cond(acc.get_acceptance().complement())
test_rs(o_acc, 'streett', expected_rabin_like, switch_pairs(expected_pairs))
acc = spot.acc_cond(spot.acc_code('Fin(0)'))
test_streett(acc, True, [spot.rs_pair(m0, mall)])
acc = spot.acc_cond(spot.acc_code('Fin(0)|Inf(1)'))
test_streett(acc, True, [spot.rs_pair(m0, m1)])