24 return it->is_function_call() &&
25 can_cast_expr<dereference_exprt>(it->call_function());
28 auto const &function_pointer_dereference =
29 to_dereference_expr(it->call_function());
30 auto const &source_location = it->source_location();
31 auto const &goto_function_symbol_mode =
32 goto_model.symbol_table.lookup_ref(goto_function.first).mode;
34 auto const call_site_symbol_name =
35 irep_idt{id2string(goto_function.first) +
".function_pointer_call." +
36 std::to_string(++function_pointer_call_counter)};
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
A goto_instruction_codet representing an assignment in the program.
Operator to dereference a pointer.
function_mapt function_map
symbol_tablet symbol_table
Symbol table.
goto_functionst goto_functions
GOTO functions.
static instructiont make_dead(const symbol_exprt &symbol, const source_locationt &l=source_locationt::nil())
instructionst::iterator targett
static instructiont make_assignment(const code_assignt &_code, const source_locationt &l=source_locationt::nil())
Create an assignment instruction.
static instructiont make_decl(const symbol_exprt &symbol, const source_locationt &l=source_locationt::nil())
const symbolt & lookup_ref(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
virtual std::pair< symbolt &, bool > insert(symbolt symbol) override
Author: Diffblue Ltd.
void for_each_instruction_if(GotoFunctionT &&goto_function, PredicateT predicate, HandlerT handler)
void label_function_pointer_call_sites(goto_modelt &goto_model)
This ensures that call instructions can be only one of two things:
Label function pointer call sites across a goto model.
API to expression classes for Pointers.