contains: fix the semantics
spot::contains(a, b) should test a⊇b. It was testing a⊆b instead. * NEWS: Mention the bug. * spot/twaalgos/contains.cc, spot/twaalgos/contains.hh: Fix the code and documentation. * tests/python/contains.ipynb: Adjust description and expected results. * python/spot/__init__.py: Also swap the argument of language_containment_checker.contains() * bin/autfilt.cc: Adjust usage.
This commit is contained in:
parent
4ce0d92896
commit
23722c031f
6 changed files with 27 additions and 50 deletions
|
|
@ -1047,7 +1047,7 @@ def bdd_to_formula(b, dic=_bdd_dict):
|
|||
|
||||
def language_containment_checker(dic=_bdd_dict):
|
||||
from spot.impl import language_containment_checker as c
|
||||
c.contains = c.contained
|
||||
c.contains = lambda this, a, b: c.contained(this, b, a)
|
||||
c.are_equivalent = c.equal
|
||||
return c(dic)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue