svf-lib 1.0.729 → 1.0.733
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SVF-linux/Release-build/lib/libSvf.a +0 -0
- package/SVF-linux/include/DDA/DDAVFSolver.h +1 -1
- package/SVF-linux/include/Graphs/PAG.h +4 -4
- package/SVF-linux/include/Graphs/PAGNode.h +3 -3
- package/SVF-linux/include/MemoryModel/SVFIR.h +1 -1
- package/SVF-linux/include/MemoryModel/SVFSymbols.h +648 -0
- package/SVF-linux/include/MemoryModel/SymbolTableInfo.h +26 -14
- package/SVF-linux/include/SVF-FE/SymbolTableBuilder.h +1 -1
- package/SVF-osx/Release-build/lib/CUDD/libCudd.a +0 -0
- package/SVF-osx/Release-build/lib/libSvf.a +0 -0
- package/SVF-osx/include/DDA/ContextDDA.h +1 -1
- package/SVF-osx/include/DDA/DDAClient.h +8 -8
- package/SVF-osx/include/DDA/DDAVFSolver.h +6 -6
- package/SVF-osx/include/DDA/FlowDDA.h +1 -1
- package/SVF-osx/include/Graphs/ConsG.h +6 -6
- package/SVF-osx/include/Graphs/ConsGEdge.h +2 -2
- package/SVF-osx/include/Graphs/ConsGNode.h +1 -1
- package/SVF-osx/include/Graphs/ExternalPAG.h +14 -14
- package/SVF-osx/include/Graphs/ICFGNode.h +14 -14
- package/SVF-osx/include/Graphs/IRGraph.h +245 -0
- package/SVF-osx/include/Graphs/OfflineConsG.h +1 -1
- package/SVF-osx/include/Graphs/PAG.h +4 -4
- package/SVF-osx/include/Graphs/PAGNode.h +4 -4
- package/SVF-osx/include/Graphs/SVFG.h +1 -1
- package/SVF-osx/include/Graphs/SVFGOPT.h +3 -3
- package/SVF-osx/include/Graphs/VFG.h +19 -19
- package/SVF-osx/include/Graphs/VFGNode.h +2 -3
- package/SVF-osx/include/MSSA/MemRegion.h +11 -11
- package/SVF-osx/include/MSSA/MemSSA.h +4 -4
- package/SVF-osx/include/MTA/FSMPTA.h +1 -1
- package/SVF-osx/include/MemoryModel/LocationSet.h +0 -1
- package/SVF-osx/include/MemoryModel/PAGBuilderFromFile.h +8 -8
- package/SVF-osx/include/MemoryModel/PTAStat.h +31 -31
- package/SVF-osx/include/MemoryModel/PointerAnalysis.h +9 -9
- package/SVF-osx/include/MemoryModel/PointerAnalysisImpl.h +3 -3
- package/SVF-osx/include/MemoryModel/SVFIR.h +738 -0
- package/SVF-osx/include/MemoryModel/SVFStatements.h +738 -0
- package/SVF-osx/include/MemoryModel/SVFSymbols.h +648 -0
- package/SVF-osx/include/MemoryModel/SVFVariables.h +842 -0
- package/SVF-osx/include/MemoryModel/SymbolTableInfo.h +731 -0
- package/SVF-osx/include/SABER/SaberSVFGBuilder.h +0 -2
- package/SVF-osx/include/SABER/SrcSnkDDA.h +3 -3
- package/SVF-osx/include/SVF-FE/Graph2Json.h +1 -3
- package/SVF-osx/include/SVF-FE/SVFIRBuilder.h +392 -0
- package/SVF-osx/include/SVF-FE/SymbolTableBuilder.h +89 -0
- package/SVF-osx/include/Util/BasicTypes.h +0 -10
- package/SVF-osx/include/Util/CFLSolver.h +1 -1
- package/SVF-osx/include/Util/ExtAPI.h +1 -1
- package/SVF-osx/include/Util/IRAnnotator.h +6 -6
- package/SVF-osx/include/Util/Options.h +1 -1
- package/SVF-osx/include/Util/SVFUtil.h +11 -0
- package/SVF-osx/include/Util/TypeBasedHeapCloning.h +11 -11
- package/SVF-osx/include/WPA/Andersen.h +11 -100
- package/SVF-osx/include/WPA/AndersenSFR.h +4 -4
- package/SVF-osx/include/WPA/FlowSensitive.h +2 -2
- package/SVF-osx/include/WPA/FlowSensitiveTBHC.h +1 -1
- package/SVF-osx/include/WPA/Steensgaard.h +2 -2
- package/SVF-osx/include/WPA/TypeAnalysis.h +1 -1
- package/SVF-osx/include/WPA/VersionedFlowSensitive.h +2 -2
- package/SVF-osx/include/WPA/WPAStat.h +1 -2
- package/package.json +1 -1
|
Binary file
|
|
@@ -448,7 +448,7 @@ protected:
|
|
|
448
448
|
assert(obj && "object not found!!");
|
|
449
449
|
if(obj->isStack())
|
|
450
450
|
{
|
|
451
|
-
if(const AllocaInst* local = SVFUtil::dyn_cast<AllocaInst>(obj->
|
|
451
|
+
if(const AllocaInst* local = SVFUtil::dyn_cast<AllocaInst>(obj->getValue()))
|
|
452
452
|
{
|
|
453
453
|
const SVFFunction* fun = LLVMModuleSet::getLLVMModuleSet()->getSVFFunction(local->getFunction());
|
|
454
454
|
return _callGraphSCC->isInCycle(_callGraph->getCallGraphNode(fun)->getId());
|
|
@@ -561,7 +561,7 @@ public:
|
|
|
561
561
|
/// getObject - return mem object id
|
|
562
562
|
inline NodeID getObjectNode(const MemObj *mem)
|
|
563
563
|
{
|
|
564
|
-
return mem->
|
|
564
|
+
return mem->getId();
|
|
565
565
|
}
|
|
566
566
|
/// Get all PAG Edges that corresponds to an LLVM value
|
|
567
567
|
inline const PAGEdgeSet& getValueEdges(const Value *V)
|
|
@@ -618,7 +618,7 @@ public:
|
|
|
618
618
|
//@{
|
|
619
619
|
inline NodeID getFIObjNode(const MemObj* obj) const
|
|
620
620
|
{
|
|
621
|
-
return obj->
|
|
621
|
+
return obj->getId();
|
|
622
622
|
}
|
|
623
623
|
inline NodeID getFIObjNode(NodeID id) const
|
|
624
624
|
{
|
|
@@ -716,7 +716,7 @@ public:
|
|
|
716
716
|
LocationSet getLocationSetFromBaseNode(NodeID nodeId);
|
|
717
717
|
inline NodeID getBaseObjNode(NodeID id) const
|
|
718
718
|
{
|
|
719
|
-
return getBaseObj(id)->
|
|
719
|
+
return getBaseObj(id)->getId();
|
|
720
720
|
}
|
|
721
721
|
inline const MemObj* getBaseObj(NodeID id) const
|
|
722
722
|
{
|
|
@@ -752,7 +752,7 @@ public:
|
|
|
752
752
|
inline NodeID addObjNode(const Value* val, NodeID i)
|
|
753
753
|
{
|
|
754
754
|
MemObj* mem = symInfo->getObj(symInfo->getObjSym(val));
|
|
755
|
-
assert(((mem->
|
|
755
|
+
assert(((mem->getId() == i)) && "not same object id?");
|
|
756
756
|
return addFIObjNode(mem);
|
|
757
757
|
}
|
|
758
758
|
/// Add a unique return node for a procedure
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
#define PAGNODE_H_
|
|
32
32
|
|
|
33
33
|
#include "Graphs/GenericGraph.h"
|
|
34
|
-
#include "MemoryModel/
|
|
34
|
+
#include "MemoryModel/SVFSymbols.h"
|
|
35
35
|
#include "MemoryModel/SymbolTableInfo.h"
|
|
36
36
|
#include "SVF-FE/LLVMUtil.h"
|
|
37
37
|
#include "Graphs/PAGEdge.h"
|
|
@@ -483,9 +483,9 @@ public:
|
|
|
483
483
|
|
|
484
484
|
/// Constructor
|
|
485
485
|
GepObjPN(const MemObj* mem, NodeID i, const LocationSet& l, PNODEK ty = GepObjNode) :
|
|
486
|
-
ObjPN(mem->
|
|
486
|
+
ObjPN(mem->getValue(), i, mem, ty), ls(l)
|
|
487
487
|
{
|
|
488
|
-
base = mem->
|
|
488
|
+
base = mem->getId();
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
/// offset of the mem object
|