cprover
|
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"
Go to the source code of this file.
Functions | |
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. 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) |
Show Claims.
Definition in file show_properties.cpp.
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
json_properties | JSON array to hold the properties |
ns | namespace |
identifier | function id of the goto program |
goto_program | the 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().
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.
property | irep_idt that identifies property |
goto_functions | program in which to search for the property |
Definition at line 27 of file show_properties.cpp.
References goto_functionst::function_map, goto_program, and goto_programt::instructions.
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 49 of file show_properties.cpp.
References comment(), xmlt::data, messaget::eom(), from_expr(), source_locationt::get_comment(), source_locationt::get_property_class(), source_locationt::get_property_id(), goto_program, id2string(), goto_programt::instructions, ui_message_handlert::JSON_UI, message_handler, xmlt::new_element(), ui_message_handlert::PLAIN, messaget::result(), xmlt::set_attribute(), messaget::mstreamt::source_location, UNREACHABLE, xml(), and ui_message_handlert::XML_UI.
Referenced by clobber_parse_optionst::doit(), cbmc_parse_optionst::doit(), jbmc_parse_optionst::doit(), goto_instrument_parse_optionst::doit(), janalyzer_parse_optionst::perform_analysis(), goto_analyzer_parse_optionst::perform_analysis(), jbmc_parse_optionst::show_loaded_functions(), and show_properties().
void show_properties | ( | const namespacet & | ns, |
message_handlert & | message_handler, | ||
ui_message_handlert::uit | ui, | ||
const goto_functionst & | goto_functions | ||
) |
Definition at line 163 of file show_properties.cpp.
References goto_functionst::function_map, ui_message_handlert::JSON_UI, message_handler, show_properties(), and show_properties_json().
void show_properties | ( | const goto_modelt & | goto_model, |
message_handlert & | message_handler, | ||
ui_message_handlert::uit | ui | ||
) |
Definition at line 177 of file show_properties.cpp.
References goto_modelt::goto_functions, ui_message_handlert::JSON_UI, message_handler, show_properties(), show_properties_json(), and goto_modelt::symbol_table.
void show_properties_json | ( | const namespacet & | ns, |
message_handlert & | message_handler, | ||
const goto_functionst & | goto_functions | ||
) |
Definition at line 146 of file show_properties.cpp.
References convert_properties_json(), goto_functionst::function_map, message_handler, and messaget::result().
Referenced by show_properties().