Impove simplify_acceptance
* spot/twaalgos/cleanacc.cc: Use cleanup_acceptance if propagate_fin_inf was useful. * spot/twa/acc.hh: Avoid to reverse the order of the condition in propagate_fin_inf. * tests/core/accsimpl.test, tests/core/remfin.test, tests/python/merge.py, tests/python/automata.ipynb: Update tests. * tests/python/toparity.py: Update tests and add tests to check the number of states.
This commit is contained in:
parent
a020607664
commit
630b8333fe
7 changed files with 1029 additions and 1139 deletions
|
|
@ -619,8 +619,13 @@ namespace spot
|
|||
simplify_complementary_marks_here(aut);
|
||||
fuse_marks_here(aut);
|
||||
}
|
||||
aut->set_acceptance(aut->acc().propagate_fin_inf());
|
||||
cleanup_acceptance_here(aut, true);
|
||||
auto prop_cond = aut->acc().propagate_fin_inf();
|
||||
if (prop_cond != aut->acc())
|
||||
{
|
||||
aut->set_acceptance(prop_cond);
|
||||
cleanup_acceptance_here(aut, true);
|
||||
}
|
||||
return aut;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue