21 if(operands.empty() && width == 0)
24 if(expr.
type().
id()==ID_array)
28 "the bit width being nonzero implies that the array has a nonzero size "
29 "in which case the array shall have operands");
30 const std::size_t op_width = width / operands.size();
35 for(
const auto &op : operands)
39 bv.insert(bv.end(), tmp.begin(), tmp.end());
virtual bvt convert_array(const exprt &expr)
Flatten array.
virtual const bvt & convert_bv(const exprt &expr, const std::optional< std::size_t > expected_width={})
Convert expression to vector of literalts, using an internal cache to speed up conversion if availabl...
bvt conversion_failed(const exprt &expr)
Print that the expression of x has failed conversion, then return a vector of x's width.
virtual std::size_t boolbv_width(const typet &type) const
Base class for all expressions.
std::vector< exprt > operandst
bool has_operands() const
Return true if there is at least one operand.
typet & type()
Return the type of the expression.
const irep_idt & id() const
std::vector< literalt > bvt
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...