CBMC
show_properties.cpp File Reference

Show Claims. More...

#include "show_properties.h"
#include <util/json_irep.h>
#include <util/ui_message.h>
#include <util/xml_irep.h>
#include <langapi/language_util.h>
#include "goto_model.h"
+ Include dependency graph for show_properties.cpp:

Go to the source code of this file.

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 show_properties (const namespacet &ns, const irep_idt &identifier, message_handlert &message_handler, ui_message_handlert::uit ui, const goto_programt &goto_program)
 
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...
 
void show_properties_json (const namespacet &ns, message_handlert &message_handler, const goto_functionst &goto_functions)
 
void show_properties (const namespacet &ns, ui_message_handlert &ui_message_handler, const goto_functionst &goto_functions)
 
void show_properties (const goto_modelt &goto_model, ui_message_handlert &ui_message_handler)
 

Detailed Description

Show Claims.

Definition in file show_properties.cpp.

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/3]

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/3]

void show_properties ( const namespacet ns,
const irep_idt identifier,
message_handlert message_handler,
ui_message_handlert::uit  ui,
const goto_programt goto_program 
)

Definition at line 43 of file show_properties.cpp.

◆ show_properties() [3/3]

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.

◆ show_properties_json()

void show_properties_json ( const namespacet ns,
message_handlert message_handler,
const goto_functionst goto_functions 
)

Definition at line 175 of file show_properties.cpp.