Go to the documentation of this file.
19 std::unordered_set<irep_idt> &address_taken)
24 if(src.
id() == ID_address_of)
29 address.
type().
id() == ID_pointer &&
33 if(target.
id() == ID_symbol)
42 std::unordered_set<irep_idt> &address_taken)
47 if(src.
type().
id()==ID_code &&
55 std::unordered_set<irep_idt> &address_taken)
59 i.apply([&address_taken](
const exprt &expr) {
68 std::unordered_set<irep_idt> &address_taken)
75 std::unordered_set<irep_idt>
78 std::unordered_set<irep_idt> address_taken;
84 std::unordered_set<irep_idt>
87 std::unordered_set<irep_idt> working_queue;
88 std::unordered_set<irep_idt> functions;
93 while(!working_queue.empty())
96 working_queue.erase(working_queue.begin());
98 if(!functions.insert(
id).second)
101 const goto_functionst::function_mapt::const_iterator f_it=
114 if(i_it->is_function_call())
127 std::unordered_set<irep_idt>
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
const typet & subtype() const
Base class for all expressions.
function_mapt function_map
std::unordered_set< irep_idt > compute_called_functions(const goto_functionst &goto_functions)
computes the functions that are (potentially) called
void compute_functions(const exprt &src, std::unordered_set< irep_idt > &address_taken)
get all functions in the expression
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.
#define forall_operands(it, expr)
const symbol_exprt & to_symbol_expr(const exprt &expr)
Cast an exprt to a symbol_exprt.
const irep_idt & id() const
const code_function_callt & to_code_function_call(const codet &code)
instructionst instructions
The list of instructions in the goto program.
A collection of goto functions.
goto_functionst goto_functions
GOTO functions.
void compute_address_taken_functions(const exprt &src, std::unordered_set< irep_idt > &address_taken)
get all functions whose address is taken
A generic container class for the GOTO intermediate representation of one function.
#define forall_goto_functions(it, functions)
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
Operator to return the address of an object.
API to expression classes.
#define forall_goto_program_instructions(it, program)