34 for(
const auto &interval :
int_map)
36 if(interval.second.is_top())
38 if(interval.second.lower_set)
39 out << interval.second.lower <<
" <= ";
40 out << interval.first;
41 if(interval.second.upper_set)
42 out <<
" <= " << interval.second.upper;
48 if(interval.second.is_top())
50 if(interval.second.lower_set)
51 out << interval.second.lower <<
" <= ";
52 out << interval.first;
53 if(interval.second.upper_set)
54 out <<
" <= " << interval.second.upper;
66 switch(instruction.
type)
86 if(from->get_target() != next)
140 for(int_mapt::iterator it=
int_map.begin();
145 const int_mapt::const_iterator b_it=b.
int_map.find(it->first);
154 it->second.
join(b_it->second);
155 if(it->second!=previous)
162 for(float_mapt::iterator it=
float_map.begin();
165 const float_mapt::const_iterator b_it=b.
float_map.begin();
174 it->second.
join(b_it->second);
175 if(it->second!=previous)
198 else if(lhs.
id()==ID_symbol)
207 else if(lhs.
id()==ID_typecast)
216 if(lhs.
id()==ID_typecast)
219 if(rhs.
id()==ID_typecast)
241 assert(
id==ID_lt ||
id==ID_le);
244 std::cout <<
"assume_rec: " 249 if(lhs.
id()==ID_symbol && rhs.
id()==ID_constant)
275 else if(lhs.
id()==ID_constant && rhs.
id()==ID_symbol)
301 else if(lhs.
id()==ID_symbol && rhs.
id()==ID_symbol)
338 if(cond.
id()==ID_lt || cond.
id()==ID_le ||
339 cond.
id()==ID_gt || cond.
id()==ID_ge ||
340 cond.
id()==ID_equal || cond.
id()==ID_notequal)
348 else if(cond.
id()==ID_le)
350 else if(cond.
id()==ID_gt)
352 else if(cond.
id()==ID_ge)
354 else if(cond.
id()==ID_equal)
356 else if(cond.
id()==ID_notequal)
362 else if(cond.
id()==ID_not)
366 else if(cond.
id()==ID_and)
372 else if(cond.
id()==ID_or)
468 if(condition.
id()==ID_and)
480 else if(condition.
id()==ID_symbol)
const if_exprt & to_if_expr(const exprt &expr)
Cast a generic exprt to an if_exprt.
exprt guard
Guard for gotos, assume, assert.
void decrement(bool distinguish_zero=false)
const code_declt & to_code_decl(const codet &code)
static bool is_float(const typet &src)
A generic base class for relations, i.e., binary predicates.
void havoc_rec(const exprt &)
exprt simplify_expr(const exprt &src, const namespacet &ns)
const code_deadt & to_code_dead(const codet &code)
goto_program_instruction_typet type
What kind of instruction?
void assume(const exprt &, const namespacet &)
void make_le_than(const T &v)
const irep_idt & get_identifier() const
std::string from_expr(const namespacet &ns, const irep_idt &identifier, const exprt &expr)
void make_top() final override
void join(const interval_templatet< T > &i)
void transform(locationt from, locationt to, ai_baset &ai, const namespacet &ns) final override
This class represents an instruction in the GOTO intermediate representation.
exprt conjunction(const exprt::operandst &op)
const code_assignt & to_code_assign(const codet &code)
const irep_idt & id() const
The boolean constant true.
void output(std::ostream &out, const ai_baset &ai, const namespacet &ns) const override
void assign(const class code_assignt &assignment)
API to expression classes.
#define forall_operands(it, expr)
void assume_rec(const exprt &, bool negation=false)
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast a generic exprt to a symbol_exprt.
void meet(const interval_templatet< T > &i)
const constant_exprt & to_constant_expr(const exprt &expr)
Cast a generic exprt to a constant_exprt.
exprt make_expression(const symbol_exprt &) const
The boolean constant false.
std::vector< exprt > operandst
void make_bottom() final override
virtual bool ai_simplify(exprt &condition, const namespacet &ns) const override
Uses the abstract state to simplify a given expression using context- specific information.
void make_ge_than(const T &v)
bool join(const interval_domaint &b)
Sets *this to the mathematical join between the two domains.
Base class for all expressions.
void increment(bool distinguish_zero=false)
const typecast_exprt & to_typecast_expr(const exprt &expr)
Cast a generic exprt to a typecast_exprt.
const not_exprt & to_not_expr(const exprt &expr)
Cast a generic exprt to an not_exprt.
goto_programt::const_targett locationt
Expression to hold a symbol (variable)
static bool is_int(const typet &src)
bool is_bottom() const override final
const code_function_callt & to_code_function_call(const codet &code)