Avoid calling done(), as enabled by last patch.
* src/tgbaalgos/bfssteps.cc, src/tgbaalgos/complete.cc, src/tgbaalgos/cycles.cc, src/tgbaalgos/dtgbacomp.cc, src/tgbaalgos/gtec/gtec.cc, src/tgbaalgos/gv04.cc, src/tgbaalgos/isweakscc.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/neverclaim.cc, src/tgbaalgos/reachiter.cc, src/tgbaalgos/replayrun.cc, src/tgbaalgos/safety.cc, src/tgbaalgos/save.cc: Avoid calls to done().
This commit is contained in:
parent
1a5c0cb1f3
commit
b4c125c2b9
13 changed files with 143 additions and 137 deletions
|
|
@ -134,10 +134,9 @@ namespace spot
|
|||
for (auto s: map.states_of(scc))
|
||||
{
|
||||
tgba_succ_iterator* it = a->succ_iter(s);
|
||||
it->first();
|
||||
|
||||
// If a state has no successors, the SCC is not complete.
|
||||
if (it->done())
|
||||
if (!it->first())
|
||||
{
|
||||
a->release_iter(it);
|
||||
return false;
|
||||
|
|
@ -154,9 +153,8 @@ namespace spot
|
|||
next->destroy();
|
||||
if (sumall == bddtrue)
|
||||
break;
|
||||
it->next();
|
||||
}
|
||||
while (!it->done());
|
||||
while (it->next());
|
||||
a->release_iter(it);
|
||||
|
||||
if (sumall != bddtrue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue