12 #ifndef CPROVER_ANALYSES_INTERVAL_DOMAIN_H
13 #define CPROVER_ANALYSES_INTERVAL_DOMAIN_H
77 "If the domain is bottom the value maps must be empty");
94 return src.
id()==ID_signedbv || src.
id()==ID_unsignedbv;
99 return src.
id()==ID_floatbv;
109 typedef std::map<irep_idt, integer_intervalt>
int_mapt;
Abstract Interpretation Domain.
This is the basic interface of the abstract interpreter with default implementations of the core func...
The interface offered by a domain, allows code to manipulate domains without knowing their exact type...
ai_history_baset::trace_ptrt trace_ptrt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Base class for all expressions.
void assign(const exprt &lhs, const exprt &rhs)
static bool is_int(const typet &src)
void output(std::ostream &out, const ai_baset &ai, const namespacet &ns) const override
bool is_bottom() const override final
void make_bottom() final override
no states
void assume_rec(const exprt &, bool negation=false)
bool is_top() const override final
integer_intervalt get_int_rec(const exprt &)
bool join(const interval_domaint &b)
Sets *this to the mathematical join between the two domains.
void transform(const irep_idt &function_from, trace_ptrt trace_from, const irep_idt &function_to, trace_ptrt trace_to, ai_baset &ai, const namespacet &ns) final override
how function calls are treated: a) there is an edge from each call site to the function head b) there...
exprt make_expression(const symbol_exprt &) const
void make_top() final override
all states – the analysis doesn't use this directly (see make_entry) and domains may refuse to implem...
std::map< irep_idt, ieee_float_intervalt > float_mapt
ieee_float_intervalt get_float_rec(const exprt &)
bool merge(const interval_domaint &b, trace_ptrt, trace_ptrt)
std::map< irep_idt, integer_intervalt > int_mapt
void havoc_rec(const exprt &)
void assume(const exprt &, const namespacet &)
virtual bool ai_simplify(exprt &condition, const namespacet &ns) const override
Uses the abstract state to simplify a given expression using context- specific information.
static bool is_float(const typet &src)
const irep_idt & id() const
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Expression to hold a symbol (variable)
The type of an expression, extends irept.
interval_templatet< ieee_floatt > ieee_float_intervalt
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...