Go to the documentation of this file.
19 expr.
type().
id() == ID_array,
"array_of expression shall have array type");
38 const exprt &array_size=array_type.
size();
40 const auto size = numeric_cast<mp_integer>(array_size);
48 *size * tmp.size() == width,
49 "total array bit width shall equal the number of elements times the "
55 auto b_it = tmp.begin();
const typet & subtype() const
virtual bvt convert_array_of(const array_of_exprt &expr)
Flatten arrays constructed from a single element.
bool is_unbounded_array(const typet &type) const override
std::vector< literalt > bvt
Base class for all expressions.
const array_typet & type() const
const exprt & size() const
boolbv_widtht boolbv_width
void conversion_failed(const exprt &expr, bvt &bv)
#define DATA_INVARIANT(CONDITION, REASON)
This condition should be used to document that assumptions that are made on goto_functions,...
Array constructor from single element.
const irep_idt & id() const
virtual const bvt & convert_bv(const exprt &expr, const optionalt< std::size_t > expected_width=nullopt)
Convert expression to vector of literalts, using an internal cache to speed up conversion if availabl...