* src/tgbaalgos/emptinesscheck.cc (emptiness_check::complete_cycle):

Do not visit a state more than once.  Report from Soheib Baarir.
This commit is contained in:
Alexandre Duret-Lutz 2004-04-05 12:43:06 +00:00
parent fa6ac39cfb
commit 7fd9459a63
2 changed files with 7 additions and 2 deletions

View file

@ -616,8 +616,8 @@ namespace spot
{
const state* dest = i->current_state();
// Do not escape this SCC.
if (!scc.has_state(dest))
// Do not escape this SCC or visit a state already visited.
if (!scc.has_state(dest) || father.find(dest) != father.end())
{
delete dest;
continue;