12 #ifndef CPROVER_ANALYSES_INTERVAL_DOMAIN_H 13 #define CPROVER_ANALYSES_INTERVAL_DOMAIN_H 82 "If the domain is bottom the value maps must be empty");
99 return src.
id()==ID_signedbv || src.
id()==ID_unsignedbv;
104 return src.
id()==ID_floatbv;
114 typedef std::map<irep_idt, integer_intervalt>
int_mapt;
128 #endif // CPROVER_ANALYSES_INTERVAL_DOMAIN_H The type of an expression.
static bool is_float(const typet &src)
std::map< irep_idt, integer_intervalt > int_mapt
void havoc_rec(const exprt &)
interval_templatet< mp_integer > integer_intervalt
void assume(const exprt &, const namespacet &)
bool merge(const interval_domaint &b, locationt, locationt)
void make_top() final override
all states – the analysis doesn't use this, and domains may refuse to implement it.
void transform(locationt from, locationt 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...
void make_entry() final override
a reasonable entry-point state
ieee_float_intervalt get_float_rec(const exprt &)
const irep_idt & id() const
std::map< irep_idt, ieee_float_intervalt > float_mapt
The interface offered by a domain, allows code to manipulate domains without knowing their exact type...
void output(std::ostream &out, const ai_baset &ai, const namespacet &ns) const override
void assign(const class code_assignt &assignment)
integer_intervalt get_int_rec(const exprt &)
interval_templatet< ieee_floatt > ieee_float_intervalt
void assume_rec(const exprt &, bool negation=false)
bool is_top() const override final
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
exprt make_expression(const symbol_exprt &) const
void make_bottom() final override
no states
virtual bool ai_simplify(exprt &condition, const namespacet &ns) const override
Uses the abstract state to simplify a given expression using context- specific information.
bool join(const interval_domaint &b)
Sets *this to the mathematical join between the two domains.
The basic interface of an abstract interpreter.
Base class for all expressions.
goto_programt::const_targett locationt
Expression to hold a symbol (variable)
static bool is_int(const typet &src)
bool is_bottom() const override final
#define DATA_INVARIANT(CONDITION, REASON)