19 expr.
type().id() ==
ID_array,
"array_of expression shall have array type");
37 size *
tmp.size() == width,
38 "total array bit width shall equal the number of elements times the "
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Array constructor from single element.
const array_typet & type() const
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...
bool is_unbounded_array(const typet &type) const override
virtual bvt convert_array_of(const array_of_exprt &expr)
Flatten arrays constructed from a single element.
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< literalt > bvt
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
const constant_exprt & to_constant_expr(const exprt &expr)
Cast an exprt to a constant_exprt.