cprover
goto_analyzer_parse_options.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Goto-Analyser Command Line Option Processing
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
88
89
#ifndef CPROVER_GOTO_ANALYZER_GOTO_ANALYZER_PARSE_OPTIONS_H
90
#define CPROVER_GOTO_ANALYZER_GOTO_ANALYZER_PARSE_OPTIONS_H
91
92
#include <
util/parse_options.h
>
93
#include <
util/timestamper.h
>
94
#include <
util/ui_message.h
>
95
#include <
util/validation_interface.h
>
96
97
#include <
langapi/language.h
>
98
99
#include <
goto-programs/goto_model.h
>
100
#include <
goto-programs/show_goto_functions.h
>
101
#include <
goto-programs/show_properties.h
>
102
103
#include <
analyses/ai.h
>
104
#include <
analyses/goto_check.h
>
105
#include <
analyses/variable-sensitivity/variable_sensitivity_domain.h
>
106
107
class
goto_functionst
;
108
class
optionst
;
109
110
// clang-format off
111
#define GOTO_ANALYSER_OPTIONS_TASKS \
112
"(show)(verify)(simplify):" \
113
"(show-on-source)" \
114
"(unreachable-instructions)(unreachable-functions)" \
115
"(reachable-functions)"
116
117
#define GOTO_ANALYSER_OPTIONS_AI \
118
"(recursive-interprocedural)" \
119
"(three-way-merge)" \
120
"(legacy-ait)" \
121
"(legacy-concurrent)"
122
123
#define GOTO_ANALYSER_OPTIONS_HISTORY \
124
"(ahistorical)" \
125
"(call-stack):" \
126
"(loop-unwind):" \
127
"(branching):" \
128
"(loop-unwind-and-branching):"
129
130
#define GOTO_ANALYSER_OPTIONS_DOMAIN \
131
"(intervals)" \
132
"(non-null)" \
133
"(constants)" \
134
"(dependence-graph)" \
135
"(vsd)(variable-sensitivity)" \
136
"(dependence-graph-vs)" \
137
138
#define GOTO_ANALYSER_OPTIONS_STORAGE \
139
"(one-domain-per-history)" \
140
"(one-domain-per-location)"
141
142
#define GOTO_ANALYSER_OPTIONS_OUTPUT \
143
"(json):(xml):" \
144
"(text):(dot):"
145
146
#define GOTO_ANALYSER_OPTIONS_SPECIFIC_ANALYSES \
147
"(taint):(show-taint)" \
148
"(show-local-may-alias)"
149
150
#define GOTO_ANALYSER_OPTIONS \
151
OPT_FUNCTIONS \
152
OPT_CONFIG_C_CPP \
153
OPT_CONFIG_PLATFORM \
154
OPT_SHOW_GOTO_FUNCTIONS \
155
OPT_SHOW_PROPERTIES \
156
OPT_GOTO_CHECK \
157
"(show-loops)" \
158
"(show-symbol-table)(show-parse-tree)" \
159
"(show-reachable-properties)(property):" \
160
"(verbosity):(version)" \
161
OPT_FLUSH \
162
OPT_TIMESTAMP \
163
OPT_VALIDATE \
164
GOTO_ANALYSER_OPTIONS_TASKS \
165
"(no-simplify-slicing)" \
166
"(show-intervals)(show-non-null)" \
167
GOTO_ANALYSER_OPTIONS_AI \
168
"(location-sensitive)(concurrent)" \
169
GOTO_ANALYSER_OPTIONS_HISTORY \
170
GOTO_ANALYSER_OPTIONS_DOMAIN \
171
OPT_VSD \
172
GOTO_ANALYSER_OPTIONS_STORAGE \
173
GOTO_ANALYSER_OPTIONS_OUTPUT \
174
GOTO_ANALYSER_OPTIONS_SPECIFIC_ANALYSES \
175
// clang-format on
176
177
class
goto_analyzer_parse_optionst
:
public
parse_options_baset
178
{
179
public
:
180
virtual
int
doit
()
override
;
181
virtual
void
help
()
override
;
182
183
goto_analyzer_parse_optionst
(
int
argc,
const
char
**argv);
184
185
protected
:
186
goto_modelt
goto_model
;
187
188
virtual
void
register_languages
();
189
190
virtual
void
get_command_line_options
(
optionst
&options);
191
192
virtual
bool
process_goto_program
(
const
optionst
&options);
193
194
virtual
int
perform_analysis
(
const
optionst
&options);
195
};
196
197
#endif // CPROVER_GOTO_ANALYZER_GOTO_ANALYZER_PARSE_OPTIONS_H
parse_options_baset
Definition:
parse_options.h:20
optionst
Definition:
options.h:23
goto_analyzer_parse_optionst::get_command_line_options
virtual void get_command_line_options(optionst &options)
Definition:
goto_analyzer_parse_options.cpp:80
validation_interface.h
goto_model.h
Symbol Table + CFG.
goto_modelt
Definition:
goto_model.h:26
show_goto_functions.h
Show the goto functions.
goto_analyzer_parse_optionst::goto_analyzer_parse_optionst
goto_analyzer_parse_optionst(int argc, const char **argv)
Definition:
goto_analyzer_parse_options.cpp:62
goto_analyzer_parse_optionst::process_goto_program
virtual bool process_goto_program(const optionst &options)
Definition:
goto_analyzer_parse_options.cpp:679
show_properties.h
Show the properties.
goto_analyzer_parse_optionst::doit
virtual int doit() override
invoke main modules
Definition:
goto_analyzer_parse_options.cpp:384
language.h
Abstract interface to support a programming language.
goto_analyzer_parse_optionst::help
virtual void help() override
display command line help
Definition:
goto_analyzer_parse_options.cpp:702
parse_options.h
goto_check.h
Program Transformation.
ai.h
Abstract Interpretation.
goto_analyzer_parse_optionst::register_languages
virtual void register_languages()
Definition:
goto_analyzer_parse_options.cpp:73
goto_functionst
A collection of goto functions.
Definition:
goto_functions.h:23
goto_analyzer_parse_optionst
Definition:
goto_analyzer_parse_options.h:178
variable_sensitivity_domain.h
There are different ways of handling arrays, structures, unions and pointers.
timestamper.h
Emit timestamps.
goto_analyzer_parse_optionst::goto_model
goto_modelt goto_model
Definition:
goto_analyzer_parse_options.h:186
goto_analyzer_parse_optionst::perform_analysis
virtual int perform_analysis(const optionst &options)
Depending on the command line mode, run one of the analysis tasks.
Definition:
goto_analyzer_parse_options.cpp:445
ui_message.h
goto-analyzer
goto_analyzer_parse_options.h
Generated by
1.8.20