cprover
graphml_witness.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Witnesses for Traces and Proofs
4 
5 Author: Daniel Kroening
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_PROGRAMS_GRAPHML_WITNESS_H
13 #define CPROVER_GOTO_PROGRAMS_GRAPHML_WITNESS_H
14 
15 #include <xmllang/graphml.h>
16 
18 
19 #include "goto_trace.h"
20 
22 {
23 public:
24  explicit graphml_witnesst(const namespacet &_ns)
25  : ns(_ns)
26  {
27  }
28 
29  void operator()(const goto_tracet &goto_trace);
30  void operator()(const symex_target_equationt &equation);
31 
32  const graphmlt &graph()
33  {
34  return graphml;
35  }
36 
37 protected:
38  const namespacet &ns;
40 
41  void remove_l0_l1(exprt &expr);
42  std::string convert_assign_rec(
43  const irep_idt &identifier,
44  const code_assignt &assign);
45 };
46 
47 #endif // CPROVER_GOTO_PROGRAMS_GRAPHML_WITNESS_H
Generate Equation using Symbolic Execution.
std::string convert_assign_rec(const irep_idt &identifier, const code_assignt &assign)
const namespacet & ns
const graphmlt & graph()
Inheriting the interface of symex_targett this class represents the SSA form of the input program as ...
Traces of GOTO Programs.
void remove_l0_l1(exprt &expr)
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:93
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:35
graphml_witnesst(const namespacet &_ns)
Base class for all expressions.
Definition: expr.h:54
Read/write graphs as GraphML.
void operator()(const goto_tracet &goto_trace)
counterexample witness
TO_BE_DOCUMENTED.
Definition: goto_trace.h:150
A codet representing an assignment in the program.
Definition: std_code.h:256