Loading...
Searching...
No Matches
Coverage Instrumentation.
More...
+ Include dependency graph for cover.cpp:
Go to the source code of this file.
Applies instrumenters to given goto program.
Parses a coverage criterion.
Parses coverage-related command line options.
Build data structures controlling coverage from command-line options.
Build data structures controlling coverage from command-line options.
Instruments a single goto program based on the given configuration.
Instruments a single goto program based on the given configuration.
Instruments goto functions based on given command line options.
Instruments a goto model based on given command line options.
Detailed Description
Coverage Instrumentation.
Definition in file cover.cpp.
Function Documentation
◆ get_cover_config() [1/2]
Build data structures controlling coverage from command-line options.
Include options that depend on the main function specified by the user.
- Parameters
-
options command-line options
main_function_id symbol of the user-specified main program function
symbol_table global symbol table
message_handler used to log incorrect option specifications
- Returns
- a cover_configt on success, or null otherwise.
Definition at line 247 of file cover.cpp.
◆ get_cover_config() [2/2]
Build data structures controlling coverage from command-line options.
Do not include the options that depend on the main function specified by the user.
- Parameters
-
options command-line options
symbol_table global symbol table
message_handler used to log incorrect option specifications
- Returns
- a cover_configt on success, or null otherwise.
Definition at line 181 of file cover.cpp.
◆ instrument_cover_goals() [1/5]
Instruments goto functions based on given command line options.
- Parameters
-
cover_config configuration, produced using get_cover_config
symbol_table the symbol table
goto_functions the goto functions
message_handler a message handler
Definition at line 375 of file cover.cpp.
◆ instrument_cover_goals() [2/5]
Instruments a single goto program based on the given configuration.
- Parameters
-
cover_config configuration, produced using get_cover_config
function_symbol symbol of the function to be instrumented
function function to instrument
message_handler log output
Definition at line 286 of file cover.cpp.
◆ instrument_cover_goals() [3/5]
Instruments a single goto program based on the given configuration.
- Parameters
-
cover_config configuration, produced using get_cover_config
function goto program to instrument
message_handler log output
Definition at line 354 of file cover.cpp.
◆ instrument_cover_goals() [4/5]
Instruments a goto model based on given command line options.
- Parameters
-
cover_config configuration, produced using get_cover_config
goto_model the goto model
message_handler a message handler
Definition at line 412 of file cover.cpp.
◆ instrument_cover_goals() [5/5]
Applies instrumenters to given goto program.
- Parameters
-
function_id name of goto_program
goto_program the goto program
instrumenters the instrumenters
mode mode of the function to instrument (for instance ID_C or ID_java)
message_handler a message handler
make_assertion A function which takes an expression, with a source location and makes an assertion based on that expression. The expression asserted is expected to include the expression passed in, but may include other additional conditions.
Definition at line 36 of file cover.cpp.
◆ parse_cover_options()
Parses coverage-related command line options.
- Parameters
-
cmdline the command line
options the options
Definition at line 143 of file cover.cpp.
◆ parse_coverage_criterion()
Parses a coverage criterion.
- Parameters
-
criterion_string a string
- Returns
- a coverage criterion or throws an exception
Definition at line 108 of file cover.cpp.