cprover
show_properties.h File Reference

Show the properties. More...

#include <util/ui_message.h>
#include <util/optional.h>
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   " --show-properties show the properties, but don't run analysis\n"
 

Functions

void show_properties (const goto_modelt &, message_handlert &message_handler, ui_message_handlert::uit ui)
 
void show_properties (const namespacet &ns, message_handlert &message_handler, ui_message_handlert::uit ui, const goto_functionst &goto_functions)
 
optionalt< 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

◆ OPT_SHOW_PROPERTIES

#define OPT_SHOW_PROPERTIES   "(show-properties)"

Definition at line 26 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 111 of file show_properties.cpp.

References comment(), dstringt::empty(), from_expr(), source_locationt::get_basic_block_covered_lines(), source_locationt::get_comment(), source_locationt::get_property_class(), source_locationt::get_property_id(), goto_program, goto_programt::instructions, json(), jsont::make_object(), and json_arrayt::push_back().

Referenced by goto_difft::convert_function_json(), and show_properties_json().

◆ 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.

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 27 of file show_properties.cpp.

References goto_functionst::function_map, goto_program, and goto_programt::instructions.

◆ show_properties() [1/2]

◆ show_properties() [2/2]

void show_properties ( const namespacet ns,
message_handlert message_handler,
ui_message_handlert::uit  ui,
const goto_functionst goto_functions 
)