* src/tgbaalgos/simulation.cc: Fix a bug in the simulation.

This commit is contained in:
Thomas Badie 2012-08-20 17:01:47 +02:00 committed by Alexandre Duret-Lutz
parent bd9e42dd68
commit 0b74f54912

View file

@ -302,6 +302,7 @@ namespace spot
else else
previous_class_[*it_s] = *it_bdd; previous_class_[*it_s] = *it_bdd;
} }
if (it->first != bddfalse)
++it_bdd; ++it_bdd;
} }
} }
@ -415,11 +416,17 @@ namespace spot
// by removing a transition which has as a destination a // by removing a transition which has as a destination a
// state with no outgoing transition. // state with no outgoing transition.
if (it->first == bddfalse) if (it->first == bddfalse)
{
now_to_next[it->first] = bddfalse; now_to_next[it->first] = bddfalse;
free_var_.push(bdd_var(*it_bdd));
it_bdd = used_var_.erase(it_bdd);
}
else else
{
now_to_next[it->first] = *it_bdd; now_to_next[it->first] = *it_bdd;
++it_bdd; ++it_bdd;
} }
}
update_po(now_to_next); update_po(now_to_next);
} }