Commit 1b2f9fe5 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

degen: fix a memory leak

* src/tgbaalgos/degen.cc (degeneralize): Do not call i->current_state()
to get the current SCC, as we already have the state in d.first.
parent 63cb925f
......@@ -381,11 +381,21 @@ namespace spot
names[d.first] = uniq.size();
#endif
// Check whether the target's SCC is accepting
bool is_scc_acc = false;
int scc = use_scc ? m.scc_of_state(i->current_state()) : -1;
if (!use_scc || m.accepting(scc))
is_scc_acc = true;
// Check whether the target SCC is accepting
bool is_scc_acc;
int scc;
if (use_scc)
{
scc = m.scc_of_state(d.first);
is_scc_acc = m.accepting(scc);
}
else
{
// If we have no SCC information, treat all SCCs as
// accepting.
scc = -1;
is_scc_acc = true;
}
// The old level is slevel. What should be the new one?
bdd acc = i->current_acceptance_conditions();
......
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