cprover
cover.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Coverage Instrumentation
4 
5 Author: Daniel Kroening
6 
7 Date: May 2016
8 
9 \*******************************************************************/
10 
13 
14 #ifndef CPROVER_GOTO_INSTRUMENT_COVER_H
15 #define CPROVER_GOTO_INSTRUMENT_COVER_H
16 
18 #include "cover_filter.h"
19 #include "cover_instrument.h"
20 
21 class message_handlert;
22 class cmdlinet;
23 class optionst;
24 
26 {
27  LOCATION,
28  BRANCH,
29  DECISION,
30  CONDITION,
31  PATH,
32  MCDC,
33  ASSERTION,
34  COVER // __CPROVER_cover(x) annotations
35 };
36 
38 {
45 };
46 
48  const symbol_tablet &,
51  message_handlert &message_handler);
52 
54  const symbol_tablet &,
55  goto_programt &,
57  message_handlert &message_handler);
58 
59 std::unique_ptr<cover_configt> get_cover_config(
60  const optionst &, const symbol_tablet &, message_handlert &);
61 
63  const cover_configt &,
66 
67 void parse_cover_options(const cmdlinet &, optionst &);
68 
70  const optionst &,
71  const symbol_tablet &,
74 
76  const optionst &,
77  goto_modelt &,
79 
80 #endif // CPROVER_GOTO_INSTRUMENT_COVER_H
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:35
coverage_criteriont::COVER
symbol_tablet
The symbol table.
Definition: symbol_table.h:19
optionst
Definition: options.h:22
get_cover_config
std::unique_ptr< cover_configt > get_cover_config(const optionst &, const symbol_tablet &, message_handlert &)
Build data structures controlling coverage from command-line options.
Definition: cover.cpp:184
parse_cover_options
void parse_cover_options(const cmdlinet &, optionst &)
Parses coverage-related command line options.
Definition: cover.cpp:160
coverage_criteriont::PATH
goto_model.h
goto_modelt
Definition: goto_model.h:24
coverage_criteriont
coverage_criteriont
Definition: cover.h:25
cover_configt::mode
irep_idt mode
Definition: cover.h:41
coverage_criteriont::ASSERTION
coverage_criteriont::CONDITION
instrument_cover_goals
void instrument_cover_goals(const symbol_tablet &, goto_functionst &, coverage_criteriont, message_handlert &message_handler)
coverage_criteriont::LOCATION
cover_configt::cover_instrumenters
cover_instrumenterst cover_instrumenters
Definition: cover.h:44
cmdlinet
Definition: cmdline.h:19
coverage_criteriont::DECISION
cover_configt::traces_must_terminate
bool traces_must_terminate
Definition: cover.h:40
cover_instrument.h
message_handlert
Definition: message.h:24
goal_filterst
A collection of goal filters to be applied in conjunction.
Definition: cover_filter.h:111
cover_configt::goal_filters
goal_filterst goal_filters
Definition: cover.h:43
goto_functionst
A collection of goto functions.
Definition: goto_functions.h:22
cover_configt::function_filters
function_filterst function_filters
Definition: cover.h:42
coverage_criteriont::BRANCH
goto_programt
A generic container class for the GOTO intermediate representation of one function.
Definition: goto_program.h:72
coverage_criteriont::MCDC
cover_configt
Definition: cover.h:37
function_filterst
A collection of function filters to be applied in conjunction.
Definition: cover_filter.h:74
goto_model_functiont
Interface providing access to a single function in a GOTO model, plus its associated symbol table.
Definition: goto_model.h:153
cover_filter.h
cover_configt::keep_assertions
bool keep_assertions
Definition: cover.h:39
cover_instrumenterst
A collection of instrumenters to be run.
Definition: cover_instrument.h:85