* src/tgbaalgos/emptiness_stats.hh (accs_statistics): New class.
* src/tgbaalgos/gtec/ce.cc, src/tgbaalgos/gtec/ce.hh (couvreur99_check_result): Inherit from acss_statistics. (couvreur99_check_result::acss_states): Implement it. * src/tgbatest/randtgba.cc: Display statistics about accepting cycle search space.
This commit is contained in:
parent
13183893dd
commit
ca2fe6c711
5 changed files with 165 additions and 48 deletions
|
|
@ -33,42 +33,58 @@ namespace spot
|
|||
public :
|
||||
ec_statistics()
|
||||
: states_(0), transitions_(0), depth_(0), max_depth_(0)
|
||||
{
|
||||
}
|
||||
void set_states(int n)
|
||||
{
|
||||
states_ = n;
|
||||
}
|
||||
void inc_states()
|
||||
{
|
||||
++states_;
|
||||
}
|
||||
void inc_transitions()
|
||||
{
|
||||
++transitions_;
|
||||
}
|
||||
void inc_depth()
|
||||
{
|
||||
++depth_;
|
||||
if (depth_ > max_depth_)
|
||||
max_depth_ = depth_;
|
||||
}
|
||||
void dec_depth()
|
||||
{
|
||||
--depth_;
|
||||
}
|
||||
int states() const
|
||||
{
|
||||
return states_;
|
||||
}
|
||||
int transitions() const
|
||||
{
|
||||
return transitions_;
|
||||
}
|
||||
int max_depth() const
|
||||
{
|
||||
return max_depth_;
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
set_states(int n)
|
||||
{
|
||||
states_ = n;
|
||||
}
|
||||
|
||||
void
|
||||
inc_states()
|
||||
{
|
||||
++states_;
|
||||
}
|
||||
|
||||
void
|
||||
inc_transitions()
|
||||
{
|
||||
++transitions_;
|
||||
}
|
||||
|
||||
void
|
||||
inc_depth()
|
||||
{
|
||||
++depth_;
|
||||
if (depth_ > max_depth_)
|
||||
max_depth_ = depth_;
|
||||
}
|
||||
|
||||
void
|
||||
dec_depth()
|
||||
{
|
||||
--depth_;
|
||||
}
|
||||
|
||||
int
|
||||
states() const
|
||||
{
|
||||
return states_;
|
||||
}
|
||||
|
||||
int
|
||||
transitions() const
|
||||
{
|
||||
return transitions_;
|
||||
}
|
||||
|
||||
int
|
||||
max_depth() const
|
||||
{
|
||||
return max_depth_;
|
||||
}
|
||||
|
||||
private :
|
||||
unsigned states_; /// number of disctint visited states
|
||||
|
|
@ -77,6 +93,13 @@ namespace spot
|
|||
unsigned max_depth_; /// maximal depth of the stack(s)
|
||||
};
|
||||
|
||||
/// Accepting Cycle Search Space statistics
|
||||
class acss_statistics
|
||||
{
|
||||
public:
|
||||
virtual int acss_states() const = 0;
|
||||
};
|
||||
|
||||
/// @}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue