svf-lib 1.0.1376 → 1.0.1377
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-osx/Release-build/svf-llvm/libSvfLLVM.a +0 -0
- package/package.json +1 -1
- package/SVF-linux/svf/include/include/AbstractExecution/AbstractValue.h +0 -79
- package/SVF-linux/svf/include/include/AbstractExecution/AddressValue.h +0 -210
- package/SVF-linux/svf/include/include/AbstractExecution/ExeState.h +0 -223
- package/SVF-linux/svf/include/include/AbstractExecution/IntervalExeState.h +0 -425
- package/SVF-linux/svf/include/include/AbstractExecution/IntervalValue.h +0 -868
- package/SVF-linux/svf/include/include/AbstractExecution/NumericLiteral.h +0 -406
- package/SVF-linux/svf/include/include/AbstractExecution/RelExeState.h +0 -225
- package/SVF-linux/svf/include/include/AbstractExecution/RelationSolver.h +0 -68
- package/SVF-linux/svf/include/include/AbstractExecution/SVFIR2ItvExeState.h +0 -186
- package/SVF-linux/svf/include/include/AbstractExecution/WTO.h +0 -845
- package/SVF-linux/svf/include/include/CFL/CFGNormalizer.h +0 -84
- package/SVF-linux/svf/include/include/CFL/CFLAlias.h +0 -176
- package/SVF-linux/svf/include/include/CFL/CFLBase.h +0 -115
- package/SVF-linux/svf/include/include/CFL/CFLData.h +0 -316
- package/SVF-linux/svf/include/include/CFL/CFLDataBuilder.h +0 -91
- package/SVF-linux/svf/include/include/CFL/CFLGramGraphChecker.h +0 -74
- package/SVF-linux/svf/include/include/CFL/CFLGrammar.h +0 -468
- package/SVF-linux/svf/include/include/CFL/CFLGrammar.txt +0 -15
- package/SVF-linux/svf/include/include/CFL/CFLGraphBuilder.h +0 -193
- package/SVF-linux/svf/include/include/CFL/CFLSolver.h +0 -136
- package/SVF-linux/svf/include/include/CFL/CFLStat.h +0 -67
- package/SVF-linux/svf/include/include/CFL/CFLVF.h +0 -65
- package/SVF-linux/svf/include/include/CFL/GrammarBuilder.h +0 -100
- package/SVF-linux/svf/include/include/CFL/PEGGrammar.txt +0 -11
- package/SVF-linux/svf/include/include/CFL/VFG.txt +0 -7
- package/SVF-linux/svf/include/include/DDA/ContextDDA.h +0 -230
- package/SVF-linux/svf/include/include/DDA/DDAClient.h +0 -168
- package/SVF-linux/svf/include/include/DDA/DDAPass.h +0 -99
- package/SVF-linux/svf/include/include/DDA/DDAStat.h +0 -138
- package/SVF-linux/svf/include/include/DDA/DDAVFSolver.h +0 -789
- package/SVF-linux/svf/include/include/DDA/FlowDDA.h +0 -178
- package/SVF-linux/svf/include/include/FastCluster/LICENSE.TXT +0 -13
- package/SVF-linux/svf/include/include/FastCluster/fastcluster.h +0 -80
- package/SVF-linux/svf/include/include/Graphs/CFLGraph.h +0 -215
- package/SVF-linux/svf/include/include/Graphs/CHG.h +0 -351
- package/SVF-linux/svf/include/include/Graphs/ConsG.h +0 -408
- package/SVF-linux/svf/include/include/Graphs/ConsGEdge.h +0 -353
- package/SVF-linux/svf/include/include/Graphs/ConsGNode.h +0 -391
- package/SVF-linux/svf/include/include/Graphs/DOTGraphTraits.h +0 -188
- package/SVF-linux/svf/include/include/Graphs/GenericGraph.h +0 -620
- package/SVF-linux/svf/include/include/Graphs/GraphPrinter.h +0 -111
- package/SVF-linux/svf/include/include/Graphs/GraphTraits.h +0 -150
- package/SVF-linux/svf/include/include/Graphs/GraphWriter.h +0 -380
- package/SVF-linux/svf/include/include/Graphs/ICFG.h +0 -331
- package/SVF-linux/svf/include/include/Graphs/ICFGEdge.h +0 -264
- package/SVF-linux/svf/include/include/Graphs/ICFGNode.h +0 -523
- package/SVF-linux/svf/include/include/Graphs/ICFGStat.h +0 -164
- package/SVF-linux/svf/include/include/Graphs/IRGraph.h +0 -243
- package/SVF-linux/svf/include/include/Graphs/PTACallGraph.h +0 -471
- package/SVF-linux/svf/include/include/Graphs/SVFG.h +0 -490
- package/SVF-linux/svf/include/include/Graphs/SVFGEdge.h +0 -237
- package/SVF-linux/svf/include/include/Graphs/SVFGNode.h +0 -513
- package/SVF-linux/svf/include/include/Graphs/SVFGOPT.h +0 -362
- package/SVF-linux/svf/include/include/Graphs/SVFGStat.h +0 -273
- package/SVF-linux/svf/include/include/Graphs/ThreadCallGraph.h +0 -422
- package/SVF-linux/svf/include/include/Graphs/VFG.h +0 -664
- package/SVF-linux/svf/include/include/Graphs/VFGEdge.h +0 -295
- package/SVF-linux/svf/include/include/Graphs/VFGNode.h +0 -1197
- package/SVF-linux/svf/include/include/MSSA/MSSAMuChi.h +0 -722
- package/SVF-linux/svf/include/include/MSSA/MemPartition.h +0 -169
- package/SVF-linux/svf/include/include/MSSA/MemRegion.h +0 -491
- package/SVF-linux/svf/include/include/MSSA/MemSSA.h +0 -452
- package/SVF-linux/svf/include/include/MSSA/SVFGBuilder.h +0 -98
- package/SVF-linux/svf/include/include/MTA/FSMPTA.h +0 -270
- package/SVF-linux/svf/include/include/MTA/LockAnalysis.h +0 -517
- package/SVF-linux/svf/include/include/MTA/MHP.h +0 -565
- package/SVF-linux/svf/include/include/MTA/MTA.h +0 -101
- package/SVF-linux/svf/include/include/MTA/MTAResultValidator.h +0 -448
- package/SVF-linux/svf/include/include/MTA/MTAStat.h +0 -74
- package/SVF-linux/svf/include/include/MTA/PCG.h +0 -229
- package/SVF-linux/svf/include/include/MTA/TCT.h +0 -599
- package/SVF-linux/svf/include/include/MemoryModel/AbstractPointsToDS.h +0 -316
- package/SVF-linux/svf/include/include/MemoryModel/ConditionalPT.h +0 -878
- package/SVF-linux/svf/include/include/MemoryModel/LocationSet.h +0 -148
- package/SVF-linux/svf/include/include/MemoryModel/MutablePointsToDS.h +0 -1025
- package/SVF-linux/svf/include/include/MemoryModel/PersistentPointsToCache.h +0 -463
- package/SVF-linux/svf/include/include/MemoryModel/PersistentPointsToDS.h +0 -955
- package/SVF-linux/svf/include/include/MemoryModel/PointerAnalysis.h +0 -452
- package/SVF-linux/svf/include/include/MemoryModel/PointerAnalysisImpl.h +0 -590
- package/SVF-linux/svf/include/include/MemoryModel/PointsTo.h +0 -255
- package/SVF-linux/svf/include/include/MemoryModel/SVFLoop.h +0 -164
- package/SVF-linux/svf/include/include/SABER/DoubleFreeChecker.h +0 -76
- package/SVF-linux/svf/include/include/SABER/FileChecker.h +0 -82
- package/SVF-linux/svf/include/include/SABER/LeakChecker.h +0 -124
- package/SVF-linux/svf/include/include/SABER/ProgSlice.h +0 -313
- package/SVF-linux/svf/include/include/SABER/SaberCheckerAPI.h +0 -166
- package/SVF-linux/svf/include/include/SABER/SaberCondAllocator.h +0 -310
- package/SVF-linux/svf/include/include/SABER/SaberSVFGBuilder.h +0 -104
- package/SVF-linux/svf/include/include/SABER/SrcSnkDDA.h +0 -321
- package/SVF-linux/svf/include/include/SABER/SrcSnkSolver.h +0 -186
- package/SVF-linux/svf/include/include/SVFIR/PAGBuilderFromFile.h +0 -80
- package/SVF-linux/svf/include/include/SVFIR/SVFIR.h +0 -659
- package/SVF-linux/svf/include/include/SVFIR/SVFModule.h +0 -233
- package/SVF-linux/svf/include/include/SVFIR/SVFStatements.h +0 -1136
- package/SVF-linux/svf/include/include/SVFIR/SVFType.h +0 -527
- package/SVF-linux/svf/include/include/SVFIR/SVFValue.h +0 -1120
- package/SVF-linux/svf/include/include/SVFIR/SVFVariables.h +0 -721
- package/SVF-linux/svf/include/include/SVFIR/SymbolTableInfo.h +0 -597
- package/SVF-linux/svf/include/include/Util/Annotator.h +0 -180
- package/SVF-linux/svf/include/include/Util/BitVector.h +0 -55
- package/SVF-linux/svf/include/include/Util/CallGraphBuilder.h +0 -74
- package/SVF-linux/svf/include/include/Util/Casting.h +0 -426
- package/SVF-linux/svf/include/include/Util/CommandLine.h +0 -530
- package/SVF-linux/svf/include/include/Util/CoreBitVector.h +0 -214
- package/SVF-linux/svf/include/include/Util/CppUtil.h +0 -81
- package/SVF-linux/svf/include/include/Util/CxtStmt.h +0 -501
- package/SVF-linux/svf/include/include/Util/DPItem.h +0 -618
- package/SVF-linux/svf/include/include/Util/ExtAPI.h +0 -339
- package/SVF-linux/svf/include/include/Util/ExtAPI.json +0 -5707
- package/SVF-linux/svf/include/include/Util/GraphReachSolver.h +0 -186
- package/SVF-linux/svf/include/include/Util/NodeIDAllocator.h +0 -194
- package/SVF-linux/svf/include/include/Util/Options.h +0 -266
- package/SVF-linux/svf/include/include/Util/PTAStat.h +0 -65
- package/SVF-linux/svf/include/include/Util/SCC.h +0 -354
- package/SVF-linux/svf/include/include/Util/SVFStat.h +0 -100
- package/SVF-linux/svf/include/include/Util/SVFUtil.h +0 -660
- package/SVF-linux/svf/include/include/Util/SparseBitVector.h +0 -1202
- package/SVF-linux/svf/include/include/Util/ThreadAPI.h +0 -330
- package/SVF-linux/svf/include/include/Util/WorkList.h +0 -317
- package/SVF-linux/svf/include/include/Util/Z3Expr.h +0 -318
- package/SVF-linux/svf/include/include/Util/cJSON.h +0 -300
- package/SVF-linux/svf/include/include/Util/iterator.h +0 -407
- package/SVF-linux/svf/include/include/Util/iterator_range.h +0 -76
- package/SVF-linux/svf/include/include/WPA/Andersen.h +0 -416
- package/SVF-linux/svf/include/include/WPA/AndersenPWC.h +0 -160
- package/SVF-linux/svf/include/include/WPA/CSC.h +0 -95
- package/SVF-linux/svf/include/include/WPA/FlowSensitive.h +0 -317
- package/SVF-linux/svf/include/include/WPA/Steensgaard.h +0 -126
- package/SVF-linux/svf/include/include/WPA/TypeAnalysis.h +0 -83
- package/SVF-linux/svf/include/include/WPA/VersionedFlowSensitive.h +0 -287
- package/SVF-linux/svf/include/include/WPA/WPAFSSolver.h +0 -254
- package/SVF-linux/svf/include/include/WPA/WPAPass.h +0 -119
- package/SVF-linux/svf/include/include/WPA/WPASolver.h +0 -205
- package/SVF-linux/svf/include/include/WPA/WPAStat.h +0 -222
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/BasicTypes.h +0 -250
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/BreakConstantExpr.h +0 -94
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/CHGBuilder.h +0 -73
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/DCHG.h +0 -484
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/GEPTypeBridgeIterator.h +0 -183
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/ICFGBuilder.h +0 -106
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMLoopAnalysis.h +0 -61
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMModule.h +0 -360
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMUtil.h +0 -466
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/SVFIRBuilder.h +0 -417
- package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/SymbolTableBuilder.h +0 -110
- package/SVF-osx/svf/include/include/AbstractExecution/AbstractValue.h +0 -79
- package/SVF-osx/svf/include/include/AbstractExecution/AddressValue.h +0 -210
- package/SVF-osx/svf/include/include/AbstractExecution/ExeState.h +0 -223
- package/SVF-osx/svf/include/include/AbstractExecution/IntervalExeState.h +0 -425
- package/SVF-osx/svf/include/include/AbstractExecution/IntervalValue.h +0 -868
- package/SVF-osx/svf/include/include/AbstractExecution/NumericLiteral.h +0 -406
- package/SVF-osx/svf/include/include/AbstractExecution/RelExeState.h +0 -225
- package/SVF-osx/svf/include/include/AbstractExecution/RelationSolver.h +0 -68
- package/SVF-osx/svf/include/include/AbstractExecution/SVFIR2ItvExeState.h +0 -186
- package/SVF-osx/svf/include/include/AbstractExecution/WTO.h +0 -845
- package/SVF-osx/svf/include/include/CFL/CFGNormalizer.h +0 -84
- package/SVF-osx/svf/include/include/CFL/CFLAlias.h +0 -176
- package/SVF-osx/svf/include/include/CFL/CFLBase.h +0 -115
- package/SVF-osx/svf/include/include/CFL/CFLData.h +0 -316
- package/SVF-osx/svf/include/include/CFL/CFLDataBuilder.h +0 -91
- package/SVF-osx/svf/include/include/CFL/CFLGramGraphChecker.h +0 -74
- package/SVF-osx/svf/include/include/CFL/CFLGrammar.h +0 -468
- package/SVF-osx/svf/include/include/CFL/CFLGrammar.txt +0 -15
- package/SVF-osx/svf/include/include/CFL/CFLGraphBuilder.h +0 -193
- package/SVF-osx/svf/include/include/CFL/CFLSolver.h +0 -136
- package/SVF-osx/svf/include/include/CFL/CFLStat.h +0 -67
- package/SVF-osx/svf/include/include/CFL/CFLVF.h +0 -65
- package/SVF-osx/svf/include/include/CFL/GrammarBuilder.h +0 -100
- package/SVF-osx/svf/include/include/CFL/PEGGrammar.txt +0 -11
- package/SVF-osx/svf/include/include/CFL/VFG.txt +0 -7
- package/SVF-osx/svf/include/include/DDA/ContextDDA.h +0 -230
- package/SVF-osx/svf/include/include/DDA/DDAClient.h +0 -168
- package/SVF-osx/svf/include/include/DDA/DDAPass.h +0 -99
- package/SVF-osx/svf/include/include/DDA/DDAStat.h +0 -138
- package/SVF-osx/svf/include/include/DDA/DDAVFSolver.h +0 -789
- package/SVF-osx/svf/include/include/DDA/FlowDDA.h +0 -178
- package/SVF-osx/svf/include/include/FastCluster/LICENSE.TXT +0 -13
- package/SVF-osx/svf/include/include/FastCluster/fastcluster.h +0 -80
- package/SVF-osx/svf/include/include/Graphs/CFLGraph.h +0 -215
- package/SVF-osx/svf/include/include/Graphs/CHG.h +0 -351
- package/SVF-osx/svf/include/include/Graphs/ConsG.h +0 -408
- package/SVF-osx/svf/include/include/Graphs/ConsGEdge.h +0 -353
- package/SVF-osx/svf/include/include/Graphs/ConsGNode.h +0 -391
- package/SVF-osx/svf/include/include/Graphs/DOTGraphTraits.h +0 -188
- package/SVF-osx/svf/include/include/Graphs/GenericGraph.h +0 -620
- package/SVF-osx/svf/include/include/Graphs/GraphPrinter.h +0 -111
- package/SVF-osx/svf/include/include/Graphs/GraphTraits.h +0 -150
- package/SVF-osx/svf/include/include/Graphs/GraphWriter.h +0 -380
- package/SVF-osx/svf/include/include/Graphs/ICFG.h +0 -331
- package/SVF-osx/svf/include/include/Graphs/ICFGEdge.h +0 -264
- package/SVF-osx/svf/include/include/Graphs/ICFGNode.h +0 -523
- package/SVF-osx/svf/include/include/Graphs/ICFGStat.h +0 -164
- package/SVF-osx/svf/include/include/Graphs/IRGraph.h +0 -243
- package/SVF-osx/svf/include/include/Graphs/PTACallGraph.h +0 -471
- package/SVF-osx/svf/include/include/Graphs/SVFG.h +0 -490
- package/SVF-osx/svf/include/include/Graphs/SVFGEdge.h +0 -237
- package/SVF-osx/svf/include/include/Graphs/SVFGNode.h +0 -513
- package/SVF-osx/svf/include/include/Graphs/SVFGOPT.h +0 -362
- package/SVF-osx/svf/include/include/Graphs/SVFGStat.h +0 -273
- package/SVF-osx/svf/include/include/Graphs/ThreadCallGraph.h +0 -422
- package/SVF-osx/svf/include/include/Graphs/VFG.h +0 -664
- package/SVF-osx/svf/include/include/Graphs/VFGEdge.h +0 -295
- package/SVF-osx/svf/include/include/Graphs/VFGNode.h +0 -1197
- package/SVF-osx/svf/include/include/MSSA/MSSAMuChi.h +0 -722
- package/SVF-osx/svf/include/include/MSSA/MemPartition.h +0 -169
- package/SVF-osx/svf/include/include/MSSA/MemRegion.h +0 -491
- package/SVF-osx/svf/include/include/MSSA/MemSSA.h +0 -452
- package/SVF-osx/svf/include/include/MSSA/SVFGBuilder.h +0 -98
- package/SVF-osx/svf/include/include/MTA/FSMPTA.h +0 -270
- package/SVF-osx/svf/include/include/MTA/LockAnalysis.h +0 -517
- package/SVF-osx/svf/include/include/MTA/MHP.h +0 -565
- package/SVF-osx/svf/include/include/MTA/MTA.h +0 -101
- package/SVF-osx/svf/include/include/MTA/MTAResultValidator.h +0 -448
- package/SVF-osx/svf/include/include/MTA/MTAStat.h +0 -74
- package/SVF-osx/svf/include/include/MTA/PCG.h +0 -229
- package/SVF-osx/svf/include/include/MTA/TCT.h +0 -599
- package/SVF-osx/svf/include/include/MemoryModel/AbstractPointsToDS.h +0 -316
- package/SVF-osx/svf/include/include/MemoryModel/ConditionalPT.h +0 -878
- package/SVF-osx/svf/include/include/MemoryModel/LocationSet.h +0 -148
- package/SVF-osx/svf/include/include/MemoryModel/MutablePointsToDS.h +0 -1025
- package/SVF-osx/svf/include/include/MemoryModel/PersistentPointsToCache.h +0 -463
- package/SVF-osx/svf/include/include/MemoryModel/PersistentPointsToDS.h +0 -955
- package/SVF-osx/svf/include/include/MemoryModel/PointerAnalysis.h +0 -452
- package/SVF-osx/svf/include/include/MemoryModel/PointerAnalysisImpl.h +0 -590
- package/SVF-osx/svf/include/include/MemoryModel/PointsTo.h +0 -255
- package/SVF-osx/svf/include/include/MemoryModel/SVFLoop.h +0 -164
- package/SVF-osx/svf/include/include/SABER/DoubleFreeChecker.h +0 -76
- package/SVF-osx/svf/include/include/SABER/FileChecker.h +0 -82
- package/SVF-osx/svf/include/include/SABER/LeakChecker.h +0 -124
- package/SVF-osx/svf/include/include/SABER/ProgSlice.h +0 -313
- package/SVF-osx/svf/include/include/SABER/SaberCheckerAPI.h +0 -166
- package/SVF-osx/svf/include/include/SABER/SaberCondAllocator.h +0 -310
- package/SVF-osx/svf/include/include/SABER/SaberSVFGBuilder.h +0 -104
- package/SVF-osx/svf/include/include/SABER/SrcSnkDDA.h +0 -321
- package/SVF-osx/svf/include/include/SABER/SrcSnkSolver.h +0 -186
- package/SVF-osx/svf/include/include/SVFIR/PAGBuilderFromFile.h +0 -80
- package/SVF-osx/svf/include/include/SVFIR/SVFIR.h +0 -659
- package/SVF-osx/svf/include/include/SVFIR/SVFModule.h +0 -233
- package/SVF-osx/svf/include/include/SVFIR/SVFStatements.h +0 -1136
- package/SVF-osx/svf/include/include/SVFIR/SVFType.h +0 -527
- package/SVF-osx/svf/include/include/SVFIR/SVFValue.h +0 -1120
- package/SVF-osx/svf/include/include/SVFIR/SVFVariables.h +0 -721
- package/SVF-osx/svf/include/include/SVFIR/SymbolTableInfo.h +0 -597
- package/SVF-osx/svf/include/include/Util/Annotator.h +0 -180
- package/SVF-osx/svf/include/include/Util/BitVector.h +0 -55
- package/SVF-osx/svf/include/include/Util/CallGraphBuilder.h +0 -74
- package/SVF-osx/svf/include/include/Util/Casting.h +0 -426
- package/SVF-osx/svf/include/include/Util/CommandLine.h +0 -530
- package/SVF-osx/svf/include/include/Util/CoreBitVector.h +0 -214
- package/SVF-osx/svf/include/include/Util/CppUtil.h +0 -81
- package/SVF-osx/svf/include/include/Util/CxtStmt.h +0 -501
- package/SVF-osx/svf/include/include/Util/DPItem.h +0 -618
- package/SVF-osx/svf/include/include/Util/ExtAPI.h +0 -339
- package/SVF-osx/svf/include/include/Util/ExtAPI.json +0 -5707
- package/SVF-osx/svf/include/include/Util/GraphReachSolver.h +0 -186
- package/SVF-osx/svf/include/include/Util/NodeIDAllocator.h +0 -194
- package/SVF-osx/svf/include/include/Util/Options.h +0 -266
- package/SVF-osx/svf/include/include/Util/PTAStat.h +0 -65
- package/SVF-osx/svf/include/include/Util/SCC.h +0 -354
- package/SVF-osx/svf/include/include/Util/SVFStat.h +0 -100
- package/SVF-osx/svf/include/include/Util/SVFUtil.h +0 -660
- package/SVF-osx/svf/include/include/Util/SparseBitVector.h +0 -1202
- package/SVF-osx/svf/include/include/Util/ThreadAPI.h +0 -330
- package/SVF-osx/svf/include/include/Util/WorkList.h +0 -317
- package/SVF-osx/svf/include/include/Util/Z3Expr.h +0 -318
- package/SVF-osx/svf/include/include/Util/cJSON.h +0 -300
- package/SVF-osx/svf/include/include/Util/iterator.h +0 -407
- package/SVF-osx/svf/include/include/Util/iterator_range.h +0 -76
- package/SVF-osx/svf/include/include/WPA/Andersen.h +0 -416
- package/SVF-osx/svf/include/include/WPA/AndersenPWC.h +0 -160
- package/SVF-osx/svf/include/include/WPA/CSC.h +0 -95
- package/SVF-osx/svf/include/include/WPA/FlowSensitive.h +0 -317
- package/SVF-osx/svf/include/include/WPA/Steensgaard.h +0 -126
- package/SVF-osx/svf/include/include/WPA/TypeAnalysis.h +0 -83
- package/SVF-osx/svf/include/include/WPA/VersionedFlowSensitive.h +0 -287
- package/SVF-osx/svf/include/include/WPA/WPAFSSolver.h +0 -254
- package/SVF-osx/svf/include/include/WPA/WPAPass.h +0 -119
- package/SVF-osx/svf/include/include/WPA/WPASolver.h +0 -205
- package/SVF-osx/svf/include/include/WPA/WPAStat.h +0 -222
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/BasicTypes.h +0 -250
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/BreakConstantExpr.h +0 -94
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/CHGBuilder.h +0 -73
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/DCHG.h +0 -484
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/GEPTypeBridgeIterator.h +0 -183
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/ICFGBuilder.h +0 -106
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMLoopAnalysis.h +0 -61
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMModule.h +0 -360
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMUtil.h +0 -466
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/SVFIRBuilder.h +0 -417
- package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/SymbolTableBuilder.h +0 -110
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
//===- ExtAPI.h -- External functions -----------------------------------------//
|
|
2
|
-
//
|
|
3
|
-
// SVF: Static Value-Flow Analysis
|
|
4
|
-
//
|
|
5
|
-
// Copyright (C) <2013-2017> <Yulei Sui>
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
// This program is free software: you can redistribute it and/or modify
|
|
9
|
-
// it under the terms of the GNU General Public License as published by
|
|
10
|
-
// the Free Software Foundation, either version 3 of the License, or
|
|
11
|
-
// (at your option) any later version.
|
|
12
|
-
|
|
13
|
-
// This program is distributed in the hope that it will be useful,
|
|
14
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
-
// GNU General Public License for more details.
|
|
17
|
-
|
|
18
|
-
// You should have received a copy of the GNU General Public License
|
|
19
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
-
//
|
|
21
|
-
//===----------------------------------------------------------------------===//
|
|
22
|
-
|
|
23
|
-
/*
|
|
24
|
-
* ExtAPI.h
|
|
25
|
-
*
|
|
26
|
-
* Created on: July 1, 2022
|
|
27
|
-
* Author: Shuangxiang Kan
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
#ifndef __ExtAPI_H
|
|
31
|
-
#define __ExtAPI_H
|
|
32
|
-
|
|
33
|
-
#include "SVFIR/SVFValue.h"
|
|
34
|
-
#include "Util/cJSON.h"
|
|
35
|
-
#include "Util/config.h"
|
|
36
|
-
#include <string>
|
|
37
|
-
#include <map>
|
|
38
|
-
|
|
39
|
-
#define EXTAPI_JSON_PATH "svf/include/Util/ExtAPI.json"
|
|
40
|
-
#define JSON_OPT_OVERWRITE "overwrite_app_function"
|
|
41
|
-
#define JSON_OPT_FUNCTIONTYPE "type"
|
|
42
|
-
|
|
43
|
-
namespace SVF
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
/*
|
|
47
|
-
|
|
48
|
-
** Specifications in ExtAPI.json
|
|
49
|
-
|
|
50
|
-
**** Overview of the Specification Language
|
|
51
|
-
The specification language of external functions is based on the JSON format. And every function defined by the Specification Language is an object that represents the specification rules. These Specification Language objects for functions contain four parts:
|
|
52
|
-
1. the signature of the function, (Mandatory)
|
|
53
|
-
2. the type of the function, (Mandatory)
|
|
54
|
-
3. the switch that controls whether the specification rules defined in the ExtAPI.json overwrite the functions defined in the user code, (Mandatory)
|
|
55
|
-
4. the side-effect of the function. (Optional)
|
|
56
|
-
|
|
57
|
-
*** [1] the signature of the function (Mandatory)
|
|
58
|
-
"return": return value type (Only care about whether the return value is a pointer during analysis)
|
|
59
|
-
"argument": argument types (Only care about the number of arguments during analysis)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*** [2] the type of the function (Mandatory)
|
|
63
|
-
Function type represents the properties of the function.
|
|
64
|
-
For example,
|
|
65
|
-
"EFT_ALLOC" represents if this external function allocates a new object and assigns it to one of its arguments,
|
|
66
|
-
For the selection of function type and a more detailed explanation, please refer to the definition of enum *extType* in ExtAPI.h.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
*** [3] the switch that controls whether the specification rules defined in the ExtAPI.json overwrite the functions defined in the user code (Mandatory)
|
|
70
|
-
The switch *overwrite_app_function* controls whether the specification rules defined in the ExtAPI.json overwrite the functions defined in the user code (e.g., CPP files). When the switch *overwrite_app_function* is set to a value of 1, SVF will use the specification rules in ExtAPI.json to conduct the analysis and ignore the user-defined functions in the input CPP/bc files.
|
|
71
|
-
overwrite_app_function = 0: Analyze the user-defined functions.
|
|
72
|
-
overwrite_app_function = 1: Use specifications in ExtAPI.json to overwrite the user-defined functions.
|
|
73
|
-
|
|
74
|
-
For example, The following is the code to be analyzed, which has a foo() function,
|
|
75
|
-
--------------------------------------------------------
|
|
76
|
-
char* foo(char* arg)
|
|
77
|
-
{
|
|
78
|
-
return arg;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
int main()
|
|
82
|
-
{
|
|
83
|
-
char* ret = foo("abc");
|
|
84
|
-
return 0;
|
|
85
|
-
}
|
|
86
|
-
--------------------------------------------------------
|
|
87
|
-
function foo() has a definition, but you want SVF not to use this definition when analyzing, and you think foo () should do nothing, Then you can add a new entry in ExtAPI.json, and set *"overwrite_app_function": 1*
|
|
88
|
-
"foo": {
|
|
89
|
-
"return": "char*",
|
|
90
|
-
"arguments": "(char*)",
|
|
91
|
-
"type": "EFT_NOOP",
|
|
92
|
-
"overwrite_app_function": 1
|
|
93
|
-
}
|
|
94
|
-
When SVF is analyzing foo(), SVF will use the entry you defined in ExtAPI.json, and ignore the actual definition of foo() in the program.
|
|
95
|
-
|
|
96
|
-
Most of the time, overwrite_app_function is 0, unless you want to redefine a function.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
*** [4] the side-effect of the function (Optional, if there is no side-effect of that function)
|
|
100
|
-
Function side-effect indicate the relationships between input and output,
|
|
101
|
-
mainly between function parameters or between parameters and return values after the execution.
|
|
102
|
-
For example,
|
|
103
|
-
"CopyStmt": ["Arg2", "Ret"] indicates that after this external function is executed, the value of the 2nd parameter is copied into the return value.
|
|
104
|
-
|
|
105
|
-
For operators of function operation, there are the following options:
|
|
106
|
-
"AddrStmt",
|
|
107
|
-
"CopyStmt",
|
|
108
|
-
"LoadStmt"
|
|
109
|
-
"StoreStmt",
|
|
110
|
-
"GepStmt",
|
|
111
|
-
"BinaryOPStmt",
|
|
112
|
-
"UnaryOPStmt",
|
|
113
|
-
"CmpStmt",
|
|
114
|
-
"memset_like": the function has similar side-effect to function "void *memset(void *str, int c, size_t n)",
|
|
115
|
-
"memcpy_like": the function has similar side-effect to function "void *memcpy(void *dest, const void * src, size_t n)",
|
|
116
|
-
"funptr_ops": the function has similar side-effect to function "void *dlsym(void *handle, const char *symbol)",
|
|
117
|
-
"Rb_tree_ops: the function has similar side-effect to function "_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_".
|
|
118
|
-
|
|
119
|
-
For operands of function operation,, there are the following options:
|
|
120
|
-
"Arg": represents a parameter,
|
|
121
|
-
"Obj": represents a object,
|
|
122
|
-
"Ret": represents a return value,
|
|
123
|
-
"Dummy": represents a dummy node.
|
|
124
|
-
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
class ExtAPI
|
|
128
|
-
{
|
|
129
|
-
public:
|
|
130
|
-
|
|
131
|
-
// External Function types
|
|
132
|
-
// Assume a call in the form LHS= F(arg0, arg1, arg2, arg3).
|
|
133
|
-
enum extType
|
|
134
|
-
{
|
|
135
|
-
EFT_NOOP = 0, // no effect on pointers
|
|
136
|
-
EFT_ALLOC, // returns a ptr to a newly allocated object
|
|
137
|
-
EFT_REALLOC, // like L_A0 if arg0 is a non-null ptr, else ALLOC
|
|
138
|
-
EFT_FREE, // free memory arg0 and all pointers passing into free function
|
|
139
|
-
EFT_FREE_MULTILEVEL, // any argument with 2-level pointer passing too a free wrapper function e.g., XFree(void**) which frees memory for void* and void**
|
|
140
|
-
EFT_NOSTRUCT_ALLOC, // like ALLOC but only allocates non-struct data
|
|
141
|
-
EFT_STAT, // retval points to an unknown static var X
|
|
142
|
-
EFT_STAT2, // ret -> X -> Y (X, Y - external static vars)
|
|
143
|
-
EFT_L_A0, // copies arg0, arg1, or arg2 into LHS
|
|
144
|
-
EFT_L_A1,
|
|
145
|
-
EFT_L_A2,
|
|
146
|
-
EFT_L_A8,
|
|
147
|
-
EFT_L_A0__A0R_A1, // stores arg1 into *arg0 and returns arg0 (currently only for memset)
|
|
148
|
-
EFT_L_A0__A0R_A1R, // copies the data that arg1 points to into the location
|
|
149
|
-
EFT_L_A1__FunPtr, // obtain the address of a symbol based on the arg1 (char*) and parse a function to LHS (e.g., void *dlsym(void *handle, char *funname);)
|
|
150
|
-
// arg0 points to; note that several fields may be
|
|
151
|
-
// copied at once if both point to structs.
|
|
152
|
-
// Returns arg0.
|
|
153
|
-
EFT_A1R_A0R, // copies *arg0 into *arg1, with non-ptr return
|
|
154
|
-
EFT_A3R_A1R_NS, // copies *arg1 into *arg3 (non-struct copy only)
|
|
155
|
-
EFT_A1R_A0, // stores arg0 into *arg1
|
|
156
|
-
EFT_A2R_A1, // stores arg1 into *arg2
|
|
157
|
-
EFT_A4R_A1, // stores arg1 into *arg4
|
|
158
|
-
EFT_L_A0__A2R_A0, // stores arg0 into *arg2 and returns it
|
|
159
|
-
EFT_L_A0__A1_A0, // store arg1 into arg0's base and returns arg0
|
|
160
|
-
EFT_A0R_NEW, // stores a pointer to an allocated object in *arg0
|
|
161
|
-
EFT_A1R_NEW, // as above, into *arg1, etc.
|
|
162
|
-
EFT_A2R_NEW,
|
|
163
|
-
EFT_A4R_NEW,
|
|
164
|
-
EFT_A11R_NEW,
|
|
165
|
-
EFT_STD_RB_TREE_INSERT_AND_REBALANCE, // Some complex effects
|
|
166
|
-
EFT_STD_RB_TREE_INCREMENT, // Some complex effects
|
|
167
|
-
EFT_STD_LIST_HOOK, // Some complex effects
|
|
168
|
-
|
|
169
|
-
CPP_EFT_A0R_A1, // stores arg1 into *arg0
|
|
170
|
-
CPP_EFT_A0R_A1R, // copies *arg1 into *arg0
|
|
171
|
-
CPP_EFT_A1R, // load arg1
|
|
172
|
-
EFT_CXA_BEGIN_CATCH, //__cxa_begin_catch
|
|
173
|
-
CPP_EFT_DYNAMIC_CAST, // dynamic_cast
|
|
174
|
-
EFT_NULL // not found in the list
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
private:
|
|
178
|
-
|
|
179
|
-
std::map<std::string, extType> type_pair =
|
|
180
|
-
{
|
|
181
|
-
{"EFT_NOOP", EFT_NOOP},
|
|
182
|
-
{"EFT_ALLOC", EFT_ALLOC},
|
|
183
|
-
{"EFT_REALLOC", EFT_REALLOC},
|
|
184
|
-
{"EFT_FREE", EFT_FREE},
|
|
185
|
-
{"EFT_FREE_MULTILEVEL", EFT_FREE_MULTILEVEL},
|
|
186
|
-
{"EFT_NOSTRUCT_ALLOC", EFT_NOSTRUCT_ALLOC},
|
|
187
|
-
{"EFT_STAT", EFT_STAT},
|
|
188
|
-
{"EFT_STAT2", EFT_STAT2},
|
|
189
|
-
{"EFT_L_A0", EFT_L_A0},
|
|
190
|
-
{"EFT_L_A1", EFT_L_A1},
|
|
191
|
-
{"EFT_L_A2", EFT_L_A2},
|
|
192
|
-
{"EFT_L_A8", EFT_L_A8},
|
|
193
|
-
{"EFT_L_A0__A0R_A1", EFT_L_A0__A0R_A1},
|
|
194
|
-
{"EFT_L_A0__A0R_A1R", EFT_L_A0__A0R_A1R},
|
|
195
|
-
{"EFT_L_A1__FunPtr", EFT_L_A1__FunPtr},
|
|
196
|
-
{"EFT_A1R_A0R", EFT_A1R_A0R},
|
|
197
|
-
{"EFT_A3R_A1R_NS", EFT_A3R_A1R_NS},
|
|
198
|
-
{"EFT_A1R_A0", EFT_A1R_A0},
|
|
199
|
-
{"EFT_A2R_A1", EFT_A2R_A1},
|
|
200
|
-
{"EFT_A4R_A1", EFT_A4R_A1},
|
|
201
|
-
{"EFT_L_A0__A2R_A0", EFT_L_A0__A2R_A0},
|
|
202
|
-
{"EFT_L_A0__A1_A0", EFT_L_A0__A1_A0},
|
|
203
|
-
{"EFT_A0R_NEW", EFT_A0R_NEW},
|
|
204
|
-
{"EFT_A1R_NEW", EFT_A1R_NEW},
|
|
205
|
-
{"EFT_A2R_NEW", EFT_A2R_NEW},
|
|
206
|
-
{"EFT_A4R_NEW", EFT_A4R_NEW},
|
|
207
|
-
{"EFT_A11R_NEW", EFT_A11R_NEW},
|
|
208
|
-
{"EFT_STD_RB_TREE_INSERT_AND_REBALANCE", EFT_STD_RB_TREE_INSERT_AND_REBALANCE},
|
|
209
|
-
{"EFT_STD_RB_TREE_INCREMENT", EFT_STD_RB_TREE_INCREMENT},
|
|
210
|
-
{"EFT_STD_LIST_HOOK", EFT_STD_LIST_HOOK},
|
|
211
|
-
{"CPP_EFT_A0R_A1R", CPP_EFT_A0R_A1R},
|
|
212
|
-
{"CPP_EFT_A1R", CPP_EFT_A1R},
|
|
213
|
-
{"EFT_CXA_BEGIN_CATCH", EFT_CXA_BEGIN_CATCH},
|
|
214
|
-
{"CPP_EFT_DYNAMIC_CAST", CPP_EFT_DYNAMIC_CAST},
|
|
215
|
-
{"", EFT_NULL}
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
static ExtAPI *extOp;
|
|
219
|
-
|
|
220
|
-
// Store specifications of external functions in ExtAPI.json file
|
|
221
|
-
static cJSON *root;
|
|
222
|
-
|
|
223
|
-
ExtAPI() = default;
|
|
224
|
-
|
|
225
|
-
public:
|
|
226
|
-
|
|
227
|
-
class Operation
|
|
228
|
-
{
|
|
229
|
-
public:
|
|
230
|
-
Operation() {};
|
|
231
|
-
|
|
232
|
-
Operation(std::string opn, std::vector<std::string> varstr) : op(opn), operandStr(varstr) {};
|
|
233
|
-
|
|
234
|
-
std::string getOperator()
|
|
235
|
-
{
|
|
236
|
-
return op;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
std::vector<std::string> getOperandStr()
|
|
240
|
-
{
|
|
241
|
-
return operandStr;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
std::vector<NodeID> &getOperands()
|
|
245
|
-
{
|
|
246
|
-
return operands;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
void setOperands(std::vector<NodeID> vars)
|
|
250
|
-
{
|
|
251
|
-
operands = vars;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
private:
|
|
255
|
-
std::string op;
|
|
256
|
-
std::vector<std::string> operandStr;
|
|
257
|
-
std::vector<NodeID> operands;
|
|
258
|
-
};
|
|
259
|
-
static ExtAPI *getExtAPI(const std::string& = "");
|
|
260
|
-
|
|
261
|
-
static void destory();
|
|
262
|
-
|
|
263
|
-
// Add an entry with the specified fields to the ExtAPI, which will be reflected immediately by further ExtAPI queries
|
|
264
|
-
void add_entry(const char* funName, extType type, bool overwrite_app_function);
|
|
265
|
-
|
|
266
|
-
// Get numeric index of the argument in external function
|
|
267
|
-
u32_t getArgPos(const std::string& s);
|
|
268
|
-
|
|
269
|
-
// return value >= 0 is an argument node
|
|
270
|
-
// return value = -1 is an inst node
|
|
271
|
-
// return value = -2 is a Dummy node
|
|
272
|
-
// return value = -3 is an object node
|
|
273
|
-
// return value = -4 is an offset
|
|
274
|
-
// return value = -5 is an illegal operand format
|
|
275
|
-
s32_t getNodeIDType(const std::string& s);
|
|
276
|
-
|
|
277
|
-
// Get the corresponding name in ext_t, e.g. "EXT_ADDR" in {"addr", EXT_ADDR},
|
|
278
|
-
std::string get_opName(const std::string& s);
|
|
279
|
-
// opposite for extType
|
|
280
|
-
const std::string& extType_toString(extType type);
|
|
281
|
-
|
|
282
|
-
// Get external function name, e.g "memcpy"
|
|
283
|
-
std::string get_name(const SVFFunction *F);
|
|
284
|
-
|
|
285
|
-
// Get arguments of the operation, e.g. ["A1R", "A0", "A2"]
|
|
286
|
-
std::vector<std::string> get_opArgs(const cJSON *value);
|
|
287
|
-
|
|
288
|
-
// Get specifications of external functions in ExtAPI.json file
|
|
289
|
-
cJSON *get_FunJson(const std::string &funName);
|
|
290
|
-
|
|
291
|
-
// Get all operations of an extern function
|
|
292
|
-
std::vector<Operation> getAllOperations(std::string funName);
|
|
293
|
-
|
|
294
|
-
// Get property of the operation, e.g. "EFT_A1R_A0R"
|
|
295
|
-
extType get_type(const SVF::SVFFunction *callee);
|
|
296
|
-
extType get_type(const std::string& funName);
|
|
297
|
-
|
|
298
|
-
// Get priority of he function, return value
|
|
299
|
-
// 0: Apply user-defined functions
|
|
300
|
-
// 1: Apply function specification in ExtAPI.json
|
|
301
|
-
u32_t isOverwrittenAppFunction(const SVF::SVFFunction *callee);
|
|
302
|
-
|
|
303
|
-
// Does (F) have a static var X (unavailable to us) that its return points to?
|
|
304
|
-
bool has_static(const SVFFunction *F);
|
|
305
|
-
|
|
306
|
-
// Assuming hasStatic(F), does (F) have a second static Y where X -> Y?
|
|
307
|
-
bool has_static2(const SVFFunction *F);
|
|
308
|
-
|
|
309
|
-
// Does (F) allocate a new object and return it?
|
|
310
|
-
bool is_alloc(const SVFFunction *F);
|
|
311
|
-
|
|
312
|
-
// Does (F) allocate a new object and assign it to one of its arguments?
|
|
313
|
-
bool is_arg_alloc(const SVFFunction *F);
|
|
314
|
-
|
|
315
|
-
// Get the position of argument which holds the new object
|
|
316
|
-
s32_t get_alloc_arg_pos(const SVFFunction *F);
|
|
317
|
-
|
|
318
|
-
// Does (F) allocate only non-struct objects?
|
|
319
|
-
bool no_struct_alloc(const SVFFunction *F);
|
|
320
|
-
|
|
321
|
-
// Does (F) not free/release any memory?
|
|
322
|
-
bool is_dealloc(const SVFFunction *F);
|
|
323
|
-
|
|
324
|
-
// Does (F) not do anything with the known pointers?
|
|
325
|
-
bool is_noop(const SVFFunction *F);
|
|
326
|
-
|
|
327
|
-
// Does (F) reallocate a new object?
|
|
328
|
-
bool is_realloc(const SVFFunction *F);
|
|
329
|
-
|
|
330
|
-
// Does (F) have the same return type(pointer or nonpointer) and same number of arguments
|
|
331
|
-
bool is_sameSignature(const SVFFunction *F);
|
|
332
|
-
|
|
333
|
-
// Should (F) be considered "external" (either not defined in the program
|
|
334
|
-
// or a user-defined version of a known alloc or no-op)?
|
|
335
|
-
bool is_ext(const SVFFunction *F);
|
|
336
|
-
};
|
|
337
|
-
} // End namespace SVF
|
|
338
|
-
|
|
339
|
-
#endif
|