SVF
Public Member Functions | Private Member Functions | List of all members
SVF::CmpPE Class Reference

#include <PAGEdge.h>

Inheritance diagram for SVF::CmpPE:
SVF::PAGEdge SVF::GenericEdge< NodeTy >

Public Member Functions

 CmpPE (PAGNode *s, PAGNode *d)
 constructor More...
 
virtual const std::string toString () const
 
- Public Member Functions inherited from SVF::PAGEdge
 PAGEdge (PAGNode *s, PAGNode *d, GEdgeFlag k)
 Constructor. More...
 
 ~PAGEdge ()
 Destructor. More...
 
EdgeID getEdgeID () const
 Return Edge ID. More...
 
bool isPTAEdge () const
 Whether src and dst nodes are both of pointer type. More...
 
const InstructiongetInst () const
 Get/set methods for llvm instruction. More...
 
void setValue (const Value *val)
 
const ValuegetValue () const
 
void setBB (const BasicBlock *bb)
 
const BasicBlockgetBB () const
 
void setICFGNode (ICFGNode *node)
 
ICFGNodegetICFGNode () 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
 
NodeTypegetSrcNode () const
 
NodeTypegetDstNode () const
 
bool operator== (const GenericEdge< NodeType > *rhs) const
 

Static Public Member Functions

static bool classof (const CmpPE *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const PAGEdge *edge)
 
static bool classof (const GenericPAGEdgeTy *edge)
 
- Static Public Member Functions inherited from SVF::PAGEdge
static GEdgeFlag makeEdgeFlagWithCallInst (GEdgeKind k, const ICFGNode *cs)
 Compute the unique edgeFlag value from edge kind and call site Instruction. More...
 
static GEdgeFlag makeEdgeFlagWithStoreInst (GEdgeKind k, const ICFGNode *store)
 
static bool classof (const PAGEdge *)
 ClassOf. More...
 
static bool classof (const GenericPAGEdgeTy *edge)
 

Private Member Functions

 CmpPE ()
 place holder More...
 
 CmpPE (const CmpPE &)
 place holder More...
 
void operator= (const CmpPE &)
 place holder More...
 

Additional Inherited Members

- Public Types inherited from SVF::PAGEdge
enum  PEDGEK {
  Addr, Copy, Store, Load,
  Call, Ret, NormalGep, VariantGep,
  ThreadFork, ThreadJoin, Cmp, BinaryOp,
  UnaryOp
}
 
typedef GenericNode< PAGNode, PAGEdge >::GEdgeSetTy PAGEdgeSetTy
 
typedef Map< EdgeID, PAGEdgeSetTyPAGEdgeToSetMapTy
 
typedef PAGEdgeToSetMapTy PAGKindToEdgeSetMapTy
 
- Public Types inherited from SVF::GenericEdge< NodeTy >
typedef NodeTy NodeType
 Node type. More...
 
typedef u64_t GEdgeFlag
 
typedef s32_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 Public Attributes inherited from SVF::PAGEdge
static Size_t totalEdgeNum
 Total edge number. 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

Compare instruction edge

Definition at line 255 of file PAGEdge.h.

Constructor & Destructor Documentation

◆ CmpPE() [1/3]

SVF::CmpPE::CmpPE ( )
private

place holder

◆ CmpPE() [2/3]

SVF::CmpPE::CmpPE ( const CmpPE )
private

place holder

◆ CmpPE() [3/3]

SVF::CmpPE::CmpPE ( PAGNode s,
PAGNode d 
)
inline

constructor

Definition at line 279 of file PAGEdge.h.

279  : PAGEdge(s,d,PAGEdge::Cmp)
280  {
281  }
PAGEdge(PAGNode *s, PAGNode *d, GEdgeFlag k)
Constructor.
Definition: PAG.cpp:1000

Member Function Documentation

◆ classof() [1/3]

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

Methods for support type inquiry through isa, cast, and dyn_cast:

Definition at line 264 of file PAGEdge.h.

265  {
266  return true;
267  }

◆ classof() [2/3]

static bool SVF::CmpPE::classof ( const PAGEdge edge)
inlinestatic

Definition at line 268 of file PAGEdge.h.

269  {
270  return edge->getEdgeKind() == PAGEdge::Cmp;
271  }

◆ classof() [3/3]

static bool SVF::CmpPE::classof ( const GenericPAGEdgeTy edge)
inlinestatic

Definition at line 272 of file PAGEdge.h.

273  {
274  return edge->getEdgeKind() == PAGEdge::Cmp;
275  }

◆ operator=()

void SVF::CmpPE::operator= ( const CmpPE )
private

place holder

◆ toString()

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

Reimplemented from SVF::PAGEdge.

Definition at line 229 of file PAG.cpp.

229  {
230  std::string str;
231  raw_string_ostream rawstr(str);
232  rawstr << "CmpPE: [" << getDstID() << "<--" << getSrcID() << "]\t";
234  rawstr << "\n";
235  }
236  rawstr << value2String(getValue());
237  return rawstr.str();
238 }
const Value * getValue() const
Definition: PAGEdge.h:116
NodeID getDstID() const
Definition: GenericGraph.h:77
NodeID getSrcID() const
get methods of the components
Definition: GenericGraph.h:73
static const llvm::cl::opt< bool > PAGDotGraphShorter
Definition: Options.h:88
llvm::raw_string_ostream raw_string_ostream
Definition: BasicTypes.h:100
const std::string value2String(const Value *value)
Definition: SVFUtil.cpp:359

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