tra_to_tba: remove more useless edges

* spot/twaalgos/remfin.cc (tra_to_tba): Implement the same
optimization has in the generic remove_fin transformation.
* tests/python/tra2tba.py: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2020-07-24 16:24:28 +02:00
parent 567a5439c5
commit 05e6e08859
3 changed files with 18 additions and 13 deletions

View file

@ -232,7 +232,7 @@ State: 0 "F(Gp3|GFp2)"
""")
exp = """HOA: v1
States: 4
States: 3
Start: 0
AP: 2 "p3" "p2"
acc-name: Buchi
@ -246,14 +246,8 @@ State: 0
State: 1 {0}
[!1] 0
[1] 1
[0&!1] 2
[0&1] 3
State: 2 {0}
[0&!1] 2
[0&1] 3
State: 3 {0}
[0&!1] 2
[0&1] 3
--END--"""
res = spot.remove_fin(aut)
@ -648,9 +642,8 @@ State: 0
[!0] 0
[0] 0 {0}
[!0&!1] 1
[0&!1] 1 {0}
State: 1
[!1] 1 {0}
[!0&!1] 1 {0}
--END--"""
res = spot.remove_fin(aut)