|
cprover
|
#include <json_irep.h>
Public Member Functions | |
| json_irept (bool include_comments) | |
| To convert to JSON from an irep structure by recursively generating JSON for the different sub trees. | |
| json_objectt | convert_from_irep (const irept &) const |
| To convert to JSON from an irep structure by recursively generating JSON for the different sub trees. | |
| irept | convert_from_json (const jsont &) const |
| Deserialize a JSON irep representation. | |
Private Member Functions | |
| void | convert_sub_tree (const std::string &sub_tree_id, const irept::subt &sub_trees, json_objectt &parent) const |
| To convert to JSON from a list of ireps that are in an unlabelled subtree. | |
| void | convert_named_sub_tree (const std::string &sub_tree_id, const irept::named_subt &sub_trees, json_objectt &parent) const |
| To convert to JSON from a map of ireps that are in a named subtree. | |
Private Attributes | |
| bool | include_comments |
Definition at line 20 of file json_irep.h.
|
explicit |
To convert to JSON from an irep structure by recursively generating JSON for the different sub trees.
| _include_comments | when writing JSON, should the comments sub tree be included. |
Definition at line 22 of file json_irep.cpp.
| json_objectt json_irept::convert_from_irep | ( | const irept & | irep | ) | const |
To convert to JSON from an irep structure by recursively generating JSON for the different sub trees.
| irep | The irep structure to turn into json |
Definition at line 31 of file json_irep.cpp.
Deserialize a JSON irep representation.
| in | json object to convert |
Definition at line 95 of file json_irep.cpp.
|
private |
To convert to JSON from a map of ireps that are in a named subtree.
The parent JSON object will get a key called sub_tree_id and the value shall be a JSON object whose keys shall be the name of the sub tree and the value will be the object generated from the sub tree.
| sub_tree_id | the name to give the subtree in the parent object |
| sub_trees | the map of subtrees to parse |
| parent | the parent JSON object who should be added to |
Definition at line 74 of file json_irep.cpp.
|
private |
To convert to JSON from a list of ireps that are in an unlabelled subtree.
The parent JSON object will get a key called sub_tree_id and the value shall be an array of JSON objects generated from each of the sub trees
| sub_tree_id | the name to give the subtree in the parent object |
| sub_trees | the list of subtrees to parse |
| parent | the parent JSON object who should be added to |
Definition at line 50 of file json_irep.cpp.
|
private |
Definition at line 38 of file json_irep.h.