12 #ifndef CPROVER_GOTO_INSTRUMENT_COVER_INSTRUMENT_H 13 #define CPROVER_GOTO_INSTRUMENT_COVER_INSTRUMENT_H 70 t->source_location.set_comment(
comment);
73 t->source_location.set_function(
function);
74 t->function =
function;
79 return t->is_assert() &&
101 (*instrumenter)(goto_program, basic_blocks);
256 #endif // CPROVER_GOTO_INSTRUMENT_COVER_INSTRUMENT_H
Branch coverage instrumenter.
virtual void operator()(goto_programt &goto_program, const cover_blocks_baset &basic_blocks) const
Instruments a goto program.
cover_instrumenter_baset(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters, const irep_idt &_coverage_criterion)
cover_mcdc_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
std::string comment(const rw_set_baset::entryt &entry, bool write)
Basic block coverage instrumenter.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
void cover_instrument_end_of_function(const irep_idt &function, goto_programt &goto_program)
std::vector< std::unique_ptr< cover_instrumenter_baset > > instrumenters
virtual ~cover_instrumenter_baset()=default
__CPROVER_cover coverage instrumenter
cover_cover_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
instructionst::iterator targett
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
cover_condition_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
cover_assertion_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
instructionst::const_iterator const_targett
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
const irep_idt coverage_criterion
Base class for goto program coverage instrumenters.
cover_location_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
cover_branch_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
A generic container class for the GOTO intermediate representation of one function.
Assertion coverage instrumenter.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
void operator()(goto_programt &goto_program, const cover_blocks_baset &basic_blocks) const
Applies all instrumenters to the given goto program.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
MC/DC coverage instrumenter.
const irep_idt property_class
cover_decision_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
const goal_filterst & goal_filters
void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const override
Override this method to implement an instrumenter.
Decision coverage instrumenter.
#define Forall_goto_program_instructions(it, program)
void initialize_source_location(goto_programt::targett t, const std::string &comment, const irep_idt &function) const
A collection of instrumenters to be run.
cover_path_instrumentert(const symbol_tablet &_symbol_table, const goal_filterst &_goal_filters)
Path coverage instrumenter.
A collection of goal filters to be applied in conjunction.
Condition coverage instrumenter.
bool is_non_cover_assertion(goto_programt::const_targett t) const
void add_from_criterion(coverage_criteriont, const symbol_tablet &, const goal_filterst &)
Create and add an instrumenter based on the given criterion.
virtual void instrument(goto_programt &, goto_programt::targett &, const cover_blocks_baset &) const =0
Override this method to implement an instrumenter.