cprover
show_properties.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Show the properties
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_PROGRAMS_SHOW_PROPERTIES_H
13 #define CPROVER_GOTO_PROGRAMS_SHOW_PROPERTIES_H
14 
15 #include <util/ui_message.h>
16 #include <util/optional.h>
17 
18 class namespacet;
19 class goto_modelt;
20 class symbol_tablet;
21 class goto_programt;
22 class goto_functionst;
23 class message_handlert;
24 
25 // clang-format off
26 #define OPT_SHOW_PROPERTIES \
27  "(show-properties)"
28 
29 #define HELP_SHOW_PROPERTIES \
30  " --show-properties show the properties, but don't run analysis\n" // NOLINT(*)
31 // clang-format on
32 
33 void show_properties(
34  const goto_modelt &,
35  message_handlert &message_handler,
37 
38 void show_properties(
39  const namespacet &ns,
40  message_handlert &message_handler,
42  const goto_functionst &goto_functions);
43 
52  const irep_idt &property,
53  const goto_functionst &goto_functions);
54 
61  json_arrayt &json_properties,
62  const namespacet &ns,
63  const irep_idt &identifier,
64  const goto_programt &goto_program);
65 
66 #endif // CPROVER_GOTO_PROGRAMS_SHOW_PROPERTIES_H
void convert_properties_json(json_arrayt &json_properties, const namespacet &ns, const irep_idt &identifier, const goto_programt &goto_program)
Collects the properties in the goto program into a json_arrayt
nonstd::optional< T > optionalt
Definition: optional.h:35
The symbol table.
Definition: symbol_table.h:19
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:93
A collection of goto functions.
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
Definition: dstring.h:35
void show_properties(const goto_modelt &, message_handlert &message_handler, ui_message_handlert::uit ui)
optionalt< source_locationt > find_property(const irep_idt &property, const goto_functionst &goto_functions)
Returns a source_locationt that corresponds to the property given by an irep_idt. ...
A generic container class for the GOTO intermediate representation of one function.
Definition: goto_program.h:72