simplify_acceptance: fix handling of first edge

Fixes #315.

* spot/twaalgos/cleanacc.cc (simplify_acceptance_here): Do not
compare the first edge against previous_a.
* tests/core/accsimpl.test: New file.
* tests/Makefile.am: Add it.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2018-01-06 09:13:52 +01:00
parent 17b295e10f
commit 2feba6ad5e
4 changed files with 67 additions and 10 deletions

7
NEWS
View file

@ -256,6 +256,13 @@ New in spot 2.4.4.dev (net yet released)
been removed. It's a low-level function was not used anywhere in
Spot anymore, since it's better to use spot::twa::copy_ap_of().
Bugs fixed:
- spot::simplify_acceptance() could produce incorrect output
if the first edge of the automaton was the only one with no
acceptance set. In spot 2.4.x this function was only used
by autfilt --simplify-acceptance.
New in spot 2.4.4 (2017-12-25)
Bugs fixed: