Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVF::CallIndSVFGEdge Class Reference

#include <SVFGEdge.h>

Inheritance diagram for SVF::CallIndSVFGEdge:
SVF::IndirectSVFGEdge SVF::VFGEdge SVF::GenericEdge< VFGNode >

Public Member Functions

 CallIndSVFGEdge (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.
bool addPointsTo (const NodeBS &c)
 Handle memory region.
const NodeBS & getPointsTo () const
Public Member Functions inherited from SVF::VFGEdge
 VFGEdge (VFGNode *s, VFGNode *d, GEdgeFlag k)
 Constructor.
 ~VFGEdge ()
 Destructor.
bool isDirectVFGEdge () const
 Get methods of the components.
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< VFGNode >
 GenericEdge (VFGNode *s, VFGNode *d, GEdgeFlag k)
 Constructor.
virtual ~GenericEdge ()
 Destructor.
NodeID getSrcID () const
 get methods of the components
NodeID getDstID () const
GEdgeKind getEdgeKind () const
GEdgeKind getEdgeKindWithoutMask () const
NodeType * getSrcNode () const
NodeType * getDstNode () const
virtual bool operator== (const GenericEdge< NodeType > *rhs) const

Static Public Member Functions

static bool classof (const CallIndSVFGEdge *)
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:
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.

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< VFGNode >
typedef VFGNode NodeType
 Node type.
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).
Static Protected Attributes inherited from SVF::GenericEdge< VFGNode >
static constexpr unsigned char EdgeKindMaskBits
 We use the lower 8 bits to denote edge kind.
static constexpr u64_t EdgeKindMask

Detailed Description

SVFG call edge representing indirect value-flows from a caller to its callee at a callsite

Definition at line 126 of file SVFGEdge.h.

Constructor & Destructor Documentation

◆ CallIndSVFGEdge()

SVF::CallIndSVFGEdge::CallIndSVFGEdge ( VFGNode * s,
VFGNode * d,
CallSiteID id )
inline

Definition at line 132 of file SVFGEdge.h.

132 :
134 {
135 }
IndirectSVFGEdge(VFGNode *s, VFGNode *d, GEdgeFlag k)
Constructor.
Definition SVFGEdge.h:51
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]

bool SVF::CallIndSVFGEdge::classof ( const CallIndSVFGEdge * )
inlinestatic

Definition at line 141 of file SVFGEdge.h.

142 {
143 return true;
144 }

◆ classof() [2/4]

bool SVF::CallIndSVFGEdge::classof ( const GenericVFGEdgeTy * edge)
inlinestatic

Definition at line 153 of file SVFGEdge.h.

154 {
155 return edge->getEdgeKind() == CallIndVF ;
156 }

◆ classof() [3/4]

bool SVF::CallIndSVFGEdge::classof ( const IndirectSVFGEdge * edge)
inlinestatic

Definition at line 145 of file SVFGEdge.h.

146 {
147 return edge->getEdgeKind() == CallIndVF;
148 }

◆ classof() [4/4]

bool SVF::CallIndSVFGEdge::classof ( const VFGEdge * edge)
inlinestatic

Definition at line 149 of file SVFGEdge.h.

150 {
151 return edge->getEdgeKind() == CallIndVF ;
152 }

◆ getCallSiteId()

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

Definition at line 136 of file SVFGEdge.h.

137 {
138 return csId;
139 }

◆ toString()

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

Reimplemented from SVF::IndirectSVFGEdge.

Definition at line 166 of file SVFG.cpp.

167{
168 std::string str;
169 std::stringstream rawstr(str);
170 rawstr << "CallIndSVFGEdge CallSite ID: " << getCallSiteId() << " ";
171 rawstr << getDstID() << "<--" << getSrcID() << "\n";
172 return rawstr.str();
173}
CallSiteID getCallSiteId() const
Definition SVFGEdge.h:136

Member Data Documentation

◆ csId

CallSiteID SVF::CallIndSVFGEdge::csId
private

Definition at line 130 of file SVFGEdge.h.


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