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
|
|
@ -86,9 +86,8 @@ namespace spot
|
|||
// is not terribly efficient since we have to create the
|
||||
// iterator.
|
||||
tgba_succ_iterator* it = aut_->succ_iter(s);
|
||||
it->first();
|
||||
bool accepting =
|
||||
!it->done() && it->current_acceptance_conditions() == all_acc_conds_;
|
||||
it->first() && it->current_acceptance_conditions() == all_acc_conds_;
|
||||
aut_->release_iter(it);
|
||||
return accepting;
|
||||
}
|
||||
|
|
@ -111,8 +110,7 @@ namespace spot
|
|||
if (state_is_accepting(s))
|
||||
{
|
||||
tgba_succ_iterator* it = aut_->succ_iter(s);
|
||||
it->first();
|
||||
if (it->done())
|
||||
if (!it->first())
|
||||
label = "accept_S" + ns;
|
||||
else
|
||||
{
|
||||
|
|
@ -136,8 +134,7 @@ namespace spot
|
|||
process_state(const state* s, int n, tgba_succ_iterator*)
|
||||
{
|
||||
tgba_succ_iterator* it = aut_->succ_iter(s);
|
||||
it->first();
|
||||
if (it->done())
|
||||
if (!it->first())
|
||||
{
|
||||
if (fi_needed_ != 0)
|
||||
os_ << " fi;\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue