cprover
show_properties.cpp File Reference

Show Claims. More...

#include "show_properties.h"
#include <iostream>
#include <util/xml.h>
#include <util/xml_expr.h>
#include <util/json.h>
#include <util/json_expr.h>
#include <langapi/language_util.h>
#include "goto_functions.h"
#include "goto_model.h"
Include dependency graph for show_properties.cpp:

Go to the source code of this file.

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

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

Referenced by aggressive_slicert::doit().

◆ show_properties() [1/3]

◆ show_properties() [2/3]

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

◆ show_properties() [3/3]

◆ show_properties_json()

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