Go to the documentation of this file.
63 assert(!loop.empty());
66 const exprt loop_guard = loop_head->condition();
104 std::vector<goto_programt::targett> iteration_points;
125 assert(iteration_points.size()==
k+1);
134 t->turn_into_assume();
155 for(natural_loops_mutablet::loop_mapt::const_iterator
164 bool base_case,
bool step_case,
168 k_inductiont(gf_entry.first, gf_entry.second, base_case, step_case, k);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
goto_functiont & goto_function
void remove_skip(goto_programt &goto_program, goto_programt::targett begin, goto_programt::targett end)
remove unnecessary skip statements
Base class for all expressions.
natural_loops_mutablet natural_loops
function_mapt function_map
void unwind(const irep_idt &function_id, goto_programt &goto_program, const goto_programt::const_targett loop_head, const goto_programt::const_targett loop_exit, const unsigned k, const unwind_strategyt unwind_strategy)
void process_loop(const goto_programt::targett loop_head, const loopt &)
natural_loops_mutablet::natural_loopt loopt
goto_programt::targett get_loop_exit(const loopt &loop)
void append_full_havoc_code(const source_locationt location, goto_programt &dest) const
Append goto instructions to havoc the full assigns set.
void k_induction(goto_modelt &goto_model, bool base_case, bool step_case, unsigned k)
A goto function, consisting of function body (see body) and parameter identifiers (see parameter_iden...
std::set< exprt > assignst
instructionst instructions
The list of instructions in the goto program.
local_may_aliast local_may_alias
goto_functionst goto_functions
GOTO functions.
const irep_idt & function_id
A generic container class for the GOTO intermediate representation of one function.
static instructiont make_assumption(const exprt &g, const source_locationt &l=source_locationt::nil())
k_inductiont(const irep_idt &_function_id, goto_functiont &_goto_function, bool _base_case, bool _step_case, unsigned _k)
void insert_before_swap(targett target)
Insertion that preserves jumps to "target".
This class represents an instruction in the GOTO intermediate representation.
instructionst::iterator targett
void get_assigns(const local_may_aliast &local_may_alias, const loopt &loop, assignst &assigns)