Go to the documentation of this file.
24 if(expr.
id()==ID_member)
28 if(op.
type().
id() == ID_union_tag || op.
type().
id() == ID_union)
31 else if(expr.
id()==ID_union)
48 if(expr.
id()==ID_index)
53 else if(expr.
id()==ID_member)
55 else if(expr.
id()==ID_symbol)
59 else if(expr.
id()==ID_dereference)
67 if(expr.
id()==ID_address_of)
79 if(expr.
id()==ID_member)
83 if(op.
type().
id() == ID_union_tag || op.
type().
id() == ID_union)
89 else if(expr.
id()==ID_union)
100 for(
auto &instruction : goto_function.body.instructions)
104 if(instruction.has_condition())
byte_extract_exprt make_byte_extract(const exprt &_op, const exprt &_offset, const typet &_type)
Construct a byte_extract_exprt with endianness and byte width matching the current configuration.
#define Forall_operands(it, expr)
const dereference_exprt & to_dereference_expr(const exprt &expr)
Cast an exprt to a dereference_exprt.
const index_exprt & to_index_expr(const exprt &expr)
Cast an exprt to an index_exprt.
Union constructor from single element.
Base class for all expressions.
const union_exprt & to_union_expr(const exprt &expr)
Cast an exprt to a union_exprt.
function_mapt function_map
typet & type()
Return the type of the expression.
Expression classes for byte-level operators.
#define forall_operands(it, expr)
const exprt & struct_op() const
void rewrite_union(exprt &expr)
We rewrite u.c for unions u into byte_extract(u, 0), and { .c = v } into byte_update(NIL,...
const irep_idt & id() const
::goto_functiont goto_functiont
A side_effect_exprt that returns a non-deterministically chosen value.
static bool have_to_rewrite_union(const exprt &expr)
A collection of goto functions.
void rewrite_union_address_of(exprt &expr)
goto_functionst goto_functions
GOTO functions.
const member_exprt & to_member_expr(const exprt &expr)
Cast an exprt to a member_exprt.
const address_of_exprt & to_address_of_expr(const exprt &expr)
Cast an exprt to an address_of_exprt.
bitvector_typet c_index_type()
byte_update_exprt make_byte_update(const exprt &_op, const exprt &_offset, const exprt &_value)
Construct a byte_update_exprt with endianness and byte width matching the current configuration.
const source_locationt & source_location() const