Static Value-Flow Analysis
|
#include <SVFVariables.h>
Public Member Functions | |
GepObjVar (const MemObj *mem, NodeID i, const APOffset &apOffset, PNODEK ty=GepObjNode) | |
Constructor. More... | |
APOffset | getConstantFieldIdx () const |
offset of the mem object More... | |
void | setBaseNode (NodeID bs) |
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 SVFType * | getType () const |
Return the type of this gep object. More... | |
const std::string | getValueName () const |
Return name of a LLVM value. More... | |
virtual const std::string | toString () const |
Public Member Functions inherited from SVF::ObjVar | |
const MemObj * | getMemObj () const |
Return memory object. More... | |
Public Member Functions inherited from SVF::SVFVar | |
SVFVar (const SVFValue *val, NodeID i, PNODEK k) | |
Constructor. More... | |
virtual | ~SVFVar () |
Destructor. More... | |
const SVFValue * | getValue () const |
Get/has methods of the components. More... | |
bool | hasValue () const |
virtual bool | isPointer () const |
Whether it is a pointer. More... | |
bool | isConstDataOrAggDataButNotNullPtr () const |
bool | isIsolatedNode () const |
Whether this is an isolated node on the SVFIR graph. More... | |
virtual const SVFFunction * | getFunction () const |
Return the function that this SVFVar resides in. Return nullptr if it is a global or constantexpr node. More... | |
SVFStmt::SVFStmtSetTy & | getIncomingEdges (SVFStmt::PEDGEK kind) |
Get incoming SVFIR statements (edges) More... | |
SVFStmt::SVFStmtSetTy & | getOutgoingEdges (SVFStmt::PEDGEK kind) |
Get outgoing SVFIR statements (edges) More... | |
bool | hasIncomingEdges (SVFStmt::PEDGEK kind) const |
Has incoming SVFIR statements (edges) More... | |
bool | hasOutgoingEdges (SVFStmt::PEDGEK kind) const |
Has outgoing SVFIR statements (edges) More... | |
SVFStmt::SVFStmtSetTy::iterator | getIncomingEdgesBegin (SVFStmt::PEDGEK kind) const |
Get incoming SVFStmt iterator. More... | |
SVFStmt::SVFStmtSetTy::iterator | getIncomingEdgesEnd (SVFStmt::PEDGEK kind) const |
Get incoming SVFStmt iterator. More... | |
SVFStmt::SVFStmtSetTy::iterator | getOutgoingEdgesBegin (SVFStmt::PEDGEK kind) const |
Get outgoing SVFStmt iterator. More... | |
SVFStmt::SVFStmtSetTy::iterator | getOutgoingEdgesEnd (SVFStmt::PEDGEK kind) const |
Get outgoing SVFStmt iterator. 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... | |
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 necessary. 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) |
EdgeType * | hasIncomingEdge (EdgeType *edge) const |
Find incoming and outgoing edges. More... | |
EdgeType * | hasOutgoingEdge (EdgeType *edge) const |
const GEdgeSetTy & | getOutEdges () const |
const GEdgeSetTy & | getInEdges () const |
u32_t | removeIncomingEdge (EdgeType *edge) |
u32_t | removeOutgoingEdge (EdgeType *edge) |
Public Member Functions inherited from SVF::SVFBaseNode | |
SVFBaseNode (NodeID i, GNodeK k, SVFType *ty=nullptr) | |
NodeID | getId () const |
Get ID. More... | |
GNodeK | getNodeKind () const |
Get node kind. More... | |
virtual void | setSourceLoc (const std::string &sourceCodeInfo) |
virtual const std::string | getSourceLoc () const |
const std::string | valueOnlyToString () const |
Static Public Member Functions | |
static bool | classof (const GepObjVar *) |
Methods for support type inquiry through isa, cast, and dyn_cast: More... | |
static bool | classof (const ObjVar *node) |
static bool | classof (const SVFVar *node) |
static bool | classof (const GenericPAGNodeTy *node) |
static bool | classof (const SVFBaseNode *node) |
Static Public Member Functions inherited from SVF::ObjVar | |
static bool | classof (const ObjVar *) |
Methods for support type inquiry through isa, cast, and dyn_cast: More... | |
static bool | classof (const SVFVar *node) |
static bool | classof (const GenericPAGNodeTy *node) |
static bool | classof (const SVFBaseNode *node) |
Static Public Member Functions inherited from SVF::SVFVar | |
static bool | classof (const SVFVar *) |
static bool | classof (const GenericPAGNodeTy *node) |
static bool | classof (const SVFBaseNode *node) |
Static Public Member Functions inherited from SVF::GenericNode< NodeTy, EdgeTy > | |
static bool | classof (const GenericNode< NodeTy, EdgeTy > *) |
static bool | classof (const SVFBaseNode *) |
Private Member Functions | |
GepObjVar (NodeID i, PNODEK ty=GepObjNode) | |
Constructor to create empty GepObjVar (for SVFIRReader/deserialization) More... | |
Private Attributes | |
APOffset | apOffset = 0 |
NodeID | base = 0 |
Friends | |
class | SVFIRWriter |
class | SVFIRReader |
Additional Inherited Members | |
Public Types inherited from SVF::SVFVar | |
typedef GNodeK | PNODEK |
typedef s64_t | GEdgeKind |
Public Types inherited from SVF::GenericNode< NodeTy, EdgeTy > | |
typedef NodeTy | NodeType |
typedef EdgeTy | EdgeType |
typedef OrderedSet< EdgeType *, typename EdgeType::equalGEdge > | GEdgeSetTy |
Edge kind. More... | |
typedef GEdgeSetTy::iterator | iterator |
typedef GEdgeSetTy::const_iterator | const_iterator |
Public Types inherited from SVF::SVFBaseNode | |
enum | GNodeK { IntraBlock , GlobalBlock , FunEntryBlock , FunExitBlock , FunCallBlock , FunRetBlock , ValNode , GepValNode , RetNode , VarargNode , DummyValNode , ObjNode , GepObjNode , FIObjNode , DummyObjNode , Cmp , BinaryOp , UnaryOp , Branch , DummyVProp , NPtr , FRet , ARet , AParm , FParm , Addr , Copy , Gep , Store , Load , TPhi , TIntraPhi , TInterPhi , FPIN , FPOUT , APIN , APOUT , MPhi , MIntraPhi , MInterPhi , CallNodeKd , CDNodeKd , CFLNodeKd , CHNodeKd , ConstraintNodeKd , TCTNodeKd , DCHNodeKd , OtherKd } |
Protected Member Functions inherited from SVF::ObjVar | |
ObjVar (NodeID i, PNODEK ty=ObjNode) | |
Constructor to create an empty ObjVar (for SVFIRReader/deserialization) More... | |
ObjVar (const SVFValue *val, NodeID i, const MemObj *m, PNODEK ty=ObjNode) | |
Constructor. More... | |
Protected Member Functions inherited from SVF::SVFVar | |
SVFVar (NodeID i, PNODEK k) | |
whether it is a pointer (top-level or address-taken) More... | |
Static Protected Member Functions inherited from SVF::SVFBaseNode | |
static bool | isICFGNodeKinds (GNodeK n) |
Helper functions to check node kinds. More... | |
static bool | isInterICFGNodeKind (GNodeK n) |
static bool | isSVFVarKind (GNodeK n) |
static bool | isValVarKinds (GNodeK n) |
static bool | isObjVarKinds (GNodeK n) |
static bool | isVFGNodeKinds (GNodeK n) |
static bool | isArgumentVFGNodeKinds (GNodeK n) |
static bool | isStmtVFGNodeKinds (GNodeK n) |
static bool | isPHIVFGNodeKinds (GNodeK n) |
static bool | isMRSVFGNodeKinds (GNodeK n) |
static bool | isMSSAPHISVFGNodeKinds (GNodeK n) |
Protected Attributes inherited from SVF::ObjVar | |
const MemObj * | mem |
Protected Attributes inherited from SVF::SVFVar | |
const SVFValue * | value |
value of this SVFIR node More... | |
SVFStmt::KindToSVFStmtMapTy | InEdgeKindToSetMap |
SVFStmt::KindToSVFStmtMapTy | OutEdgeKindToSetMap |
bool | isPtr |
Protected Attributes inherited from SVF::SVFBaseNode | |
NodeID | id |
Node ID. More... | |
GNodeK | nodeKind |
Node kind. More... | |
const SVFType * | type |
SVF type. More... | |
std::string | sourceLoc |
Source code information of this value. More... | |
Definition at line 453 of file SVFVariables.h.
|
inlineprivate |
Constructor to create empty GepObjVar (for SVFIRReader/deserialization)
Definition at line 464 of file SVFVariables.h.
|
inline |
Constructor.
Definition at line 492 of file SVFVariables.h.
|
inlinestatic |
Definition at line 481 of file SVFVariables.h.
|
inlinestatic |
Methods for support type inquiry through isa, cast, and dyn_cast:
Definition at line 469 of file SVFVariables.h.
|
inlinestatic |
Definition at line 473 of file SVFVariables.h.
|
inlinestatic |
Definition at line 485 of file SVFVariables.h.
|
inlinestatic |
Definition at line 477 of file SVFVariables.h.
|
inline |
Return the base object from which this GEP node came from.
Definition at line 512 of file SVFVariables.h.
|
inline |
offset of the mem object
Definition at line 500 of file SVFVariables.h.
|
inlinevirtual |
Return the type of this gep object.
Reimplemented from SVF::ObjVar.
Definition at line 518 of file SVFVariables.h.
|
inlinevirtual |
Return name of a LLVM value.
Reimplemented from SVF::ObjVar.
Definition at line 524 of file SVFVariables.h.
|
inline |
Set the base object from which this GEP node came from.
Definition at line 506 of file SVFVariables.h.
|
virtual |
Reimplemented from SVF::ObjVar.
Definition at line 147 of file SVFVariables.cpp.
|
friend |
Definition at line 456 of file SVFVariables.h.
|
friend |
Definition at line 455 of file SVFVariables.h.
|
private |
Definition at line 459 of file SVFVariables.h.
|
private |
Definition at line 460 of file SVFVariables.h.