77 if(type.
id()==ID_floatbv)
80 value.set_sign(
false);
84 else if(type.
id()==ID_signedbv ||
85 type.
id()==ID_unsignedbv)
119 if(type.
id()==ID_floatbv)
125 else if(type.
id()==ID_signedbv ||
126 type.
id()==ID_unsignedbv)
151 if(dest_type==src_type)
164 if(op0.
id()==ID_floatbv_div ||
165 op0.
id()==ID_floatbv_mult ||
166 op0.
id()==ID_floatbv_plus ||
167 op0.
id()==ID_floatbv_minus)
170 op0.
op0().
id()==ID_typecast &&
171 op0.
op1().
id()==ID_typecast &&
179 result.op0()=op0.
op0().
op0();
196 if(src_type.
id()==ID_floatbv)
198 if(dest_type.id()==ID_floatbv)
208 else if(dest_type.id()==ID_signedbv ||
209 dest_type.id()==ID_unsignedbv)
222 else if(src_type.
id()==ID_signedbv ||
223 src_type.
id()==ID_unsignedbv)
228 if(dest_type.id()==ID_floatbv)
244 if(expr.
op0().
id()==ID_if &&
272 if(type.
id()!=ID_floatbv)
281 assert(
ns.
follow(op0.type())==type);
302 if(expr.
id()==ID_floatbv_plus)
304 else if(expr.
id()==ID_floatbv_minus)
306 else if(expr.
id()==ID_floatbv_mult)
308 else if(expr.
id()==ID_floatbv_div)
319 if(expr.
id()==ID_floatbv_div &&
333 assert(expr.
id()==ID_ieee_float_equal ||
334 expr.
id()==ID_ieee_float_notequal);
338 if(expr.
type().
id()!=ID_bool)
341 if(operands.size()!=2)
359 if(expr.
id()==ID_ieee_float_notequal)
361 else if(expr.
id()==ID_ieee_float_equal)
369 if(expr.
op0()==expr.
op1())
374 if(expr.
id()==ID_ieee_float_notequal)
377 else if(expr.
id()==ID_ieee_float_equal)
The type of an expression.
bool simplify_abs(exprt &expr)
bool simplify_sign(exprt &expr)
bool simplify_node(exprt &expr)
constant_exprt to_expr() const
The trinary if-then-else operator.
void make_bool(bool value)
void change_spec(const ieee_float_spect &dest_spec)
bool simplify_if(if_exprt &expr)
const irep_idt & id() const
Evaluates to true if the operand is NaN.
mp_integer to_integer() const
bool ieee_equal(const ieee_floatt &other) const
A generic base class for binary expressions.
bool simplify_floatbv_op(exprt &expr)
API to expression classes.
bool simplify_isinf(exprt &expr)
const typet & follow(const typet &) const
const constant_exprt & to_constant_expr(const exprt &expr)
Cast a generic exprt to a constant_exprt.
std::vector< exprt > operandst
bool simplify_floatbv_typecast(exprt &expr)
const floatbv_typet & to_floatbv_type(const typet &type)
Cast a generic typet to a floatbv_typet.
Base class for all expressions.
bool simplify_ieee_float_relation(exprt &expr)
void from_integer(const mp_integer &i)
bool ieee_not_equal(const ieee_floatt &other) const
rounding_modet rounding_mode
std::size_t integer2size_t(const mp_integer &n)
bool simplify_isnormal(exprt &expr)
bool simplify_isnan(exprt &expr)