twa: introduce intersects() and friends
* spot/twa/twa.hh, spot/twa/twa.cc (intersects, intersecting_run, intersecting_word): New functions. * NEWS: Mention them. * doc/org/tut51.org, tests/python/bugdet.py: Use them.
This commit is contained in:
parent
bdad288c70
commit
c225747749
5 changed files with 138 additions and 64 deletions
|
|
@ -82,10 +82,10 @@ print("use_simulation=True")
|
|||
b1 = spot.tgba_determinize(b, False, True, True, True)
|
||||
assert b1.num_states() == 5
|
||||
b1 = spot.remove_fin(spot.dtwa_complement(b1))
|
||||
assert spot.otf_product(a, b1).is_empty() == True
|
||||
assert not a.intersects(b1);
|
||||
|
||||
print("\nuse_simulation=False")
|
||||
b2 = spot.tgba_determinize(b, False, True, False, True)
|
||||
assert b2.num_states() == 5
|
||||
b2 = spot.remove_fin(spot.dtwa_complement(b2))
|
||||
assert spot.otf_product(a, b1).is_empty() == True
|
||||
assert not a.intersects(b1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue