* src/tgbaalgos/reducerun.cc (reduce_run): Do not call erase() after

splice(), splice() already remove the elements.
* src/tgbaalgos/gtec/ce.cc (couvreur99_check_result::accepting_run):
Likewise.
This commit is contained in:
Alexandre Duret-Lutz 2004-12-16 23:13:33 +00:00
parent 58aff37db9
commit e7a3ebb16a
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,10 @@
2004-12-16 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbaalgos/reducerun.cc (reduce_run): Do not call erase() after
splice(), splice() already remove the elements.
* src/tgbaalgos/gtec/ce.cc (couvreur99_check_result::accepting_run):
Likewise.
* src/tgbatest/randtgba.cc: Add option -O, so we can profile each
emptiness-check on its own.

View file

@ -21,6 +21,7 @@
#include "ce.hh"
#include "tgbaalgos/bfssteps.hh"
#include "misc/hash.hh"
namespace spot
{
@ -128,7 +129,6 @@ namespace spot
// Now shift the cycle so it starts on cycle_entry_point.
run_->cycle.splice(run_->cycle.end(), run_->cycle,
run_->cycle.begin(), cycle_ep_it);
run_->cycle.erase(run_->cycle.begin(), cycle_ep_it);
return run_;
}

View file

@ -182,7 +182,6 @@ namespace spot
// Now shift the cycle so it starts on cycle_entry_point.
res->cycle.splice(res->cycle.end(), res->cycle,
res->cycle.begin(), cycle_ep_it);
res->cycle.erase(res->cycle.begin(), cycle_ep_it);
return res;
}