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 
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 
46 {
47 public:
48  virtual int doit();
49  virtual void help();
50 
51  jdiff_parse_optionst(int argc, const char **argv);
53  int argc,
54  const char **argv,
55  const std::string &extra_options);
56 
57 protected:
61 
63 
64  virtual int get_goto_program(
65  const optionst &options,
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 Languages.
Show the goto functions.
jdiff_languagest languages2
Symbol Table + CFG.
ui_message_handlert ui_message_handler
virtual bool process_goto_program(const optionst &options, goto_modelt &goto_model)
Program Transformation.
virtual int doit()
invoke main modules
virtual int get_goto_program(const optionst &options, jdiff_languagest &languages, goto_modelt &goto_model)
virtual void get_command_line_options(optionst &options)
Emit timestamps.
Options.
Show the properties.
jdiff_parse_optionst(int argc, const char **argv)
languagest languages
Definition: mode.cpp:32
virtual void help()
display command line help