22 std::set<goto_programt::targett, goto_programt::target_less_than> 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())
A collection of goto functions.
function_mapt function_map
A generic container class for the GOTO intermediate representation of one function.
instructionst instructions
The list of instructions in the goto program.
void update()
Update all indices.
instructionst::iterator targett
std::list< Target > get_successors(Target target) const
Get control-flow successors of a given instruction.
Goto Programs with Functions.
#define Forall_goto_program_instructions(it, program)
void remove_unreachable(goto_programt &goto_program)
remove unreachable code