Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::DOTGraphTraits< const SlicedSVFGView * > Struct Reference
Inheritance diagram for SVF::DOTGraphTraits< const SlicedSVFGView * >:
SVF::DefaultDOTGraphTraits 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 201 of file SlicedGraphs.cpp.

Constructor & Destructor Documentation

◆ DOTGraphTraits()

SVF::DOTGraphTraits< const SlicedSVFGView * >::DOTGraphTraits ( bool isSimple = false)
inline

Definition at line 203 of file SlicedGraphs.cpp.

Member Function Documentation

◆ getEdgeAttributes()

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

Definition at line 232 of file SlicedGraphs.cpp.

233 {
234 const SVFGEdge* e = EI.currentEdge().underlying;
235 if (e != nullptr && SVFUtil::isa<IndirectSVFGEdge>(e))
236 return "style=dashed";
237 return "style=solid";
238 }

◆ getGraphName()

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

Definition at line 207 of file SlicedGraphs.cpp.

208 {
209 return "SlicedSVFG";
210 }

◆ getNodeAttributes()

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

Definition at line 222 of file SlicedGraphs.cpp.

223 {
225 return "shape=record,color=red";
227 return "shape=record,color=blue";
228 return "shape=record,color=black";
229 }

◆ getNodeIdentifier()

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

Definition at line 212 of file SlicedGraphs.cpp.

213 {
214 return n.raw;
215 }

◆ getNodeLabel()

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

Definition at line 217 of file SlicedGraphs.cpp.

218 {
219 return n.raw != nullptr ? n.raw->toString() : "";
220 }

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