6 #ifndef _______SDG_H_______
7 #define _______SDG_H_______
10 #include <boost/function.hpp>
11 #include <boost/unordered_map.hpp>
16 typedef std::vector<SgInitializedName*>
VarName;
97 typedef boost::graph_traits<SystemDependenceGraph>::vertex_descriptor
Vertex;
98 typedef boost::graph_traits<SystemDependenceGraph>::edge_descriptor
Edge;
155 void toDot(
const std::string& filename)
const;
160 Vertex newVertex = boost::add_vertex(*
this);
161 (*this)[newVertex] = sdgNode;
167 Edge newEdge = boost::add_edge(src, tgt, *
this).first;
168 (*this)[newEdge] = sdgEdge;
176 const boost::unordered_map<CFGVertex, Vertex>& cfgVerticesToSdgVertices,
180 const boost::unordered_map<SgNode*, Vertex>& astNodesToSdgVertices,
181 const std::vector<CallSiteInfo>& callSiteInfo,
182 const std::map<SgNode*, Vertex>& formalOutPara);