remove_fin: improve behavior on unclean acceptance

Related to #188.  This is a third fix that independently
makes `'utfilt --is-unambiguous -q smaller.hoa' instantaneous.

* spot/twaalgos/remfin.cc: Clean the received automaton if
necessary.
* bin/autfilt.cc: No need to call cleanup_acceptance_here() before
remove_fin() anymore.
* tests/core/remfin.test: Add an additional test.
* NEWS: Mention the change.
This commit is contained in:
Alexandre Duret-Lutz 2016-10-19 10:34:23 +02:00
parent 3dc084c4f6
commit 56f768f5a6
4 changed files with 363 additions and 4 deletions

View file

@ -979,7 +979,7 @@ namespace
spot::strip_acceptance_here(aut);
if (opt_merge)
aut->merge_edges();
if (opt_clean_acc || opt_rem_fin)
if (opt_clean_acc)
cleanup_acceptance_here(aut);
if (opt_sep_sets)
separate_sets_here(aut);