CBMC
show_properties.h File Reference

Show the properties. More...

#include <util/irep.h>
#include <optional>
+ Include dependency graph for show_properties.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OPT_SHOW_PROPERTIES    "(show-properties)"
 
#define HELP_SHOW_PROPERTIES    " {y--show-properties} \t show the properties, but don't run analysis\n"
 

Functions

void show_properties (const goto_modelt &, ui_message_handlert &ui_message_handler)
 
void show_properties (const namespacet &ns, ui_message_handlert &ui_message_handler, const goto_functionst &goto_functions)
 
std::optional< source_locationtfind_property (const irep_idt &property, const goto_functionst &goto_functions)
 Returns a source_locationt that corresponds to the property given by an irep_idt. More...
 
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 More...
 

Detailed Description

Show the properties.

Definition in file show_properties.h.

Macro Definition Documentation

◆ HELP_SHOW_PROPERTIES

#define HELP_SHOW_PROPERTIES    " {y--show-properties} \t show the properties, but don't run analysis\n"

Definition at line 30 of file show_properties.h.

◆ OPT_SHOW_PROPERTIES

#define OPT_SHOW_PROPERTIES    "(show-properties)"

Definition at line 27 of file show_properties.h.

Function Documentation

◆ 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

Parameters
json_propertiesJSON array to hold the properties
nsnamespace
identifierfunction id of the goto program
goto_programthe goto program

Definition at line 126 of file show_properties.cpp.

◆ find_property()

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.

Parameters
propertyirep_idt that identifies property
goto_functionsprogram in which to search for the property
Returns
optional<source_locationt> the location of the property, if found.

Definition at line 23 of file show_properties.cpp.

◆ show_properties() [1/2]

void show_properties ( const goto_modelt goto_model,
ui_message_handlert ui_message_handler 
)

Definition at line 203 of file show_properties.cpp.

◆ show_properties() [2/2]

void show_properties ( const namespacet ns,
ui_message_handlert ui_message_handler,
const goto_functionst goto_functions 
)

Definition at line 190 of file show_properties.cpp.