cprover
jdiff_parse_options.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: JDIFF Command Line Option Processing
4
5
Author: Peter Schrammel
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_JDIFF_JDIFF_PARSE_OPTIONS_H
13
#define CPROVER_JDIFF_JDIFF_PARSE_OPTIONS_H
14
15
#include <
analyses/goto_check.h
>
16
17
#include <
util/options.h
>
18
#include <
util/parse_options.h
>
19
#include <
util/timestamper.h
>
20
#include <
util/ui_message.h
>
21
22
#include <
goto-programs/goto_model.h
>
23
#include <
goto-programs/show_goto_functions.h
>
24
#include <
goto-programs/show_properties.h
>
25
26
#include "
jdiff_languages.h
"
27
28
class
goto_modelt
;
29
30
// clang-format off
31
#define JDIFF_OPTIONS \
32
"(json-ui)" \
33
OPT_SHOW_GOTO_FUNCTIONS \
34
OPT_SHOW_PROPERTIES \
35
OPT_GOTO_CHECK \
36
"(cover):" \
37
"(verbosity):(version)" \
38
"(no-lazy-methods)"
/* should go away */
\
39
"(no-refine-strings)"
/* should go away */
\
40
OPT_TIMESTAMP \
41
"u(unified)(change-impact)(forward-impact)(backward-impact)" \
42
"(compact-output)"
43
// clang-format on
44
45
class
jdiff_parse_optionst
:
public
parse_options_baset
,
public
jdiff_languagest
46
{
47
public
:
48
virtual
int
doit
();
49
virtual
void
help
();
50
51
jdiff_parse_optionst
(
int
argc,
const
char
**argv);
52
jdiff_parse_optionst
(
53
int
argc,
54
const
char
**argv,
55
const
std::string &extra_options);
56
57
protected
:
58
optionst
options
;
59
ui_message_handlert
ui_message_handler
;
60
jdiff_languagest
languages2
;
61
62
virtual
void
get_command_line_options
(
optionst
&
options
);
63
64
virtual
int
get_goto_program
(
65
const
optionst
&
options
,
66
jdiff_languagest
&
languages
,
67
goto_modelt
&goto_model);
68
69
virtual
bool
70
process_goto_program
(
const
optionst
&
options
,
goto_modelt
&goto_model);
71
72
void
preprocessing
();
73
};
74
75
#endif // CPROVER_JDIFF_JDIFF_PARSE_OPTIONS_H
jdiff_parse_optionst::doit
virtual int doit()
invoke main modules
Definition:
jdiff_parse_options.cpp:191
jdiff_parse_optionst::get_command_line_options
virtual void get_command_line_options(optionst &options)
Definition:
jdiff_parse_options.cpp:84
parse_options_baset
Definition:
parse_options.h:17
ui_message_handlert
Definition:
ui_message.h:19
jdiff_parse_optionst::languages2
jdiff_languagest languages2
Definition:
jdiff_parse_options.h:60
optionst
Definition:
options.h:22
jdiff_parse_optionst
Definition:
jdiff_parse_options.h:45
goto_model.h
goto_modelt
Definition:
goto_model.h:24
show_goto_functions.h
options.h
jdiff_parse_optionst::preprocessing
void preprocessing()
show_properties.h
jdiff_parse_optionst::help
virtual void help()
display command line help
Definition:
jdiff_parse_options.cpp:439
parse_options.h
goto_check.h
jdiff_parse_optionst::ui_message_handler
ui_message_handlert ui_message_handler
Definition:
jdiff_parse_options.h:59
jdiff_parse_optionst::jdiff_parse_optionst
jdiff_parse_optionst(int argc, const char **argv)
Definition:
jdiff_parse_options.cpp:65
jdiff_languagest
Definition:
jdiff_languages.h:18
jdiff_parse_optionst::options
optionst options
Definition:
jdiff_parse_options.h:58
jdiff_parse_optionst::process_goto_program
virtual bool process_goto_program(const optionst &options, goto_modelt &goto_model)
Definition:
jdiff_parse_options.cpp:341
timestamper.h
Emit timestamps.
languages
languagest languages
Definition:
mode.cpp:32
jdiff_parse_optionst::get_goto_program
virtual int get_goto_program(const optionst &options, jdiff_languagest &languages, goto_modelt &goto_model)
Definition:
jdiff_parse_options.cpp:286
jdiff_languages.h
ui_message.h
jbmc
src
jdiff
jdiff_parse_options.h
Generated by
1.8.16