emptiness checks: replace assert-preconditions by exceptions

* spot/twaalgos/couvreurnew.cc, spot/twaalgos/gv04.cc,
spot/twaalgos/magic.cc, spot/twaalgos/se05.cc, spot/twaalgos/tau03.cc,
spot/twaalgos/tau03opt.cc: Throw if precondition on acceptance
condition is not satisfied.
* tests/python/misc-ec.py: New file.
* tests/Makefile.am: Add it.
* NEWS: Mention the change.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-10 14:19:09 +01:00
parent 4c08e7ec00
commit d6d987bd96
9 changed files with 84 additions and 11 deletions

5
NEWS
View file

@ -46,6 +46,11 @@ New in spot 2.3.1.dev (not yet released)
- the Python wrappers for spot::twa_graph::state_from_number and
spot::twa_graph::state_acc_sets were broken in 2.3.
- instantiating an emptiness check on an automaton with unsupported
acceptance condition should throw an exception. This used to be
just an assertion, disabled in release builds; the difference
matters for the Python bindings.
Deprecation notices:
- Using --format=%a to print the number of atomic propositions in