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

Public Member Functions

 DOTGraphTraits (bool isSimple=false)
 
std::string getNodeLabel (SlicedSVFGNodeRef n, const SlicedSVFGView *)
 
- 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 SlicedSVFGView *)
 
static const void * getNodeIdentifier (SlicedSVFGNodeRef n)
 
static std::string getNodeAttributes (SlicedSVFGNodeRef n, const SlicedSVFGView *)
 
template<class EdgeIter >
static std::string getEdgeAttributes (SlicedSVFGNodeRef, EdgeIter EI, const SlicedSVFGView *)
 
- 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 188 of file SlicedGraphs.cpp.

Constructor & Destructor Documentation

◆ DOTGraphTraits()

Member Function Documentation

◆ getEdgeAttributes()

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

Definition at line 215 of file SlicedGraphs.cpp.

216 {
217 const SVFGEdge* e = EI.currentEdge().underlying;
218 if (e != nullptr && SVFUtil::isa<IndirectSVFGEdge>(e)) return "style=dashed";
219 return "style=solid";
220 }
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76

◆ getGraphName()

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

Definition at line 192 of file SlicedGraphs.cpp.

193 {
194 return "SlicedSVFG";
195 }

◆ getNodeAttributes()

static std::string SVF::DOTGraphTraits< const SlicedSVFGView * >::getNodeAttributes ( SlicedSVFGNodeRef  n,
const SlicedSVFGView  
)
inlinestatic

Definition at line 207 of file SlicedGraphs.cpp.

208 {
209 if (SVFUtil::isa<StoreSVFGNode>(n.raw)) return "shape=record,color=red";
210 if (SVFUtil::isa<LoadSVFGNode>(n.raw)) return "shape=record,color=blue";
211 return "shape=record,color=black";
212 }
cJSON * n
Definition cJSON.cpp:2558

◆ getNodeIdentifier()

static const void * SVF::DOTGraphTraits< const SlicedSVFGView * >::getNodeIdentifier ( SlicedSVFGNodeRef  n)
inlinestatic

Definition at line 197 of file SlicedGraphs.cpp.

198 {
199 return n.raw;
200 }

◆ getNodeLabel()

std::string SVF::DOTGraphTraits< const SlicedSVFGView * >::getNodeLabel ( SlicedSVFGNodeRef  n,
const SlicedSVFGView  
)
inline

Definition at line 202 of file SlicedGraphs.cpp.

203 {
204 return n.raw != nullptr ? n.raw->toString() : "";
205 }

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