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
|
|
@ -28,14 +28,14 @@
|
|||
namespace spot
|
||||
{
|
||||
/// \ingroup containment
|
||||
/// \brief Test if the language of \a left is included in that of \a right.
|
||||
/// \brief Test if the language of \a right is included in that of \a left.
|
||||
///
|
||||
/// Both arguments can be either formulas or automata. Formulas
|
||||
/// will be converted into automata.
|
||||
///
|
||||
/// The inclusion check if performed by ensuring that the automaton
|
||||
/// associated to \a left does not intersect the automaton
|
||||
/// associated to the complement of \a right. It helps if \a right
|
||||
/// associated to \a right does not intersect the automaton
|
||||
/// associated to the complement of \a left. It helps if \a left
|
||||
/// is a deterministic automaton or a formula (because in both cases
|
||||
/// complementation is easier).
|
||||
/// @{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue