Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
SVF::DOTGraphTraits< const SlicedPAGView * > Struct Reference
Inheritance diagram for SVF::DOTGraphTraits< const SlicedPAGView * >:
SVF::DefaultDOTGraphTraits

Public Member Functions

 DOTGraphTraits (bool isSimple=false)
 
std::string getNodeLabel (SlicedPAGNodeRef n, const SlicedPAGView *)
 
- Public Member Functions inherited from SVF::DefaultDOTGraphTraits
 DefaultDOTGraphTraits (bool simple=false)
 
template<typename NodeT , typename GraphType >
std::string getNodeLabel (NodeT, const GraphType &)
 

Static Public Member Functions

static std::string getGraphName (const SlicedPAGView *)
 
static const void * getNodeIdentifier (SlicedPAGNodeRef n)
 
static std::string getNodeAttributes (SlicedPAGNodeRef, const SlicedPAGView *)
 
template<class EdgeIter >
static std::string getEdgeAttributes (SlicedPAGNodeRef, EdgeIter EI, const SlicedPAGView *)
 
- Static Public Member Functions inherited from SVF::DefaultDOTGraphTraits
template<typename GraphType >
static std::string getGraphName (const GraphType &)
 
template<typename GraphType >
static std::string getGraphProperties (const GraphType &)
 
static bool renderGraphFromBottomUp ()
 
template<typename NodeT >
static const void * getNodeIdentifier (NodeT N)
 
template<typename NodeT , typename GraphType >
static bool isNodeHidden (NodeT, const GraphType &)
 
template<typename NodeT , typename GraphType >
static std::string getNodeIdentifierLabel (NodeT, const GraphType &)
 
template<typename NodeT , typename GraphType >
static std::string getNodeDescription (NodeT, const GraphType &)
 
template<typename NodeT , typename GraphType >
static std::string getNodeAttributes (NodeT, const GraphType &)
 
template<typename NodeT , typename EdgeIter , typename GraphType >
static std::string getEdgeAttributes (NodeT, EdgeIter, const GraphType &)
 
template<typename NodeT , typename EdgeIter >
static std::string getEdgeSourceLabel (NodeT, EdgeIter)
 
template<typename NodeT , typename EdgeIter >
static bool edgeTargetsEdgeSource (NodeT, EdgeIter)
 
template<typename NodeT , typename EdgeIter >
static EdgeIter getEdgeTarget (NodeT, EdgeIter I)
 
static bool hasEdgeDestLabels ()
 
template<typename NodeT >
static unsigned numEdgeDestLabels (NodeT)
 
template<typename NodeT >
static std::string getEdgeDestLabel (NodeT, unsigned)
 
template<typename GraphType , typename GraphWriter >
static void addCustomGraphFeatures (const GraphType &, GraphWriter &)
 

Additional Inherited Members

- Protected Member Functions inherited from SVF::DefaultDOTGraphTraits
bool isSimple ()
 

Detailed Description

Definition at line 151 of file SlicedGraphs.cpp.

Constructor & Destructor Documentation

◆ DOTGraphTraits()

Member Function Documentation

◆ getEdgeAttributes()

template<class EdgeIter >
static std::string SVF::DOTGraphTraits< const SlicedPAGView * >::getEdgeAttributes ( SlicedPAGNodeRef  ,
EdgeIter  EI,
const SlicedPAGView  
)
inlinestatic

Definition at line 178 of file SlicedGraphs.cpp.

179 {
180 const SVFStmt* s = EI.currentEdge().underlying;
181 if (SVFUtil::isa<LoadStmt>(s))
182 return "color=blue";
183 if (SVFUtil::isa<StoreStmt>(s))
184 return "color=red";
185 if (SVFUtil::isa<GepStmt>(s))
186 return "color=purple";
187 if (SVFUtil::isa<AddrStmt>(s))
188 return "color=green";
189 if (SVFUtil::isa<CallPE>(s))
190 return "color=orange";
191 if (SVFUtil::isa<RetPE>(s))
192 return "color=cyan";
193 return "color=black";
194 }
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

◆ getGraphName()

static std::string SVF::DOTGraphTraits< const SlicedPAGView * >::getGraphName ( const SlicedPAGView )
inlinestatic

Definition at line 157 of file SlicedGraphs.cpp.

158 {
159 return "SlicedPAG";
160 }

◆ getNodeAttributes()

static std::string SVF::DOTGraphTraits< const SlicedPAGView * >::getNodeAttributes ( SlicedPAGNodeRef  ,
const SlicedPAGView  
)
inlinestatic

Definition at line 172 of file SlicedGraphs.cpp.

173 {
174 return "shape=record,color=black";
175 }

◆ getNodeIdentifier()

static const void * SVF::DOTGraphTraits< const SlicedPAGView * >::getNodeIdentifier ( SlicedPAGNodeRef  n)
inlinestatic

Definition at line 162 of file SlicedGraphs.cpp.

163 {
164 return n.raw;
165 }
cJSON * n
Definition cJSON.cpp:2558

◆ getNodeLabel()

std::string SVF::DOTGraphTraits< const SlicedPAGView * >::getNodeLabel ( SlicedPAGNodeRef  n,
const SlicedPAGView  
)
inline

Definition at line 167 of file SlicedGraphs.cpp.

168 {
169 return n.raw != nullptr ? n.raw->toString() : "";
170 }

The documentation for this struct was generated from the following file: