* src/tgbaalgos/emptiness_stats.hh (ec_statistics::depth): New function.

* src/tgbaalgos/gtec/gtec.cc (couvreur99_check_shy::clear_todo,
couvreur99_check_shy::check): Count all successors in the
todo stack rather than all items on the stack.
This commit is contained in:
Alexandre Duret-Lutz 2005-01-17 18:48:59 +00:00
parent addb3a30cd
commit 2604b27008
2 changed files with 16 additions and 9 deletions

View file

@ -60,17 +60,17 @@ namespace spot
}
void
inc_depth()
inc_depth(int n = 1)
{
++depth_;
depth_ += n;
if (depth_ > max_depth_)
max_depth_ = depth_;
}
void
dec_depth()
dec_depth(int n = 1)
{
--depth_;
depth_ -= n;
}
int
@ -91,6 +91,12 @@ namespace spot
return max_depth_;
}
int
depth() const
{
return depth_;
}
private :
unsigned states_; /// number of disctint visited states
unsigned transitions_; /// number of visited transitions