27 std::string
comment =
"entry point";
33 t->source_location = source_location;
38 i_it->is_goto() && !i_it->guard.is_true() &&
39 !i_it->source_location.is_built_in())
43 std::string true_comment =
"block " + b +
" branch true";
44 std::string false_comment =
"block " + b +
" branch false";
46 exprt guard = i_it->guard;
47 const irep_idt function = i_it->function;
52 i_it->source_location = source_location;
56 i_it->make_assertion(guard);
57 i_it->source_location = source_location;
60 std::advance(i_it, 2);
void insert_before_swap(targett target)
Insertion that preserves jumps to "target".
targett insert_before(const_targett target)
Insertion before the instruction pointed-to by the given instruction iterator target.
std::string comment(const rw_set_baset::entryt &entry, bool write)
std::string to_string(const string_not_contains_constraintt &expr)
Used for debug printing.
Coverage Instrumentation.
Basic blocks detection for Coverage Instrumentation.
instructionst::iterator targett
instructionst instructions
The list of instructions in the goto program.
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
virtual std::size_t block_of(goto_programt::const_targett t) const =0
The Boolean constant false.
A generic container class for the GOTO intermediate representation of one function.
Base class for all expressions.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
void initialize_source_location(goto_programt::targett t, const std::string &comment, const irep_idt &function) const
bool is_non_cover_assertion(goto_programt::const_targett t) const