* src/tgbaalgos/emptiness_stats.hh (ars_statistics): New class.

* src/tgbaalgos/ndfs_result.hh (ndfs_result): Inherit from
ars_statistics.
(ndfs_result::dfs): Call inc_ars_states().
(ndfs_result::test_path, ndfs_result::min_path): Update ars_statistics.
* tgbaalgos/gtec/ce.hh (couvreur99_check_result): Inherit
from ars_statistics.
* tgbaalgos/gtec/ce.cc (shortest_path,
couvreur99_check_result::accepting_cycle::scc_bfs):
Update ars_statistics.
* src/tgbatest/randtgba.cc: Display statistics about accepting run
search.
This commit is contained in:
Alexandre Duret-Lutz 2005-01-03 15:49:50 +00:00
parent 6feb92090d
commit 55c08790fd
6 changed files with 249 additions and 121 deletions

View file

@ -28,6 +28,7 @@ namespace spot
/// \addtogroup ec_misc
/// @{
/// Emptiness-check statistics
class ec_statistics
{
public :
@ -87,19 +88,45 @@ namespace spot
}
private :
unsigned states_; /// number of disctint visited states
unsigned transitions_; /// number of visited transitions
unsigned depth_; /// maximal depth of the stack(s)
unsigned max_depth_; /// maximal depth of the stack(s)
unsigned states_; /// number of disctint visited states
unsigned transitions_; /// number of visited transitions
unsigned depth_; /// maximal depth of the stack(s)
unsigned max_depth_; /// maximal depth of the stack(s)
};
/// Accepting Cycle Search Space statistics
class acss_statistics
{
public:
/// Number of states in the search space for the accepting cycle.
virtual int acss_states() const = 0;
};
/// Accepting Run Search statistics.
class ars_statistics
{
public:
ars_statistics()
: states_(0)
{
}
void
inc_ars_states()
{
++states_;
}
int
ars_states() const
{
return states_;
}
private:
unsigned states_; /// number of states visited
};
/// @}
}