17 #ifndef AWALI_ALGOS_EXP_STATS_HH
18 # define AWALI_ALGOS_EXP_STATS_HH
48 template <
typename RatExpSet>
50 :
public RatExpSet::const_visitor
55 using ratexp_t =
typename ratexpset_t::ratexp_t;
59 constexpr
static const char*
me() {
return "exp_stats"; }
96 unsigned s=1, l=0, sh=0,
height=0;
112 unsigned s=1, l=0, sh=0,
height=0;
192 template <
typename RatExpSet>
194 exp_stats(
const RatExpSet& rs,
const typename RatExpSet::ratexp_t& exp)
The semiring of complex numbers.
Definition: c.hh:44
Definition: ratexp.hh:280
Definition: ratexp.hh:262
Definition: exp_stats.hh:51
exp_stats_visitor(const ratexpset_t &)
Definition: exp_stats.hh:61
AWALI_RAT_VISIT(lweight, v)
Definition: exp_stats.hh:140
AWALI_RAT_VISIT(zero,)
Definition: exp_stats.hh:72
AWALI_RAT_VISIT(one,)
Definition: exp_stats.hh:79
constexpr static const char * me()
Definition: exp_stats.hh:59
unsigned height()
Definition: exp_stats.hh:162
AWALI_RAT_VISIT(rweight, v)
Definition: exp_stats.hh:145
void operator()(const ratexp_t &v)
Definition: exp_stats.hh:64
AWALI_RAT_VISIT(prod, v)
Definition: exp_stats.hh:110
AWALI_RAT_VISIT(sum, v)
Definition: exp_stats.hh:93
context_t_of< ratexpset_t > context_t
Definition: exp_stats.hh:54
unsigned size()
Definition: exp_stats.hh:150
AWALI_RAT_VISIT(atom,)
Definition: exp_stats.hh:86
typename ratexpset_t::const_visitor super_type
Definition: exp_stats.hh:57
unsigned length()
Definition: exp_stats.hh:154
RatExpSet ratexpset_t
Definition: exp_stats.hh:53
unsigned star_height()
Definition: exp_stats.hh:158
typename ratexpset_t::ratexp_t ratexp_t
Definition: exp_stats.hh:55
void exp_stats(const ratexp_t &v)
Definition: exp_stats.hh:68
Definition: ratexp.hh:176
An inner node with multiple children.
Definition: ratexp.hh:115
An inner node implementing a weight.
Definition: ratexp.hh:208
exp_stats_t exp_stats(const RatExpSet &rs, const typename RatExpSet::ratexp_t &exp)
computes some statistics on a rational expression
Definition: exp_stats.hh:194
unsigned star_height
Definition: exp_stats.hh:37
typename internal::context_t_of_impl< internal::base_t< ValueSet > >::type context_t_of
Helper to retrieve the type of the context of a value set.
Definition: traits.hh:66
unsigned height
Definition: exp_stats.hh:36
unsigned length
Definition: exp_stats.hh:35
unsigned size
Definition: exp_stats.hh:34
gathers informations on some rational expression
Definition: exp_stats.hh:33
Main namespace of Awali.
Definition: ato.hh:22
#define AWALI_RAT_UNSUPPORTED(Type)
Definition: visitor.hh:73