genem: Implement accepting cycle search
Implement an accepting run search in spot::sccinfo, use it with the generic emptiness check. * spot/twaalgos/sccinfo.cc, spot/twaalgos/sccinfo.hh: Here. * spot/twaalgos/genem.cc, spot/twaalgos/genem.hh: Use it. * tests/python/genem.py: Test it.
This commit is contained in:
parent
4ecd066c0e
commit
51ca5ecdb1
5 changed files with 217 additions and 16 deletions
|
|
@ -189,5 +189,8 @@ def run_bench(automata):
|
|||
res = str(res1)[0] + str(res2)[0] + str(res3)[0]
|
||||
print(res)
|
||||
assert res in ('TTT', 'FFF')
|
||||
if res == 'FFF':
|
||||
run3 = spot.generic_accepting_run(aut)
|
||||
assert run3.replay(spot.get_cout()) is True
|
||||
|
||||
run_bench([a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a11, a360])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue