simplify_acceptance: remove one useless call

* spot/twaalgos/cleanacc.cc (merge_identical_marks_here): Do not call
cleanup_acceptance_here(), as this has already been done.
This commit is contained in:
Alexandre Duret-Lutz 2018-02-16 16:38:05 +01:00
parent 5a2e4f54c5
commit 5c39063588

View file

@ -69,17 +69,16 @@ namespace spot
twa_graph_ptr cleanup_acceptance(const_twa_graph_ptr aut) twa_graph_ptr cleanup_acceptance(const_twa_graph_ptr aut)
{ {
return cleanup_acceptance_here(make_twa_graph(aut, return cleanup_acceptance_here(make_twa_graph(aut, twa::prop_set::all()));
twa::prop_set::all()));
} }
namespace namespace
{ {
twa_graph_ptr merge_identical_marks_here(twa_graph_ptr aut) twa_graph_ptr merge_identical_marks_here(twa_graph_ptr aut)
{ {
// always cleanup before proceeding, otherwise if some mark appears in the // /!\ This assumes that the acceptance condition has been
// acceptance condition, but not in the automaton the result is undefined. // cleaned up first. If some mark appears in the acceptance
cleanup_acceptance_here(aut, false); // condition but not in the automaton, the result is undefined.
auto& acc = aut->acc(); auto& acc = aut->acc();
auto& c = acc.get_acceptance(); auto& c = acc.get_acceptance();