19 expr.
type().
id() == ID_array,
"array_of expression shall have array type");
30 const exprt &array_size=array_type.
size();
37 size * tmp.size() == width,
38 "total array bit width shall equal the number of elements times the "
44 auto b_it = tmp.begin();
Array constructor from single element.
const array_typet & type() const
const exprt & size() 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.
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,...
const constant_exprt & to_constant_expr(const exprt &expr)
Cast an exprt to a constant_exprt.