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

#include <PAGNode.h>

Inheritance diagram for SVF::CloneGepObjPN:
SVF::GepObjPN SVF::ObjPN SVF::PAGNode SVF::GenericNode< NodeTy, EdgeTy >

Public Member Functions

 CloneGepObjPN (const MemObj *mem, NodeID i, const LocationSet &l, PNODEK ty=CloneGepObjNode)
 Constructor. More...
 
const std::string getValueName () const
 Return name of this node. More...
 
virtual const std::string toString () const
 
- Public Member Functions inherited from SVF::GepObjPN
 GepObjPN (const MemObj *mem, NodeID i, const LocationSet &l, PNODEK ty=GepObjNode)
 Constructor. More...
 
const LocationSetgetLocationSet () const
 offset of the mem object More...
 
void setBaseNode (NodeID base)
 Set the base object from which this GEP node came from. More...
 
NodeID getBaseNode (void) const
 Return the base object from which this GEP node came from. More...
 
virtual const llvm::Type * getType () const
 Return the type of this gep object. More...
 
- Public Member Functions inherited from SVF::ObjPN
const MemObjgetMemObj () const
 Return memory object. More...
 
- Public Member Functions inherited from SVF::PAGNode
 PAGNode (const Value *val, NodeID i, PNODEK k)
 address-taken pointer More...
 
virtual ~PAGNode ()
 Destructor. More...
 
const ValuegetValue () const
 Get/has methods of the components. More...
 
bool hasValue () const
 
virtual bool isPointer () const
 Whether it is a pointer. More...
 
bool isTopLevelPtr () const
 Whether it is a top-level pointer. More...
 
bool isAddressTakenPtr () const
 Whether it is an address-taken pointer. More...
 
bool isConstantData () const
 
bool isIsolatedNode () const
 Whether this is an isoloated node on the PAG graph. More...
 
virtual const FunctiongetFunction () const
 Return the function that this PAGNode resides in. Return nullptr if it is a global or constantexpr node. More...
 
PAGEdge::PAGEdgeSetTygetIncomingEdges (PAGEdge::PEDGEK kind)
 Get incoming PAG edges. More...
 
PAGEdge::PAGEdgeSetTygetOutgoingEdges (PAGEdge::PEDGEK kind)
 Get outgoing PAG edges. More...
 
bool hasIncomingEdges (PAGEdge::PEDGEK kind) const
 Has incoming PAG edges. More...
 
bool hasIncomingVariantGepEdge () const
 Has incoming VariantGepEdges. More...
 
PAGEdge::PAGEdgeSetTy::iterator getIncomingEdgesBegin (PAGEdge::PEDGEK kind) const
 Get incoming PAGEdge iterator. More...
 
PAGEdge::PAGEdgeSetTy::iterator getIncomingEdgesEnd (PAGEdge::PEDGEK kind) const
 Get incoming PAGEdge iterator. More...
 
bool hasOutgoingEdges (PAGEdge::PEDGEK kind) const
 Has outgoing PAG edges. More...
 
PAGEdge::PAGEdgeSetTy::iterator getOutgoingEdgesBegin (PAGEdge::PEDGEK kind) const
 Get outgoing PAGEdge iterator. More...
 
PAGEdge::PAGEdgeSetTy::iterator getOutgoingEdgesEnd (PAGEdge::PEDGEK kind) const
 Get outgoing PAGEdge iterator. More...
 
void addInEdge (PAGEdge *inEdge)
 add methods of the components More...
 
void addOutEdge (PAGEdge *outEdge)
 
virtual const std::string getNodeAttrForDotDisplay () const
 Get shape and/or color of node for .dot display. More...
 
void dump () const
 Dump to console for debugging. More...
 
- Public Member Functions inherited from SVF::GenericNode< NodeTy, EdgeTy >
 GenericNode (NodeID i, GNodeK k)
 Constructor. More...
 
virtual ~GenericNode ()
 Destructor. More...
 
NodeID getId () const
 Get ID. More...
 
GNodeK getNodeKind () const
 Get node kind. More...
 
const GEdgeSetTygetOutEdges () const
 
const GEdgeSetTygetInEdges () const
 
bool hasIncomingEdge () const
 Has incoming/outgoing edge set. More...
 
bool hasOutgoingEdge () const
 
iterator OutEdgeBegin ()
 iterators More...
 
iterator OutEdgeEnd ()
 
iterator InEdgeBegin ()
 
iterator InEdgeEnd ()
 
const_iterator OutEdgeBegin () const
 
const_iterator OutEdgeEnd () const
 
const_iterator InEdgeBegin () const
 
const_iterator InEdgeEnd () const
 
virtual iterator directOutEdgeBegin ()
 Iterators used for SCC detection, overwrite it in child class if necessory. More...
 
virtual iterator directOutEdgeEnd ()
 
virtual iterator directInEdgeBegin ()
 
virtual iterator directInEdgeEnd ()
 
virtual const_iterator directOutEdgeBegin () const
 
virtual const_iterator directOutEdgeEnd () const
 
virtual const_iterator directInEdgeBegin () const
 
virtual const_iterator directInEdgeEnd () const
 
bool addIncomingEdge (EdgeType *inEdge)
 Add incoming and outgoing edges. More...
 
bool addOutgoingEdge (EdgeType *outEdge)
 
Size_t removeIncomingEdge (EdgeType *edge)
 
Size_t removeOutgoingEdge (EdgeType *edge)
 
EdgeTypehasIncomingEdge (EdgeType *edge) const
 Find incoming and outgoing edges. More...
 
EdgeTypehasOutgoingEdge (EdgeType *edge) const
 

Static Public Member Functions

static bool classof (const CloneGepObjPN *)
 
static bool classof (const PAGNode *node)
 
static bool classof (const GenericPAGNodeTy *node)
 
- Static Public Member Functions inherited from SVF::GepObjPN
static bool classof (const GepObjPN *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const ObjPN *node)
 
static bool classof (const PAGNode *node)
 
static bool classof (const GenericPAGNodeTy *node)
 
- Static Public Member Functions inherited from SVF::ObjPN
static bool classof (const ObjPN *)
 Methods for support type inquiry through isa, cast, and dyn_cast: More...
 
static bool classof (const PAGNode *node)
 
static bool classof (const GenericPAGNodeTy *node)
 

Additional Inherited Members

- Public Types inherited from SVF::PAGNode
enum  PNODEK {
  ValNode, ObjNode, RetNode, VarargNode,
  GepValNode, GepObjNode, FIObjNode, DummyValNode,
  DummyObjNode, CloneGepObjNode, CloneFIObjNode, CloneDummyObjNode
}
 
- Public Types inherited from SVF::GenericNode< NodeTy, EdgeTy >
typedef NodeTy NodeType
 
typedef EdgeTy EdgeType
 
typedef s32_t GNodeK
 Edge kind. More...
 
typedef OrderedSet< EdgeType *, typename EdgeType::equalGEdge > GEdgeSetTy
 
typedef GEdgeSetTy::iterator iterator
 
typedef GEdgeSetTy::const_iterator const_iterator
 
- Protected Member Functions inherited from SVF::ObjPN
 ObjPN (const Value *val, NodeID i, const MemObj *m, PNODEK ty=ObjNode)
 Constructor. More...
 
- Protected Attributes inherited from SVF::ObjPN
const MemObjmem
 
- Protected Attributes inherited from SVF::PAGNode
const Valuevalue
 value of this PAG node More...
 
PAGEdge::PAGKindToEdgeSetMapTy InEdgeKindToSetMap
 
PAGEdge::PAGKindToEdgeSetMapTy OutEdgeKindToSetMap
 
bool isTLPointer
 
bool isATPointer
 top-level pointer More...
 

Detailed Description

Definition at line 771 of file PAGNode.h.

Constructor & Destructor Documentation

◆ CloneGepObjPN()

SVF::CloneGepObjPN::CloneGepObjPN ( const MemObj mem,
NodeID  i,
const LocationSet l,
PNODEK  ty = CloneGepObjNode 
)
inline

Constructor.

Definition at line 790 of file PAGNode.h.

790  :
791  GepObjPN(mem, i, l, ty)
792  {
793  }
GepObjPN(const MemObj *mem, NodeID i, const LocationSet &l, PNODEK ty=GepObjNode)
Constructor.
Definition: PAGNode.h:484
const MemObj * mem
Definition: PAGNode.h:323

Member Function Documentation

◆ classof() [1/3]

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

Definition at line 775 of file PAGNode.h.

776  {
777  return true;
778  }

◆ classof() [2/3]

static bool SVF::CloneGepObjPN::classof ( const PAGNode node)
inlinestatic

Definition at line 779 of file PAGNode.h.

780  {
781  return node->getNodeKind() == PAGNode::CloneGepObjNode;
782  }

◆ classof() [3/3]

static bool SVF::CloneGepObjPN::classof ( const GenericPAGNodeTy node)
inlinestatic

Definition at line 783 of file PAGNode.h.

784  {
785  return node->getNodeKind() == PAGNode::CloneGepObjNode;
786  }

◆ getValueName()

const std::string SVF::CloneGepObjPN::getValueName ( ) const
inlinevirtual

Return name of this node.

Reimplemented from SVF::GepObjPN.

Definition at line 796 of file PAGNode.h.

797  {
798  return "clone (gep) of " + GepObjPN::getValueName();
799  }
const std::string getValueName() const
Return name of a LLVM value.
Definition: PAGNode.h:515

◆ toString()

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

Reimplemented from SVF::GepObjPN.

Definition at line 186 of file PAG.cpp.

186  {
187  std::string str;
188  raw_string_ostream rawstr(str);
189  rawstr << "CloneGepObjPN ID: " << getId();
190  return rawstr.str();
191 }
llvm::raw_string_ostream raw_string_ostream
Definition: BasicTypes.h:100
NodeID getId() const
Get ID.
Definition: GenericGraph.h:164

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