Go to the documentation of this file.
22 std::set<goto_programt::targett> reachable;
23 std::stack<goto_programt::targett> working;
27 while(!working.empty())
32 if(reachable.find(t)==reachable.end() &&
44 bool did_something =
false;
48 if(reachable.find(it)==reachable.end() &&
49 !it->is_end_function())
#define Forall_goto_program_instructions(it, program)
void update()
Update all indices.
std::list< Target > get_successors(Target target) const
Get control-flow successors of a given instruction.
function_mapt function_map
void remove_unreachable(goto_programt &goto_program)
remove unreachable code
instructionst instructions
The list of instructions in the goto program.
A collection of goto functions.
goto_functionst goto_functions
GOTO functions.
A generic container class for the GOTO intermediate representation of one function.
instructionst::iterator targett