cprover
|
Show the properties. More...
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_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 | 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... | |
Show the properties.
Definition in file show_properties.h.
#define HELP_SHOW_PROPERTIES " --show-properties show the properties, but don't run analysis\n" |
Definition at line 29 of file show_properties.h.
Referenced by jdiff_parse_optionst::help(), goto_diff_parse_optionst::help(), cbmc_parse_optionst::help(), jbmc_parse_optionst::help(), goto_instrument_parse_optionst::help(), janalyzer_parse_optionst::help(), and goto_analyzer_parse_optionst::help().
#define OPT_SHOW_PROPERTIES "(show-properties)" |
Definition at line 26 of file show_properties.h.
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.
Referenced by aggressive_slicert::doit().
void show_properties | ( | const goto_modelt & | , |
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 | ( | 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().