18#include <unordered_set>
51 for(exprt::operandst::const_iterator it =
new_operands.begin();
92 return std::move(
tmp);
97 std::unordered_set<exprt, irep_hash> expr_set;
107 for(exprt::operandst::const_iterator it =
new_operands.begin();
110 if(!it->is_boolean())
127 !expr_set.insert(*it).second;
175 if(!
ge_expr->rhs().is_constant())
202 if(!
ge_expr->rhs().is_constant())
239 std::set<mp_integer> values;
243 if(
eq.lhs().is_constant())
244 std::swap(
eq.lhs(),
eq.rhs());
270 if(
symbol_opt.has_value() && values.size() >= 3)
274 if(upper - lower + 1 ==
mp_integer{values.size()})
298 op.id() ==
ID_not && op.is_boolean() &&
299 expr_set.find(
to_not_expr(op).op()) != expr_set.end())
317 return std::move(
tmp);
357 return std::move(
tmp);
363 return std::move(
tmp);
const c_enum_tag_typet & to_c_enum_tag_type(const typet &type)
Cast a typet to a c_enum_tag_typet.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
A base class for binary expressions.
A constant literal expression.
Base class for all expressions.
std::vector< exprt > operandst
bool has_operands() const
Return true if there is at least one operand.
bool is_true() const
Return whether the expression is a constant representing true.
bool is_boolean() const
Return whether the expression represents a Boolean.
bool is_false() const
Return whether the expression is a constant representing false.
The Boolean constant false.
const irep_idt & id() const
Binary less than or equal operator expression.
static resultt changed(resultt<> result)
resultt simplify_boolean(const exprt &)
resultt simplify_not(const not_exprt &)
static resultt unchanged(exprt expr)
The Boolean constant true.
static exprt conditional_cast(const exprt &expr, const typet &type)
The type of an expression, extends irept.
#define Forall_operands(it, expr)
constant_exprt make_boolean_expr(bool value)
returns true_exprt if given true and false_exprt otherwise
Deprecated expression utility functions.
bool is_false(const literalt &l)
bool is_true(const literalt &l)
API to expression classes for 'mathematical' expressions.
const exists_exprt & to_exists_expr(const exprt &expr)
const forall_exprt & to_forall_expr(const exprt &expr)
#define PRECONDITION(CONDITION)
API to expression classes.
const constant_exprt & to_constant_expr(const exprt &expr)
Cast an exprt to a constant_exprt.
const not_exprt & to_not_expr(const exprt &expr)
Cast an exprt to an not_exprt.
const implies_exprt & to_implies_expr(const exprt &expr)
Cast an exprt to a implies_exprt.
const equal_exprt & to_equal_expr(const exprt &expr)
Cast an exprt to an equal_exprt.