sbacc: remove spurious initial state in some output

This fixes #492, based on a report from Jérôme Dubois.

* spot/twaalgos/sbacc.cc: If the initial state is in a rejecting
component, start with an initial state whose colors are unsat_mark.
* tests/core/sbacc.test: Add test case.
* tests/python/pdegen.py: Adjust it.
This commit is contained in:
Alexandre Duret-Lutz 2021-12-16 17:23:06 +01:00
parent 253dd80b53
commit c0a43cd92b
4 changed files with 47 additions and 7 deletions

6
NEWS
View file

@ -1,6 +1,10 @@
New in spot 2.10.2.dev (not yet released)
Nothing yet.
Bugs fixed:
- On automata where the absence of color is not rejecting
(e.g. co-Büchi) and where the initial state was in a rejecting
SCC, sbacc() could output a superflous state. (Issue #492)
New in spot 2.10.2 (2021-12-03)