Static Value-Flow Analysis
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SVF::RetIndSVFGEdge Class Reference

#include <SVFGEdge.h>

Inheritance diagram for SVF::RetIndSVFGEdge:
SVF::IndirectSVFGEdge SVF::VFGEdge SVF::GenericEdge< NodeTy >

Public Member Functions

 RetIndSVFGEdge (VFGNode *s, VFGNode *d, CallSiteID id)
 
CallSiteID getCallSiteId () const
 
virtual const std::string toString () const
 
- Public Member Functions inherited from SVF::IndirectSVFGEdge
 IndirectSVFGEdge (VFGNode *s, VFGNode *d, GEdgeFlag k)
 Constructor. More...
 
bool addPointsTo (const NodeBS &c)
 Handle memory region. More...
 
const NodeBSgetPointsTo () const
 
- Public Member Functions inherited from SVF::VFGEdge
 VFGEdge (VFGNode *s, VFGNode *d, GEdgeFlag k)
 Constructor. More...
 
 ~VFGEdge ()
 Destructor. More...
 
bool isDirectVFGEdge () const
 Get methods of the components. More...
 
bool isIndirectVFGEdge () const
 
bool isCallVFGEdge () const
 
bool isRetVFGEdge () const
 
bool isCallDirectVFGEdge () const
 
bool isRetDirectVFGEdge () const
 
bool isCallIndirectVFGEdge () const
 
bool isRetIndirectVFGEdge () const
 
bool isIntraVFGEdge () const
 
bool isThreadMHPIndirectVFGEdge () const
 
- Public Member Functions inherited from SVF::GenericEdge< NodeTy >
 GenericEdge (NodeTy *s, NodeTy *d, GEdgeFlag k)
 Constructor. More...
 
virtual ~GenericEdge ()
 Destructor. More...
 
NodeID getSrcID () const
 get methods of the components More...
 
NodeID getDstID () const
 
GEdgeKind getEdgeKind () const
 
GEdgeKind getEdgeKindWithoutMask () const
 
NodeTypegetSrcNode () const
 
NodeTypegetDstNode () const
 
virtual bool operator== (const GenericEdge< NodeType > *rhs) const
 

Static Public Member Functions

static bool classof (const RetIndSVFGEdge *)
 
static bool classof (const IndirectSVFGEdge *edge)
 
static bool classof (const VFGEdge *edge)
 
static bool classof (const GenericVFGEdgeTy *edge)
 
- Static Public Member Functions inherited from SVF::IndirectSVFGEdge
static bool classof (const IndirectSVFGEdge *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const VFGEdge *edge)
 
static bool classof (const GenericVFGEdgeTy *edge)
 
- Static Public Member Functions inherited from SVF::VFGEdge
static GEdgeFlag makeEdgeFlagWithInvokeID (GEdgeKind k, CallSiteID cs)
 Compute the unique edgeFlag value from edge kind and CallSiteID. More...
 

Private Attributes

CallSiteID csId
 

Additional Inherited Members

- Public Types inherited from SVF::IndirectSVFGEdge
typedef Set< const MRVer * > MRVerSet
 
- Public Types inherited from SVF::VFGEdge
enum  VFGEdgeK {
  IntraDirectVF , IntraIndirectVF , CallDirVF , RetDirVF ,
  CallIndVF , RetIndVF , TheadMHPIndirectVF
}
 
typedef VFGEdgeK SVFGEdgeK
 
typedef GenericNode< VFGNode, VFGEdge >::GEdgeSetTy VFGEdgeSetTy
 
typedef VFGEdgeSetTy SVFGEdgeSetTy
 
- Public Types inherited from SVF::GenericEdge< NodeTy >
typedef NodeTy NodeType
 Node type. More...
 
typedef u64_t GEdgeFlag
 
typedef s64_t GEdgeKind
 
typedef struct SVF::GenericEdge::equalGEdge equalGEdge
 Add the hash function for std::set (we also can overload operator< to implement this) More...
 
- Static Protected Attributes inherited from SVF::GenericEdge< NodeTy >
static constexpr unsigned char EdgeKindMaskBits = 8
 We use the lower 8 bits to denote edge kind. More...
 
static constexpr u64_t EdgeKindMask = (~0ULL) >> (64 - EdgeKindMaskBits)
 

Detailed Description

SVFG return edge representing direct value-flows from a callee to its caller at a callsite

Definition at line 165 of file SVFGEdge.h.

Constructor & Destructor Documentation

◆ RetIndSVFGEdge()

SVF::RetIndSVFGEdge::RetIndSVFGEdge ( VFGNode s,
VFGNode d,
CallSiteID  id 
)
inline

Definition at line 171 of file SVFGEdge.h.

171  :
173  {
174  }
IndirectSVFGEdge(VFGNode *s, VFGNode *d, GEdgeFlag k)
Constructor.
Definition: SVFGEdge.h:51
CallSiteID csId
Definition: SVFGEdge.h:169
static GEdgeFlag makeEdgeFlagWithInvokeID(GEdgeKind k, CallSiteID cs)
Compute the unique edgeFlag value from edge kind and CallSiteID.
Definition: VFGEdge.h:120

Member Function Documentation

◆ classof() [1/4]

static bool SVF::RetIndSVFGEdge::classof ( const GenericVFGEdgeTy edge)
inlinestatic

Definition at line 192 of file SVFGEdge.h.

193  {
194  return edge->getEdgeKind() == RetIndVF;
195  }

◆ classof() [2/4]

static bool SVF::RetIndSVFGEdge::classof ( const IndirectSVFGEdge edge)
inlinestatic

Definition at line 184 of file SVFGEdge.h.

185  {
186  return edge->getEdgeKind() == RetIndVF;
187  }

◆ classof() [3/4]

static bool SVF::RetIndSVFGEdge::classof ( const RetIndSVFGEdge )
inlinestatic

Definition at line 180 of file SVFGEdge.h.

181  {
182  return true;
183  }

◆ classof() [4/4]

static bool SVF::RetIndSVFGEdge::classof ( const VFGEdge edge)
inlinestatic

Definition at line 188 of file SVFGEdge.h.

189  {
190  return edge->getEdgeKind() == RetIndVF;
191  }

◆ getCallSiteId()

CallSiteID SVF::RetIndSVFGEdge::getCallSiteId ( ) const
inline

Definition at line 175 of file SVFGEdge.h.

176  {
177  return csId;
178  }

◆ toString()

const std::string RetIndSVFGEdge::toString ( ) const
virtual

Reimplemented from SVF::IndirectSVFGEdge.

Definition at line 175 of file SVFG.cpp.

176 {
177  std::string str;
178  std::stringstream rawstr(str);
179  rawstr << "RetIndSVFGEdge CallSite ID: " << getCallSiteId() << " ";
180  rawstr << getDstID() << "<--" << getSrcID() << "\n";
181  return rawstr.str();
182 }
const char *const string
Definition: cJSON.h:172
NodeID getDstID() const
Definition: GenericGraph.h:85
NodeID getSrcID() const
get methods of the components
Definition: GenericGraph.h:81
CallSiteID getCallSiteId() const
Definition: SVFGEdge.h:175

Member Data Documentation

◆ csId

CallSiteID SVF::RetIndSVFGEdge::csId
private

Definition at line 169 of file SVFGEdge.h.


The documentation for this class was generated from the following files: