36 return *
this ==
false;
97 std::stack<stack_entryt> stack;
101 while(!stack.empty())
103 auto &top = stack.top();
104 if(top.operands_pushed)
112 top.operands_pushed =
true;
113 for(
auto &op : top.e->operands())
132 std::stack<T *> stack;
136 while(!stack.empty())
138 T &expr = *stack.top();
143 for(
auto &op : expr.operands())
Pre-defined bitvector types.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Base class for all expressions.
const source_locationt & find_source_location() const
Get a source_locationt from the expression or from its operands (non-recursively).
bool is_one() const
Return whether the expression is a constant representing 1.
bool is_true() const
Return whether the expression is a constant representing true.
depth_iteratort depth_end()
const_depth_iteratort depth_cend() const
const_unique_depth_iteratort unique_depth_end() const
depth_iteratort depth_begin()
const_unique_depth_iteratort unique_depth_cend() const
void visit(class expr_visitort &visitor)
These are pre-order traversal visitors, i.e., the visitor is executed on a node before its children h...
bool is_false() const
Return whether the expression is a constant representing false.
bool is_zero() const
Return whether the expression is a constant representing 0.
void visit_pre(std::function< void(exprt &)>)
const_depth_iteratort depth_cbegin() const
void visit_post(std::function< void(exprt &)>)
These are post-order traversal visitors, i.e., the visitor is executed on a node after its children h...
const source_locationt & source_location() const
const_unique_depth_iteratort unique_depth_cbegin() const
const_unique_depth_iteratort unique_depth_begin() const
static const source_locationt & nil()
void visit_post_template(std::function< void(T &)> visitor, T *_expr)
static void visit_pre_template(std::function< void(T &)> visitor, T *_expr)
Forward depth-first search iterators These iterators' copy operations are expensive,...
Deprecated expression utility functions.
API to expression classes.