Fix a bug in spot.complete()

spot.complete() could complete an empty co-Büchi automaton into an
automaton accepting everything.

* NEWS: Document it
* spot/twaalgos/complete.cc: Fix it
* tests/core/complete.test, tests/core/prodor.test: Test it
This commit is contained in:
Maximilien Colange 2017-08-28 17:15:10 +02:00
parent eb91ecf66f
commit 1b2f2a79c1
4 changed files with 59 additions and 7 deletions

3
NEWS
View file

@ -215,6 +215,9 @@ New in spot 2.3.5.dev (not yet released)
generalized co-Büchi), it would sometimes output an automaton with
transition-based acceptance but marked as state-based.
- The complete() function could complete an empty co-Büchi automaton into an
automaton accepting everything.
Backward-incompatible changes:
- spot::acc_cond::mark_t::operator bool() has been marked as