CBMC
reachability_slicer.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Slicing
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_INSTRUMENT_REACHABILITY_SLICER_H
13 #define CPROVER_GOTO_INSTRUMENT_REACHABILITY_SLICER_H
14 
15 #include <list>
16 #include <string>
17 
18 class goto_modelt;
19 class message_handlert;
20 
22 
24  goto_modelt &,
25  const std::list<std::string> &properties,
27 
29  goto_modelt &goto_model,
30  const std::list<std::string> &functions_list,
32 
34  goto_modelt &,
35  const bool include_forward_reachability,
37 
39  goto_modelt &,
40  const std::list<std::string> &properties,
41  const bool include_forward_reachability,
43 
44 // clang-format off
45 #define OPT_REACHABILITY_SLICER \
46  "(fp-reachability-slice):(reachability-slice)(reachability-slice-fb)" // NOLINT(*)
47 
48 #define HELP_REACHABILITY_SLICER \
49  " --fp-reachability-slice f remove instructions that cannot appear on a trace\n" \
50  " that visits all given functions. The list of\n" \
51  " functions has to be given as a comma separated\n" \
52  " list f.\n" \
53  " --reachability-slice remove instructions that cannot appear on a trace\n" \
54  " from entry point to a property\n" // NOLINT(*)
55 #define HELP_REACHABILITY_SLICER_FB \
56  " --reachability-slice-fb remove instructions that cannot appear on a trace\n" \
57  " from entry point through a property\n" // NOLINT(*)
58 // clang-format on
59 #endif // CPROVER_GOTO_INSTRUMENT_REACHABILITY_SLICER_H
function_path_reachability_slicer
void function_path_reachability_slicer(goto_modelt &goto_model, const std::list< std::string > &functions_list, message_handlert &)
Perform reachability slicing on goto_model for selected functions.
Definition: reachability_slicer.cpp:438
goto_modelt
Definition: goto_model.h:25
message_handlert
Definition: message.h:27
reachability_slicer
void reachability_slicer(goto_modelt &, message_handlert &)
Perform reachability slicing on goto_model, with respect to criterion comprising all properties.
Definition: reachability_slicer.cpp:463