16 const std::vector<exprt> &operands=expr.
operands();
24 operands.size() >= 3,
"case should have at least three operands");
27 operands.size() % 2 == 1,
"number of case operands should be odd");
48 std::string(
"size of compare operand does not match:\n") +
49 "compare operand: " + std::to_string(
compare_bv.size()) +
50 "\noperand: " + std::to_string(op.size()) +
'\n' +
operand.pretty());
62 bv.size() == op.size(),
63 std::string(
"size of value operand does not match:\n") +
64 "result size: " + std::to_string(bv.size()) +
65 "\noperand: " + std::to_string(op.size()) +
'\n' +
operand.pretty());
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
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...
virtual bvt convert_case(const case_exprt &)
virtual std::size_t boolbv_width(const typet &type) const
literalt equal(const bvt &op0, const bvt &op1)
Bit-blasting ID_equal and use in other encodings.
Case expression: evaluates to the value corresponding to the first matching case.
typet & type()
Return the type of the expression.
void l_set_to_true(literalt a)
virtual literalt land(literalt a, literalt b)=0
virtual literalt limplies(literalt a, literalt b)=0
virtual bvt new_variables(std::size_t width)
generates a bitvector of given width with new variables
virtual literalt lor(literalt a, literalt b)=0
std::vector< literalt > bvt
literalt const_literal(bool value)
#define UNREACHABLE
This should be used to mark dead code.
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
API to expression classes.