25 if(expr.
id()==ID_member)
29 if(op.
type().
id() == ID_union_tag || op.
type().
id() == ID_union)
32 else if(expr.
id()==ID_union)
49 if(expr.
id()==ID_index)
54 else if(expr.
id()==ID_member)
56 else if(expr.
id()==ID_symbol)
60 else if(expr.
id()==ID_dereference)
68 if(expr.
id()==ID_address_of)
80 if(expr.
id()==ID_member)
84 if(op.
type().
id() == ID_union_tag || op.
type().
id() == ID_union)
91 else if(expr.
id()==ID_union)
static bool have_to_rewrite_union(const exprt &expr)
typet & type()
Return the type of the expression.
const address_of_exprt & to_address_of_expr(const exprt &expr)
Cast an exprt to an address_of_exprt.
void rewrite_union_address_of(exprt &expr)
const dereference_exprt & to_dereference_expr(const exprt &expr)
Cast an exprt to a dereference_exprt.
const irep_idt & id() const
Expression classes for byte-level operators.
irep_idt byte_update_id()
Union constructor from single element.
API to expression classes.
::goto_functiont goto_functiont
const member_exprt & to_member_expr(const exprt &expr)
Cast an exprt to a member_exprt.
A side_effect_exprt that returns a non-deterministically chosen value.
#define forall_operands(it, expr)
A collection of goto functions.
void rewrite_union(exprt &expr)
We rewrite u.c for unions u into byte_extract(u, 0), and { .c = v } into byte_update(NIL, 0, v)
bitvector_typet index_type()
Base class for all expressions.
const exprt & struct_op() const
const union_exprt & to_union_expr(const exprt &expr)
Cast an exprt to a union_exprt.
#define Forall_goto_functions(it, functions)
const source_locationt & source_location() const
#define Forall_operands(it, expr)
#define Forall_goto_program_instructions(it, program)
const index_exprt & to_index_expr(const exprt &expr)
Cast an exprt to an index_exprt.
goto_functionst goto_functions
GOTO functions.
irep_idt byte_extract_id()