|
Static Value-Flow Analysis
|
#include <Andersen.h>
Public Member Functions | |
| Andersen (PAG *_pag, PTATY type=PTATY::Andersen_WPA, bool alias_check=true) | |
| Constructor. | |
| virtual | ~Andersen () |
| Destructor. | |
| virtual void | initialize () |
| Initialize analysis. | |
| virtual void | finalize () |
| Finalize analysis. | |
| void | resetData () |
| Reset data. | |
| virtual const PointsTo & | getPts (NodeID id) |
| Operation of points-to set. | |
| virtual bool | unionPts (NodeID id, const PointsTo &target) |
| virtual bool | unionPts (NodeID id, NodeID ptd) |
| virtual NodeBS | getMayAliases (NodeID node) |
| Collect exactly the PAG nodes q for which mayAlias(node, q) holds. | |
| std::vector< NodeBS > | getMayAliasesBatch (const std::vector< NodeID > &nodes) |
| void | dumpTopLevelPtsTo () |
| void | setDetectPWC (bool flag) |
| Public Member Functions inherited from SVF::AndersenBase | |
| AndersenBase (PAG *_pag, PTATY type=PTATY::Andersen_BASE, bool alias_check=true) | |
| Constructor. | |
| ~AndersenBase () override | |
| Destructor. | |
| virtual void | analyze () override |
| Andersen analysis. | |
| virtual void | solveAndwritePtsToFile (const std::string &filename) |
| virtual void | readPtsFromFile (const std::string &filename) |
| virtual void | solveConstraints () |
| virtual bool | updateCallGraph (const CallSiteToFunPtrMap &) override |
| Update call graph. | |
| virtual bool | updateThreadCallGraph (const CallSiteToFunPtrMap &, NodePairSet &) |
| Update thread call graph. | |
| virtual void | connectCaller2ForkedFunParams (const CallICFGNode *cs, const FunObjVar *F, NodePairSet &cpySrcNodes) |
| Connect formal and actual parameters for indirect forksites. | |
| virtual void | connectCaller2CalleeParams (const CallICFGNode *cs, const FunObjVar *F, NodePairSet &cpySrcNodes) |
| Connect formal and actual parameters for indirect callsites. | |
| ConstraintGraph * | getConstraintGraph () |
| Get constraint graph. | |
| NodeID | sccRepNode (NodeID id) const override |
| SCC methods. | |
| NodeBS & | sccSubNodes (NodeID repId) |
| void | printStat () |
| dump statistics | |
| virtual void | normalizePointsTo () override |
| void | cleanConsCG (NodeID id) |
| remove redundant gepnodes in constraint graph | |
| Public Member Functions inherited from SVF::BVDataPTAImpl | |
| BVDataPTAImpl (PAG *pag, PTATY type, bool alias_check=true) | |
| Constructor. | |
| ~BVDataPTAImpl () override=default | |
| Destructor. | |
| PersistentPointsToCache< PointsTo > & | getPtCache () |
| const PointsTo & | getPts (NodeID id) override |
| const NodeSet & | getRevPts (NodeID nodeId) override |
| virtual void | clearPts (NodeID id, NodeID element) |
| Remove element from the points-to set of id. | |
| virtual void | clearFullPts (NodeID id) |
| Clear points-to set of id. | |
| virtual bool | addPts (NodeID id, NodeID ptd) |
| virtual void | clearAllPts () |
| Clear all data. | |
| virtual void | expandFIObjs (const PointsTo &pts, PointsTo &expandedPts) |
| Expand FI objects. | |
| virtual void | expandFIObjs (const NodeBS &pts, NodeBS &expandedPts) |
| TODO: remove repetition. | |
| void | remapPointsToSets (void) |
| Remap all points-to sets to use the current mapping. | |
| virtual void | writeToFile (const std::string &filename) |
| Interface for analysis result storage on filesystem. | |
| virtual void | writeObjVarToFile (const std::string &filename) |
| virtual void | writePtsResultToFile (std::fstream &f) |
| virtual void | writeGepObjVarMapToFile (std::fstream &f) |
| virtual bool | readFromFile (const std::string &filename) |
| virtual void | readPtsResultFromFile (std::ifstream &f) |
| virtual void | readGepObjVarMapFromFile (std::ifstream &f) |
| virtual void | readAndSetObjFieldSensitivity (std::ifstream &f, const std::string &delimiterStr) |
| AliasResult | alias (const SVFVar *V1, const SVFVar *V2) override |
| Interface expose to users of our pointer analysis, given Value infos. | |
| AliasResult | alias (NodeID node1, NodeID node2) override |
| Interface expose to users of our pointer analysis, given PAGNodeID. | |
| virtual AliasResult | alias (const PointsTo &pts1, const PointsTo &pts2) |
| Interface expose to users of our pointer analysis, given two pts. | |
| bool | mayAlias (const PointsTo &pts1, const PointsTo &pts2) |
| Convenience bool wrappers: return true if the two operands may/must/partial alias. | |
| void | dumpCPts () override |
| dump and debug, print out conditional pts | |
| void | dumpTopLevelPtsTo () override |
| void | dumpAllPts () override |
| bool | mayAlias (const SVFVar *V1, const SVFVar *V2) |
| bool | mayAlias (NodeID node1, NodeID node2) |
| Public Member Functions inherited from SVF::PointerAnalysis | |
| ICFG * | getICFG () const |
| Get ICFG. | |
| u32_t | getNumOfResolvedIndCallEdge () const |
| Return number of resolved indirect call edges. | |
| CallGraph * | getCallGraph () const |
| Return call graph. | |
| CallGraphSCC * | getCallGraphSCC () const |
| Return call graph SCC. | |
| PointerAnalysis (PAG *pag, PTATY ty=PTATY::Default_PTA, bool alias_check=true) | |
| Constructor. | |
| PTATY | getAnalysisTy () const |
| Type of pointer analysis. | |
| PTAImplTy | getImplTy () const |
| Return implementation type of the pointer analysis. | |
| bool | printStat () |
| Whether print statistics. | |
| void | disablePrintStat () |
| Whether print statistics. | |
| CallEdgeMap & | getIndCallMap () |
| Get callees from an indirect callsite. | |
| bool | hasIndCSCallees (const CallICFGNode *cs) const |
| const FunctionSet & | getIndCSCallees (const CallICFGNode *cs) const |
| virtual void | resolveIndCalls (const CallICFGNode *cs, const PointsTo &target, CallEdgeMap &newEdges) |
| Resolve indirect call edges. | |
| void | callGraphSCCDetection () |
| PTACallGraph SCC related methods. | |
| NodeID | getCallGraphSCCRepNode (NodeID id) const |
| Get SCC rep node of a SVFG node. | |
| bool | inSameCallGraphSCC (const FunObjVar *fun1, const FunObjVar *fun2) |
| Return TRUE if this edge is inside a PTACallGraph SCC, i.e., src node and dst node are in the same SCC on the SVFG. | |
| bool | isInRecursion (const FunObjVar *fun) const |
| bool | isLocalVarInRecursiveFun (NodeID id) const |
| Whether a local variable is in function recursions. | |
| CommonCHGraph * | getCHGraph () const |
| get CHGraph | |
| void | getVFnsFromCHA (const CallICFGNode *cs, VFunSet &vfns) |
| void | getVFnsFromPts (const CallICFGNode *cs, const PointsTo &target, VFunSet &vfns) |
| void | connectVCallToVFns (const CallICFGNode *cs, const VFunSet &vfns, CallEdgeMap &newEdges) |
| virtual void | resolveCPPIndCalls (const CallICFGNode *cs, const PointsTo &target, CallEdgeMap &newEdges) |
| Resolve cpp indirect call edges. | |
| PAG * | getPAG () const |
| PTAStat * | getStat () const |
| Get PTA stat. | |
| OrderedNodeSet & | getAllValidPtrs () |
| Get all Valid Pointers for resolution. | |
| virtual | ~PointerAnalysis () |
| Destructor. | |
| virtual void | computeDDAPts (NodeID) |
| Compute points-to results on-demand, overridden by derived classes. | |
| bool | mayAlias (const SVFVar *V1, const SVFVar *V2) |
| Convenience bool wrappers: return true if the two operands may/must/partial alias. | |
| bool | mayAlias (NodeID node1, NodeID node2) |
| void | printIndCSTargets (const CallICFGNode *cs, const FunctionSet &targets) |
| Print targets of a function pointer. | |
| virtual void | dumpPts (NodeID ptr, const PointsTo &pts) |
| void | printIndCSTargets () |
| void | dumpAllTypes () |
| void | dumpStat () |
| Dump the statistics. | |
| bool | containBlackHoleNode (const PointsTo &pts) |
| Determine whether a points-to contains a black hole or constant node. | |
| bool | containConstantNode (const PointsTo &pts) |
| virtual bool | isBlkObjOrConstantObj (NodeID ptd) const |
| bool | isHeapMemObj (NodeID id) const |
| Whether this object is heap or array. | |
| bool | isArrayMemObj (NodeID id) const |
| bool | isFIObjNode (NodeID id) const |
| NodeID | getBaseObjVarID (NodeID id) |
| NodeID | getFIObjVar (NodeID id) |
| NodeID | getGepObjVar (NodeID id, const APOffset &ap) |
| virtual const NodeBS & | getAllFieldsObjVars (NodeID id) |
| void | setObjFieldInsensitive (NodeID id) |
| bool | isFieldInsensitive (NodeID id) const |
Static Public Member Functions | |
| static bool | classof (const Andersen *) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
| static bool | classof (const PointerAnalysis *pta) |
| Static Public Member Functions inherited from SVF::AndersenBase | |
| static bool | classof (const AndersenBase *) |
| Methods for support type inquiry through isa, cast, and dyn_cast: | |
| static bool | classof (const PointerAnalysis *pta) |
| Static Public Member Functions inherited from SVF::BVDataPTAImpl | |
| static bool | classof (const PointerAnalysis *pta) |
Protected Member Functions | |
| virtual void | computeDiffPts (NodeID id) |
| Handle diff points-to set. | |
| virtual const PointsTo & | getDiffPts (NodeID id) |
| void | updatePropaPts (NodeID dstId, NodeID srcId) |
| Handle propagated points-to set. | |
| void | clearPropaPts (NodeID src) |
| virtual void | initWorklist () |
| virtual void | processNode (NodeID nodeId) |
| Override WPASolver function in order to use the default solver. | |
| void | processAllAddr () |
| handling various constraints | |
| virtual bool | processLoad (NodeID node, const ConstraintEdge *load) |
| virtual bool | processStore (NodeID node, const ConstraintEdge *load) |
| virtual bool | processCopy (NodeID node, const ConstraintEdge *edge) |
| virtual bool | processGep (NodeID node, const GepCGEdge *edge) |
| virtual void | handleCopyGep (ConstraintNode *node) |
| virtual void | handleLoadStore (ConstraintNode *node) |
| virtual void | processAddr (const AddrCGEdge *addr) |
| virtual bool | processGepPts (const PointsTo &pts, const GepCGEdge *edge) |
| virtual bool | addCopyEdge (NodeID src, NodeID dst) |
| Add copy edge on constraint graph. | |
| virtual void | mergeNodeToRep (NodeID nodeId, NodeID newRepId) |
| Merge sub node to its rep. | |
| virtual bool | mergeSrcToTgt (NodeID srcId, NodeID tgtId) |
| void | mergeSccNodes (NodeID repNodeId, const NodeBS &subNodes) |
| Merge sub node in a SCC cycle to their rep node. | |
| void | mergeSccCycle () |
| virtual void | collapsePWCNode (NodeID nodeId) |
| Collapse a field object into its base for field insensitive analysis. | |
| void | collapseFields () |
| collapse positive weight cycles of a graph | |
| bool | collapseNodePts (NodeID nodeId) |
| bool | collapseField (NodeID nodeId) |
| void | updateNodeRepAndSubs (NodeID nodeId, NodeID newRepId) |
| Updates subnodes of its rep, and rep node of its subs. | |
| virtual NodeStack & | SCCDetect () |
| SCC detection. | |
| std::optional< NodeBS > | collectMayAliasesFromIndex (const PointsTo &expandedPts) |
| virtual void | validateSuccessTests (std::string fun) |
| Also check getMayAliases on the pointers that the alias tests use. | |
| void | sanitizePts () |
| Sanitize pts for field insensitive objects. | |
| virtual const std::string | PTAName () const |
| Get PTA name. | |
| virtual void | cluster (void) const |
| Protected Member Functions inherited from SVF::AndersenBase | |
| void | heapAllocatorViaIndCall (const CallICFGNode *cs, NodePairSet &cpySrcNodes) |
| Protected Member Functions inherited from SVF::WPASolver< ConstraintGraph * > | |
| WPASolver () | |
| Constructor. | |
| virtual | ~WPASolver ()=default |
| Destructor. | |
| SCC * | getSCCDetector () const |
| Get SCC detector. | |
| const ConstraintGraph * | graph () |
| Get/Set graph methods. | |
| void | setGraph (ConstraintGraph *g) |
| virtual NodeStack & | SCCDetect (NodeSet &candidates) |
| virtual void | solveWorklist () |
| virtual void | propagate (GNODE *v) |
| virtual bool | propFromSrcToDst (GEDGE *) |
| Propagate information from source to destination node, to be implemented in the child class. | |
| NodeID | popFromWorklist () |
| Worklist operations. | |
| virtual void | pushIntoWorklist (NodeID id) |
| bool | isWorklistEmpty () |
| bool | isInWorklist (NodeID id) |
| GNODE * | Node (NodeID id) |
| Get node on the graph. | |
| NodeID | Node_Index (GNODE node) |
| Get node ID. | |
| PTDataTy * | getPTDataTy () const |
| Get points-to data structure. | |
| void | finalize () override |
| Finalization of pointer analysis, and normalize points-to information to Bit Vector representation. | |
| DiffPTDataTy * | getDiffPTDataTy () const |
| DFPTDataTy * | getDFPTDataTy () const |
| MutDFPTDataTy * | getMutDFPTDataTy () const |
| VersionedPTDataTy * | getVersionedPTDataTy () const |
| virtual void | onTheFlyCallGraphSolve (const CallSiteToFunPtrMap &callsites, CallEdgeMap &newEdges) |
| On the fly call graph construction. | |
| virtual void | onTheFlyThreadCallGraphSolve (const CallSiteToFunPtrMap &callsites, CallEdgeMap &newForkEdges) |
| On the fly thread call graph construction respecting forksite. | |
| const CallSiteToFunPtrMap & | getIndirectCallsites () const |
| Return all indirect callsites. | |
| NodeID | getFunPtr (const CallICFGNode *cs) const |
| Return function pointer PAGNode at a callsite cs. | |
| virtual void | validateTests () |
| Alias check functions to verify correctness of pointer analysis. | |
| virtual void | validateExpectedFailureTests (std::string fun) |
| void | resetObjFieldSensitive () |
| Reset all object node as field-sensitive. | |
Protected Attributes | |
| CallSite2DummyValPN | callsite2DummyValPN |
| Map an instruction to a dummy obj which created at an indirect callsite, which invokes a heap allocator. | |
| Protected Attributes inherited from SVF::AndersenBase | |
| ConstraintGraph * | consCG |
| Constraint Graph. | |
| CallSite2DummyValPN | callsite2DummyValPN |
| Protected Attributes inherited from SVF::WPASolver< ConstraintGraph * > | |
| bool | reanalyze |
| Reanalyze if any constraint value changed. | |
| u32_t | iterationForPrintStat |
| print out statistics for i-th iteration | |
| ConstraintGraph * | _graph |
| Graph. | |
| std::unique_ptr< SCC > | scc |
| SCC. | |
| WorkList | worklist |
| Worklist for resolution. | |
| Protected Attributes inherited from SVF::PointerAnalysis | |
| bool | print_stat |
| User input flags. | |
| bool | alias_validation |
| Flag for validating points-to/alias results. | |
| u32_t | OnTheFlyIterBudgetForStat |
| Flag for iteration budget for on-the-fly statistics. | |
| PTATY | ptaTy |
| Pointer analysis Type. | |
| PTAImplTy | ptaImplTy |
| PTA implementation type. | |
| PTAStat * | stat |
| Statistics. | |
| CallGraph * | callgraph |
| Call graph used for pointer analysis. | |
| CallGraphSCC * | callGraphSCC |
| SCC for PTACallGraph. | |
| ICFG * | icfg |
| Interprocedural control-flow graph. | |
| CommonCHGraph * | chgraph |
| CHGraph. | |
Additional Inherited Members | |
| Public Attributes inherited from SVF::AndersenBase | |
| NodeBS | redundantGepNodes |
| Public Attributes inherited from SVF::WPASolver< ConstraintGraph * > | |
| u32_t | numOfIteration |
| num of iterations during constraint solving | |
| Static Public Attributes inherited from SVF::AndersenBase | |
| static u32_t | numOfProcessedAddr = 0 |
| Statistics. | |
| static u32_t | numOfProcessedCopy = 0 |
| Number of processed Addr edge. | |
| static u32_t | numOfProcessedGep = 0 |
| Number of processed Copy edge. | |
| static u32_t | numOfProcessedLoad = 0 |
| Number of processed Gep edge. | |
| static u32_t | numOfProcessedStore = 0 |
| Number of processed Load edge. | |
| static u32_t | numOfSfrs = 0 |
| Number of processed Store edge. | |
| static u32_t | numOfFieldExpand = 0 |
| static u32_t | numOfSCCDetection = 0 |
| static double | timeOfSCCDetection = 0 |
| static double | timeOfSCCMerges = 0 |
| static double | timeOfCollapse = 0 |
| static u32_t | AveragePointsToSetSize = 0 |
| static u32_t | MaxPointsToSetSize = 0 |
| static double | timeOfProcessCopyGep = 0 |
| static double | timeOfProcessLoadStore = 0 |
| static double | timeOfUpdateCallGraph = 0 |
| Static Public Attributes inherited from SVF::PointerAnalysis | |
| static const std::string | aliasTestMayAlias = "MAYALIAS" |
| static const std::string | aliasTestMayAliasMangled = "_Z8MAYALIASPvS_" |
| static const std::string | aliasTestNoAlias = "NOALIAS" |
| static const std::string | aliasTestNoAliasMangled = "_Z7NOALIASPvS_" |
| static const std::string | aliasTestPartialAlias = "PARTIALALIAS" |
| static const std::string | aliasTestPartialAliasMangled = "_Z12PARTIALALIASPvS_" |
| static const std::string | aliasTestMustAlias = "MUSTALIAS" |
| static const std::string | aliasTestMustAliasMangled = "_Z9MUSTALIASPvS_" |
| static const std::string | aliasTestFailMayAlias = "EXPECTEDFAIL_MAYALIAS" |
| static const std::string | aliasTestFailMayAliasMangled = "_Z21EXPECTEDFAIL_MAYALIASPvS_" |
| static const std::string | aliasTestFailNoAlias = "EXPECTEDFAIL_NOALIAS" |
| static const std::string | aliasTestFailNoAliasMangled = "_Z20EXPECTEDFAIL_NOALIASPvS_" |
| Static Protected Attributes inherited from SVF::PointerAnalysis | |
| static PAG * | pag = nullptr |
| PAG. | |
Inclusion-based Pointer Analysis
Definition at line 192 of file Andersen.h.
| typedef SCCDetection<ConstraintGraph*> SVF::Andersen::CGSCC |
Definition at line 197 of file Andersen.h.
|
inline |
Constructor.
Definition at line 200 of file Andersen.h.
|
inlinevirtual |
Add copy edge on constraint graph.
Implements SVF::AndersenBase.
Reimplemented in SVF::AndersenSCD.
Definition at line 338 of file Andersen.h.
|
inlinestatic |
Methods for support type inquiry through isa, cast, and dyn_cast:
Definition at line 228 of file Andersen.h.
|
inlinestatic |
Definition at line 232 of file Andersen.h.
|
inlineprotected |
Definition at line 309 of file Andersen.h.
|
protectedvirtual |
Runs a Steensgaard analysis and performs clustering based on those results set the global best mapping.
Definition at line 1128 of file Andersen.cpp.
|
protected |
Collapse field. make struct with the same base as nodeId become field-insensitive.
Black hole doesn't have structures, no collapse is needed. In later versions, instead of using base node to represent the struct, we'll create new field-insensitive node. To avoid creating a new "black hole" node, do not collapse field for black hole node.
Definition at line 798 of file Andersen.cpp.
|
protectedvirtual |
collapse positive weight cycles of a graph
Reimplemented from SVF::WPASolver< ConstraintGraph * >.
Definition at line 724 of file Andersen.cpp.
|
protected |
Collapse node's points-to set. Change all points-to elements into field-insensitive.
Points to set may be changed during collapse, so use a clone instead.
Definition at line 778 of file Andersen.cpp.
|
protectedvirtual |
Collapse a field object into its base for field insensitive analysis.
Detect and collapse PWC nodes produced by processing gep edges, under the constraint of field limit.
Definition at line 715 of file Andersen.cpp.
|
protected |
Answer a may-alias query from the reverse points-to sets. Returns nullopt when those sets cannot answer it, leaving the caller to try every node.
Answer a may-alias query from the reverse points-to sets, which say which nodes may point to a given object.
Two nodes may alias exactly when their expanded points-to sets share an object. For every object in this query's expanded set, collect all raw points-to objects whose expansion can contain it: the object itself, its base, and every field of a field-insensitive base. The reverse sets of those objects therefore name the complete answer. The black-hole reverse set supplies nodes that alias everything.
Returns nullopt when reverse points-to sets are unavailable or the query itself points to the black hole, leaving the caller to try every node.
Definition at line 1030 of file Andersen.cpp.
|
inlineprotectedvirtual |
Handle diff points-to set.
Definition at line 283 of file Andersen.h.
|
virtual |
Print pag nodes' pts by an ascending order
Reimplemented from SVF::PointerAnalysis.
Definition at line 1152 of file Andersen.cpp.
|
virtual |
Finalize analysis.
Finalize analysis
sanitize field insensitive obj TODO: Fields has been collapsed during Andersen::collapseField().
Reimplemented from SVF::AndersenBase.
Reimplemented in SVF::AndersenWaveDiff.
Definition at line 451 of file Andersen.cpp.
Definition at line 291 of file Andersen.h.
Collect exactly the PAG nodes q for which mayAlias(node, q) holds.
Collect every PAG node that may alias the given node.
Reimplemented from SVF::PointerAnalysis.
Definition at line 945 of file Andersen.cpp.
Query multiple pointers, reusing answers for equal points-to sets within this call.
| nodes | Input PAG node IDs in query order. |
Reuse answers only within a batch whose analysis state is unchanged. For example, queries for p and q with pts(p) = pts(q) = {o} need the same reverse-index walk. Keep the cache local so later batches and scalar queries observe current state.
Definition at line 979 of file Andersen.cpp.
Operation of points-to set.
Implements SVF::PointerAnalysis.
Definition at line 242 of file Andersen.h.
|
protectedvirtual |
Process copy and gep edges
Reimplemented in SVF::AndersenSCD.
Definition at line 497 of file Andersen.cpp.
|
protectedvirtual |
Process load and store edges
Reimplemented in SVF::AndersenSCD.
Definition at line 517 of file Andersen.cpp.
|
virtual |
Initialize analysis.
Initialize analysis
Initialize worklist
Reimplemented from SVF::AndersenBase.
Reimplemented in SVF::AndersenSFR, and SVF::AndersenWaveDiff.
Definition at line 437 of file Andersen.cpp.
|
inlineprotectedvirtual |
Reimplemented from SVF::WPASolver< ConstraintGraph * >.
Definition at line 318 of file Andersen.h.
Merge sub node to its rep.
Definition at line 914 of file Andersen.cpp.
|
protected |
Definition at line 739 of file Andersen.cpp.
Merge sub node in a SCC cycle to their rep node.
Union points-to of subscc nodes into its rep nodes Move incoming/outgoing direct edges of sub node to rep node
Definition at line 763 of file Andersen.cpp.
merge nodeId to newRepId. Return true if the newRepId is a PWC node
union pts of node to rep
move the edges from node to rep, and remove the node
set rep and sub relations
Reimplemented in SVF::AndersenSFR.
Definition at line 883 of file Andersen.cpp.
|
protectedvirtual |
Process address edges
Reimplemented in SVF::AndersenSCD.
Definition at line 559 of file Andersen.cpp.
|
protected |
handling various constraints
Process address edges
Definition at line 545 of file Andersen.cpp.
|
protectedvirtual |
Process copy edges src –copy--> dst, union pts(dst) with pts(src)
Definition at line 622 of file Andersen.cpp.
Process gep edges src –gep--> dst, for each srcPtdNode \in pts(src) ==> add fieldSrcPtdNode into tmpDstPts union pts(dst) with tmpDstPts
Definition at line 642 of file Andersen.cpp.
Compute points-to for gep edges
Reimplemented in SVF::AndersenSFR.
Definition at line 651 of file Andersen.cpp.
|
protectedvirtual |
Process load edges src –load--> dst, node \in pts(src) ==> node–copy-->dst
TODO: New copy edges are also added for black hole obj node to make gcc in spec 2000 pass the flow-sensitive analysis. Try to handle black hole obj in an appropriate way.
Definition at line 574 of file Andersen.cpp.
|
protectedvirtual |
Override WPASolver function in order to use the default solver.
Start constraint solving
Reimplemented from SVF::WPASolver< ConstraintGraph * >.
Reimplemented in SVF::AndersenWaveDiff.
Definition at line 476 of file Andersen.cpp.
|
protectedvirtual |
Process store edges src –store--> dst, node \in pts(dst) ==> src–copy-->node
TODO: New copy edges are also added for black hole obj node to make gcc in spec 2000 pass the flow-sensitive analysis. Try to handle black hole obj in an appropriate way
Definition at line 598 of file Andersen.cpp.
|
inlineprotectedvirtual |
Get PTA name.
Reimplemented from SVF::PointerAnalysis.
Definition at line 404 of file Andersen.h.
|
inline |
Reset data.
Definition at line 218 of file Andersen.h.
|
inlineprotected |
Sanitize pts for field insensitive objects.
Definition at line 382 of file Andersen.h.
|
protectedvirtual |
SCC detection.
SCC detection on constraint graph
Reimplemented from SVF::WPASolver< ConstraintGraph * >.
Reimplemented in SVF::AndersenSCD.
Definition at line 859 of file Andersen.cpp.
|
inline |
Definition at line 273 of file Andersen.h.
Union/add points-to. Add the reverse points-to for node collapse purpose To be noted that adding reverse pts might incur 10% total overhead during solving
Reimplemented from SVF::BVDataPTAImpl.
Definition at line 246 of file Andersen.h.
Reimplemented from SVF::BVDataPTAImpl.
Definition at line 251 of file Andersen.h.
Updates subnodes of its rep, and rep node of its subs.
update nodeToRepMap, for each subs of current node updates its rep to newRepId
Definition at line 924 of file Andersen.cpp.
Handle propagated points-to set.
Definition at line 301 of file Andersen.h.
|
protectedvirtual |
Also check getMayAliases on the pointers that the alias tests use.
Run the alias tests, then check getMayAliases on every pointer they use: it must return exactly the nodes that mayAlias reports
Reimplemented from SVF::PointerAnalysis.
Definition at line 1089 of file Andersen.cpp.
|
protected |
Map an instruction to a dummy obj which created at an indirect callsite, which invokes a heap allocator.
Definition at line 280 of file Andersen.h.