fix degeneralize_tba after accepting transition

* spot/twaalgos/degen.cc (degeneralize_tba): Here.
* tests/python/pdegen.py, tests/python/simstate.py: Adjust expected
values.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2020-02-03 15:38:51 +01:00
parent f9e75de647
commit b733d486be
4 changed files with 14 additions and 5 deletions

View file

@ -661,7 +661,7 @@ namespace spot
{
d.second = 0; // Make it go to the first level.
// Skip as many levels as possible.
if (!a->acc().accepting(acc) && !skip_levels)
if (!a->acc().accepting(acc) && skip_levels)
{
if (use_cust_acc_orders)
{