Commit 5c390635 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent 5a2e4f54
Pipeline #558 canceled with stage
in 85 minutes and 2 seconds
......@@ -69,17 +69,16 @@ namespace spot
twa_graph_ptr cleanup_acceptance(const_twa_graph_ptr aut)
{
return cleanup_acceptance_here(make_twa_graph(aut,
twa::prop_set::all()));
return cleanup_acceptance_here(make_twa_graph(aut, twa::prop_set::all()));
}
namespace
{
twa_graph_ptr merge_identical_marks_here(twa_graph_ptr aut)
{
// always cleanup before proceeding, otherwise if some mark appears in the
// acceptance condition, but not in the automaton the result is undefined.
cleanup_acceptance_here(aut, false);
// /!\ This assumes that the acceptance condition has been
// cleaned up first. If some mark appears in the acceptance
// condition but not in the automaton, the result is undefined.
auto& acc = aut->acc();
auto& c = acc.get_acceptance();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment