|
Static Value-Flow Analysis
|
#include <SVFStatements.h>
Public Types | |
| enum | CopyKind { COPYVAL , ZEXT , SEXT , BITCAST , TRUNC , FPTRUNC , FPTOUI , FPTOSI , UITOFP , SITOFP , INTTOPTR , PTRTOINT } |
| Public Types inherited from SVF::SVFStmt | |
| enum | PEDGEK { Addr , Copy , Store , Load , Call , Ret , Gep , Phi , Select , Cmp , BinaryOp , UnaryOp , Branch , ThreadFork , ThreadJoin } |
| typedef GenericNode< SVFVar, SVFStmt >::GEdgeSetTy | SVFStmtSetTy |
| typedef Map< EdgeID, SVFStmtSetTy > | PAGEdgeToSetMapTy |
| typedef PAGEdgeToSetMapTy | KindToSVFStmtMapTy |
| typedef SVFStmtSetTy | PAGEdgeSetTy |
| Public Types inherited from SVF::GenericEdge< SVFVar > | |
| typedef SVFVar | 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). | |
Public Member Functions | |
| u32_t | getCopyKind () const |
| Return the kind of the copy statement. | |
| bool | isBitCast () const |
| bool | isValueCopy () const |
| bool | isInt2Ptr () const |
| bool | isPtr2Int () const |
| bool | isZext () const |
| bool | isSext () const |
| CopyStmt (SVFVar *s, SVFVar *d, CopyKind k) | |
| constructor | |
| const ValVar * | getRHSVar () const |
| const ValVar * | getLHSVar () const |
| const ValVar * | getSrcNode () const |
| const ValVar * | getDstNode () const |
| virtual const std::string | toString () const override |
| Public Member Functions inherited from SVF::AssignStmt | |
| SVFVar * | getRHSVar () const |
| SVFVar * | getLHSVar () const |
| NodeID | getRHSVarID () const |
| NodeID | getLHSVarID () const |
| Public Member Functions inherited from SVF::SVFStmt | |
| SVFStmt (SVFVar *s, SVFVar *d, GEdgeFlag k, bool real=true) | |
| Constructor. | |
| ~SVFStmt () | |
| Destructor. | |
| EdgeID | getEdgeID () const |
| Return Edge ID. | |
| virtual bool | isPTAEdge () const |
| Whether src and dst nodes are both of pointer type. | |
| void | setValue (const SVFVar *val) |
| Get/set methods for llvm instruction. | |
| const SVFVar * | getValue () const |
| void | setBB (const SVFBasicBlock *bb) |
| const SVFBasicBlock * | getBB () const |
| void | setICFGNode (ICFGNode *node) |
| ICFGNode * | getICFGNode () const |
| Public Member Functions inherited from SVF::GenericEdge< SVFVar > | |
| GenericEdge (SVFVar *s, SVFVar *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 CopyStmt *) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
| static bool | classof (const SVFStmt *edge) |
| static bool | classof (const GenericPAGEdgeTy *edge) |
| Static Public Member Functions inherited from SVF::AssignStmt | |
| static bool | classof (const AssignStmt *) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
| static bool | classof (const SVFStmt *edge) |
| static bool | classof (const GenericPAGEdgeTy *edge) |
| Static Public Member Functions inherited from SVF::SVFStmt | |
| static bool | classof (const SVFStmt *) |
| ClassOf. | |
| static bool | classof (const GenericPAGEdgeTy *edge) |
| static GEdgeFlag | makeEdgeFlagWithAddionalOpnd (GEdgeKind k, const SVFVar *var) |
| static GEdgeFlag | makeEdgeFlagWithCallInst (GEdgeKind k, const ICFGNode *cs) |
| static GEdgeFlag | makeEdgeFlagWithStoreInst (GEdgeKind k, const ICFGNode *store) |
| static const Inst2LabelMap * | getInst2LabelMap () |
| static const Var2LabelMap * | getVar2LabelMap () |
| static const u64_t * | getCallEdgeLabelCounter () |
| static const u64_t * | getStoreEdgeLabelCounter () |
| static const u64_t * | getMultiOpndLabelCounter () |
Private Member Functions | |
| CopyStmt (const CopyStmt &) | |
| place holder | |
| void | operator= (const CopyStmt &) |
| place holder | |
Private Attributes | |
| u32_t | copyKind |
Friends | |
| class | GraphDBClient |
Additional Inherited Members | |
| Protected Member Functions inherited from SVF::AssignStmt | |
| AssignStmt (SVFVar *s, SVFVar *d, GEdgeFlag k) | |
| constructor | |
| Protected Member Functions inherited from SVF::SVFStmt | |
| SVFStmt (GEdgeFlag k) | |
| Private constructor for reading SVFIR from file without side-effect. | |
| SVFStmt (SVFVar *s, SVFVar *d, GEdgeFlag k, EdgeID eid, SVFVar *value, ICFGNode *icfgNode, bool real=true) | |
| void | setBasicBlock (const SVFBasicBlock *bb) |
| void | setCallEdgeLabelCounter (u64_t counter) |
| void | setStoreEdgeLabelCounter (u64_t counter) |
| void | setMultiOpndLabelCounter (u64_t counter) |
| Static Protected Member Functions inherited from SVF::SVFStmt | |
| static void | addInst2Labeled (const ICFGNode *cs, u32_t label) |
| static void | addVar2Labeled (const SVFVar *var, u32_t label) |
| Static Protected Attributes inherited from SVF::GenericEdge< SVFVar > | |
| static constexpr unsigned char | EdgeKindMaskBits |
| We use the lower 8 bits to denote edge kind. | |
| static constexpr u64_t | EdgeKindMask |
Copy statements (simple assignment and casting)
Definition at line 435 of file SVFStatements.h.
| Enumerator | |
|---|---|
| COPYVAL | |
| ZEXT | |
| SEXT | |
| BITCAST | |
| TRUNC | |
| FPTRUNC | |
| FPTOUI | |
| FPTOSI | |
| UITOFP | |
| SITOFP | |
| INTTOPTR | |
| PTRTOINT | |
Definition at line 444 of file SVFStatements.h.
|
private |
place holder
|
inlinestatic |
Methods for support type inquiry through isa, cast, and dyn_cast:
Definition at line 461 of file SVFStatements.h.
|
inlinestatic |
Definition at line 469 of file SVFStatements.h.
|
inlinestatic |
Definition at line 465 of file SVFStatements.h.
|
inline |
Return the kind of the copy statement.
Definition at line 476 of file SVFStatements.h.
| const ValVar * CopyStmt::getDstNode | ( | ) | const |
Definition at line 336 of file SVFStatements.cpp.
| const ValVar * CopyStmt::getLHSVar | ( | ) | const |
Definition at line 328 of file SVFStatements.cpp.
| const ValVar * CopyStmt::getRHSVar | ( | ) | const |
Definition at line 324 of file SVFStatements.cpp.
| const ValVar * CopyStmt::getSrcNode | ( | ) | const |
Definition at line 332 of file SVFStatements.cpp.
|
inline |
Definition at line 481 of file SVFStatements.h.
|
inline |
Definition at line 491 of file SVFStatements.h.
|
inline |
Definition at line 496 of file SVFStatements.h.
|
inline |
Definition at line 506 of file SVFStatements.h.
|
inline |
Definition at line 486 of file SVFStatements.h.
|
inline |
Definition at line 501 of file SVFStatements.h.
|
private |
place holder
|
overridevirtual |
Implements SVF::AssignStmt.
Definition at line 97 of file SVFStatements.cpp.
|
friend |
Definition at line 438 of file SVFStatements.h.
|
private |
Definition at line 522 of file SVFStatements.h.