remove_fin: never return acceptance "f"
Fixes #333. * spot/twaalgos/remfin.cc, spot/twaalgos/remfin.hh, spot/twaalgos/totgba.cc: Adjust. The assert() added to remove_fin() triggered a lot of failure in the test suite before the different functions were fixed. * tests/core/remfin.test, tests/python/tra2tba.py: Adjust expected result. * NEWS: Mention the bug.
This commit is contained in:
parent
f2b3653226
commit
1db3472a99
6 changed files with 64 additions and 14 deletions
|
|
@ -757,6 +757,18 @@ namespace spot
|
|||
}
|
||||
}
|
||||
simplify_acceptance_here(out);
|
||||
if (out->acc().is_f())
|
||||
{
|
||||
// "f" is not generalized-Büchi. Just return an
|
||||
// empty automaton instead.
|
||||
auto res = make_twa_graph(out->get_dict());
|
||||
res->set_generalized_buchi(0);
|
||||
res->set_init_state(res->new_state());
|
||||
res->prop_stutter_invariant(true);
|
||||
res->prop_weak(true);
|
||||
res->prop_complete(false);
|
||||
return res;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue