CBMC
show_goto_functions_json.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Goto Program
4 
5 Author: Thomas Kiley
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_PROGRAMS_SHOW_GOTO_FUNCTIONS_JSON_H
13 #define CPROVER_GOTO_PROGRAMS_SHOW_GOTO_FUNCTIONS_JSON_H
14 
15 #include <util/json.h>
16 
17 class goto_functionst;
18 
20 {
21 public:
23  bool _list_only = false);
24 
25  json_objectt convert(const goto_functionst &goto_functions);
26  void operator()(
27  const goto_functionst &goto_functions, std::ostream &out, bool append=true);
28 
29 private:
30  bool list_only;
31 };
32 
33 #endif // CPROVER_GOTO_PROGRAMS_SHOW_GOTO_FUNCTIONS_JSON_H
A collection of goto functions.
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 str...
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 fu...
show_goto_functions_jsont(bool _list_only=false)
For outputting the GOTO program in a readable JSON format.