Go to the documentation of this file.
28 if(!i_it->source_location.is_built_in())
34 for(
const auto &c : conditions)
36 const std::string c_string =
from_expr(
ns, i_it->function, c);
38 const std::string comment_t =
"condition `" + c_string +
"' true";
39 const irep_idt function = i_it->function;
41 i_it->make_assertion(c);
42 i_it->source_location = source_location;
45 const std::string comment_f =
"condition `" + c_string +
"' false";
48 i_it->source_location = source_location;
52 for(std::size_t i = 0; i < conditions.size() * 2; i++)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
bool is_non_cover_assertion(goto_programt::const_targett t) const
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
std::set< exprt > collect_conditions(const exprt &src)
void initialize_source_location(goto_programt::targett t, const std::string &comment, const irep_idt &function) const
A generic container class for the GOTO intermediate representation of one function.
void insert_before_swap(targett target)
Insertion that preserves jumps to "target".
std::string from_expr(const namespacet &ns, const irep_idt &identifier, const exprt &expr)
instructionst::iterator targett