42 {
"totalNumberOfFunctions",
47 json_result[
"modifiedFunctions"].make_array(),
51 json_result[
"deletedFunctions"].make_array(),
69 const std::string &group_name,
70 const std::set<irep_idt> &function_group,
74 for(
const auto &function_name : function_group)
96 const auto goto_function_it =
100 const goto_programt &goto_program = goto_function_it->second.body;
109 msg.
result() <<
"\n " << property_id;
122 const std::set<irep_idt> &function_group,
125 for(
const auto &function_name : function_group)
128 result.
push_back(
jsont()).make_object(), function_name, goto_model);
149 const auto goto_function_it =
153 const goto_programt &goto_program = goto_function_it->second.body;
156 result[
"properties"].make_array(), ns, function_name, goto_program);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
void output_function(const irep_idt &function_name, const goto_modelt &goto_model) const
Output function information in plain text format.
std::set< irep_idt > modified_functions
void convert_function_group_json(json_arrayt &result, const std::set< irep_idt > &function_group, const goto_modelt &goto_model) const
Convert a function group to JSON.
const goto_modelt & goto_model1
virtual void output_functions() const
Output diff result.
void convert_function_json(json_objectt &result, const irep_idt &function_name, const goto_modelt &goto_model) const
Convert function information to JSON.
std::set< irep_idt > new_functions
void output_function_group(const std::string &group_name, const std::set< irep_idt > &function_group, const goto_modelt &goto_model) const
Output group of functions in plain text format.
unsigned total_functions_count
std::set< irep_idt > deleted_functions
const goto_modelt & goto_model2
ui_message_handlert & message_handler
function_mapt function_map
symbol_tablet symbol_table
Symbol table.
goto_functionst goto_functions
GOTO functions.
A generic container class for the GOTO intermediate representation of one function.
instructionst instructions
The list of instructions in the goto program.
jsont & push_back(const jsont &json)
Class that provides messages with a built-in verbosity 'level'.
mstreamt & result() const
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
bool lookup(const irep_idt &name, const symbolt *&symbol) const override
See documentation for namespace_baset::lookup().
bool get_bool_option(const std::string &option) const
const irep_idt & get_property_id() const
const irep_idt & get_file() const
source_locationt location
Source code location of definition of symbol.
virtual uit get_ui() const
static void json(json_objectT &result, const irep_idt &property_id, const property_infot &property_info)
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
#define CHECK_RETURN(CONDITION)
std::string to_string(const string_not_contains_constraintt &expr)
Used for debug printing.