cprover
|
Unused function removal. More...
Go to the source code of this file.
Functions | |
void | remove_unused_functions (goto_modelt &goto_model, message_handlert &message_handler) |
void | remove_unused_functions (goto_functionst &functions, message_handlert &message_handler) |
void | find_used_functions (const irep_idt &start, goto_functionst &functions, std::set< irep_idt > &seen) |
Unused function removal.
Definition in file remove_unused_functions.cpp.
void find_used_functions | ( | const irep_idt & | start, |
goto_functionst & | functions, | ||
std::set< irep_idt > & | seen | ||
) |
Definition at line 57 of file remove_unused_functions.cpp.
References find_used_functions(), forall_goto_program_instructions, code_function_callt::function(), FUNCTION_CALL, goto_functionst::function_map, irept::id(), to_code(), to_code_function_call(), and to_symbol_expr().
Referenced by find_used_functions(), and remove_unused_functions().
void remove_unused_functions | ( | goto_modelt & | goto_model, |
message_handlert & | message_handler | ||
) |
Definition at line 18 of file remove_unused_functions.cpp.
References goto_modelt::goto_functions, message_handler, and remove_unused_functions().
Referenced by goto_instrument_parse_optionst::doit(), jbmc_parse_optionst::process_goto_functions(), cbmc_parse_optionst::process_goto_program(), and remove_unused_functions().
void remove_unused_functions | ( | goto_functionst & | functions, |
message_handlert & | message_handler | ||
) |
Definition at line 25 of file remove_unused_functions.cpp.
References goto_functionst::entry_point(), messaget::eom(), find_used_functions(), goto_functionst::function_map, message_handler, and messaget::statistics().