CBMC
Loading...
Searching...
No Matches
show_properties.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: Show the properties
4
5Author: 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
17#include <optional>
18
19class json_arrayt;
20class namespacet;
21class goto_modelt;
22class goto_programt;
23class goto_functionst;
26
27#define OPT_SHOW_PROPERTIES \
28 "(show-properties)"
29
30#define HELP_SHOW_PROPERTIES \
31 " {y--show-properties} \t show the properties, but don't run analysis\n"
32
34 const goto_modelt &,
35 ui_message_handlert &ui_message_handler);
36
38 const namespacet &ns,
39 ui_message_handlert &ui_message_handler,
40 const goto_functionst &goto_functions);
41
49std::optional<source_locationt>
50find_property(const irep_idt &property, const goto_functionst &goto_functions);
51
59 const namespacet &ns,
60 const irep_idt &identifier,
61 const goto_programt &goto_program);
62
63#endif // CPROVER_GOTO_PROGRAMS_SHOW_PROPERTIES_H
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:562
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition dstring.h:38
A collection of goto functions.
A generic container class for the GOTO intermediate representation of one function.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition namespace.h:91
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
std::optional< 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.
void show_properties(const goto_modelt &, ui_message_handlert &ui_message_handler)