CBMC
ai_history.cpp
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Abstract Interpretation
4 
5 Author: Martin Brain, martin.brain@cs.ox.ac.uk
6 
7 \*******************************************************************/
8 
11 
12 #include "ai_history.h"
13 
15 {
16  std::ostringstream out;
17  output(out);
18  json_stringt json(out.str());
19  return std::move(json);
20 }
21 
23 {
24  std::ostringstream out;
25  output(out);
26  xmlt xml("history");
27  xml.data = out.str();
28  return xml;
29 }
30 
32  nullptr;
Abstract Interpretation history.
std::shared_ptr< const ai_history_baset > trace_ptrt
History objects are intended to be immutable so they can be shared to reduce memory overhead.
Definition: ai_history.h:43
virtual void output(std::ostream &out) const
Definition: ai_history.h:144
static const trace_ptrt no_caller_history
Definition: ai_history.h:121
virtual jsont output_json(void) const
Definition: ai_history.cpp:14
virtual xmlt output_xml(void) const
Definition: ai_history.cpp:22
Definition: json.h:27
Definition: xml.h:21
std::string data
Definition: xml.h:39
static void json(json_objectT &result, const irep_idt &property_id, const property_infot &property_info)
Definition: properties.cpp:120
xmlt xml(const irep_idt &property_id, const property_infot &property_info)
Definition: properties.cpp:110