* src/tgba/tgba.hh, src/tgba/tgba.cc

(tgba::number_of_acceptance_conditions): New method.
* src/tgbaalgos/lbtt.cc (lbtt_bfs::lbtt_bfs): Use it.
This commit is contained in:
Alexandre Duret-Lutz 2004-11-04 12:55:03 +00:00
parent 1d3100607a
commit d60025dcd1
4 changed files with 28 additions and 11 deletions

View file

@ -108,18 +108,9 @@ namespace spot
lbtt_bfs(const tgba* a, std::ostream& os)
: tgba_reachable_iterator_breadth_first(a),
os_(os),
acc_count_(0),
acc_count_(a->number_of_acceptance_conditions()),
acs_(a->all_acceptance_conditions())
{
// Count the number of acceptance_conditions.
bdd all = a->all_acceptance_conditions();
while (all != bddfalse)
{
bdd one = bdd_satone(all);
all -= one;
++acc_count_;
}
}
void