CBMC
show_goto_functions_jsont Class Reference

#include <show_goto_functions_json.h>

Public Member Functions

 show_goto_functions_jsont (bool _list_only=false)
 For outputting the GOTO program in a readable JSON format. More...
 
json_objectt convert (const goto_functionst &goto_functions)
 Walks through all of the functions in the program and returns a JSON object representing all their functions. More...
 
void operator() (const goto_functionst &goto_functions, std::ostream &out, bool append=true)
 Print the json object generated by show_goto_functions_jsont::show_goto_functions to the provided stream (e.g. More...
 

Private Attributes

bool list_only
 

Detailed Description

Definition at line 19 of file show_goto_functions_json.h.

Constructor & Destructor Documentation

◆ show_goto_functions_jsont()

show_goto_functions_jsont::show_goto_functions_jsont ( bool  _list_only = false)
explicit

For outputting the GOTO program in a readable JSON format.

Parameters
_list_onlyoutput only list of functions, but not their bodies

Definition at line 23 of file show_goto_functions_json.cpp.

Member Function Documentation

◆ convert()

json_objectt show_goto_functions_jsont::convert ( const goto_functionst goto_functions)

Walks through all of the functions in the program and returns a JSON object representing all their functions.

Parameters
goto_functionsthe goto functions that make up the program

Definition at line 30 of file show_goto_functions_json.cpp.

◆ operator()()

void show_goto_functions_jsont::operator() ( const goto_functionst goto_functions,
std::ostream &  out,
bool  append = true 
)

Print the json object generated by show_goto_functions_jsont::show_goto_functions to the provided stream (e.g.

std::cout)

Parameters
goto_functionsthe goto functions that make up the program
outthe stream to write the object to
appendshould a command and newline be appended to the stream before writing the JSON object. Defaults to true

Definition at line 118 of file show_goto_functions_json.cpp.

Member Data Documentation

◆ list_only

bool show_goto_functions_jsont::list_only
private

Definition at line 30 of file show_goto_functions_json.h.


The documentation for this class was generated from the following files: