Go to the documentation of this file.
41 if(type.
id()==ID_struct)
45 for(
const auto &comp : struct_type.
components())
52 else if(type.
id()==ID_pointer)
59 if(subtype.
id()!=ID_code &&
60 subtype.
id()!=ID_empty)
81 if(e.
id() == ID_symbol && e.
get_bool(ID_C_SSA_symbol))
83 const ssa_exprt &ssa_expr = to_ssa_expr(e);
84 const irep_idt &obj_identifier = ssa_expr.get_object_name();
86 if(obj_identifier != statet::guard_identifier())
88 const symbolt &symbol = ns.lookup(obj_identifier);
90 if(has_prefix(id2string(symbol.base_name),
"auto_object"))
93 if(!state.get_level2().current_names.has_key(
94 ssa_expr.get_identifier()))
96 initialize_auto_object(e, state);
const componentst & components() const
const typet & subtype() const
const struct_typet & to_struct_type(const typet &type)
Cast a typet to a struct_typet.
static unsigned dynamic_counter
A monotonically increasing index for each created dynamic object.
The type of an expression, extends irept.
typet type
Type of symbol.
Central data structure: state.
The trinary if-then-else operator.
Base class for all expressions.
irep_idt base_name
Base (non-scoped) name.
std::string to_string(const string_not_contains_constraintt &expr)
Used for debug printing.
void trigger_auto_object(const exprt &, statet &)
Expression to hold a symbol (variable)
void symex_assign(statet &state, const code_assignt &code)
Symbolically execute an ASSIGN instruction or simulate such an execution for a synthetic assignment.
typet & type()
Return the type of the expression.
bool get_bool(const irep_namet &name) const
irep_idt mode
Language mode.
The null pointer constant.
const std::string & id2string(const irep_idt &d)
symbol_tablet symbol_table
contains symbols that are minted during symbolic execution, such as dynamically created objects etc.
void initialize_auto_object(const exprt &, statet &)
exprt make_auto_object(const typet &, statet &)
pointer_typet pointer_type(const typet &subtype)
const irep_idt & id() const
const pointer_typet & to_pointer_type(const typet &type)
Cast a typet to a pointer_typet.
A side_effect_exprt that returns a non-deterministically chosen value.
namespacet ns
Initialized just before symbolic execution begins, to point to both outer_symbol_table and the symbol...
bool add(const symbolt &symbol)
Add a new symbol to the symbol table.
Extract member of struct or union.
Structure type, corresponds to C style structs.
const typet & follow(const typet &) const
Resolve type symbol to the type it points to.
void visit_pre(std::function< void(exprt &)>)
Operator to return the address of an object.
The pointer type These are both 'bitvector_typet' (they have a width) and 'type_with_subtypet' (they ...
A codet representing an assignment in the program.
API to expression classes.
const source_locationt & source_location() const
irep_idt name
The unique identifier.