fix complete

Alexandre Lewkowicz reported a case where complete() would peek an
existing state that is accepting, and wrongly use it as a sink.

* spot/twaalgos/complete.cc: Fix the function.
* tests/core/complete.test: Add two more tests.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2016-01-14 17:14:01 +01:00
parent 6c62362fe9
commit 51483b9b7f
3 changed files with 85 additions and 14 deletions

2
NEWS
View file

@ -130,6 +130,8 @@ New in spot 1.99.6a (not yet released)
was registered several times.
* product() would incorrectly mark the product of two
sttuter-sensitive automata as stutter-sensitive as well.
* complete() could incorrectly reuse an existing (but accepting!)
state as a sink.
New in spot 1.99.6 (2015-12-04)