CBMC
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/irep.h>
16 #include <util/optional.h>
17 
18 class json_arrayt;
19 class namespacet;
20 class goto_modelt;
21 class goto_programt;
22 class goto_functionst;
23 class source_locationt;
25 
26 // clang-format off
27 #define OPT_SHOW_PROPERTIES \
28  "(show-properties)"
29 
30 #define HELP_SHOW_PROPERTIES \
31  " --show-properties show the properties, but don't run analysis\n" // NOLINT(*)
32 // clang-format on
33 
34 void show_properties(
35  const goto_modelt &,
36  ui_message_handlert &ui_message_handler);
37 
38 void show_properties(
39  const namespacet &ns,
40  ui_message_handlert &ui_message_handler,
41  const goto_functionst &goto_functions);
42 
51  const irep_idt &property,
52  const goto_functionst &goto_functions);
53 
60  json_arrayt &json_properties,
61  const namespacet &ns,
62  const irep_idt &identifier,
63  const goto_programt &goto_program);
64 
65 #endif // CPROVER_GOTO_PROGRAMS_SHOW_PROPERTIES_H
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:36
ui_message_handlert
Definition: ui_message.h:21
convert_properties_json
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
Definition: show_properties.cpp:127
optional.h
goto_modelt
Definition: goto_model.h:25
json_arrayt
Definition: json.h:164
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:90
show_properties
void show_properties(const goto_modelt &, ui_message_handlert &ui_message_handler)
Definition: show_properties.cpp:204
optionalt
nonstd::optional< T > optionalt
Definition: optional.h:35
source_locationt
Definition: source_location.h:18
goto_functionst
A collection of goto functions.
Definition: goto_functions.h:24
find_property
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.
Definition: show_properties.cpp:22
goto_programt
A generic container class for the GOTO intermediate representation of one function.
Definition: goto_program.h:72
irep.h