complement: add a complement() function

* spot/twaalgos/complement.cc,
spot/twaalgos/complement.hh (complement): New function.
* bin/autfilt.cc, spot/twa/twa.cc, spot/twaalgos/contains.cc,
spot/twaalgos/powerset.cc, spot/twaalgos/stutter.cc: Use it.
* tests/core/complement.test: Adjust.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2019-04-05 22:23:02 +02:00
parent 4bb4aeb372
commit 948f99bc4e
9 changed files with 82 additions and 86 deletions

4
NEWS
View file

@ -39,6 +39,10 @@ New in spot 2.7.2.dev (not yet released)
helpful to display automata as "graphs", e.g., when illustrating
algorithms that do not care about labels.
- A new complement() function that return automata with unspecified
acceptance condition. The output can be alternating only if the
input was alternating.
Bugs fixed:
- When processing CSV files with MSDOS-style \r\n line endings,