* src/tgbaalgos/sccfilter.cc (create_transition): Do not clone

the same node twice when dealing with loops.
This commit is contained in:
Alexandre Duret-Lutz 2009-11-23 22:24:55 +01:00
parent 9a14d28a06
commit ab02ee60fe
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-11-23 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbaalgos/sccfilter.cc (create_transition): Do not clone
the same node twice when dealing with loops.
2009-11-23 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Use bdd_satprefix() to speedup minato on BDDs that are almost cubes.

View file

@ -52,7 +52,7 @@ namespace spot
const ltl::formula* out_f = a->get_label(out_s);
if (!out_aut->has_state(in_f))
in_f->clone();
if (!out_aut->has_state(out_f))
if ((in_f != out_f) && !out_aut->has_state(out_f))
out_f->clone();
return out_aut->create_transition(in_f, out_f);
}