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,448 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* MTAResultValidator.h
|
|
3
|
-
*
|
|
4
|
-
* Created on: 29/06/2015
|
|
5
|
-
* Author: Peng Di and Ding Ye
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#ifndef MTARESULTVALIDATOR_H_
|
|
9
|
-
#define MTARESULTVALIDATOR_H_
|
|
10
|
-
|
|
11
|
-
#include "MTA/MHP.h"
|
|
12
|
-
|
|
13
|
-
/*!
|
|
14
|
-
* Validate the result of context-sensitive analysis, including context-sensitive
|
|
15
|
-
* thread detection and thread interleaving.
|
|
16
|
-
*/
|
|
17
|
-
namespace SVF
|
|
18
|
-
{
|
|
19
|
-
typedef unsigned NodeID;
|
|
20
|
-
|
|
21
|
-
class MTAResultValidator
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
public:
|
|
25
|
-
typedef int INTERLEV_FLAG;
|
|
26
|
-
MTAResultValidator(MHP* mh) :
|
|
27
|
-
mhp(mh)
|
|
28
|
-
{
|
|
29
|
-
tcg = mhp->getThreadCallGraph();
|
|
30
|
-
tdAPI = tcg->getThreadAPI();
|
|
31
|
-
mod = mhp->getTCT()->getSVFModule();
|
|
32
|
-
}
|
|
33
|
-
// Destructor
|
|
34
|
-
~MTAResultValidator()
|
|
35
|
-
{
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Analysis
|
|
39
|
-
void analyze();
|
|
40
|
-
inline SVFModule* getModule() const
|
|
41
|
-
{
|
|
42
|
-
return mod;
|
|
43
|
-
}
|
|
44
|
-
protected:
|
|
45
|
-
|
|
46
|
-
/*
|
|
47
|
-
* Assistant functions
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
// Split string
|
|
51
|
-
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
|
|
52
|
-
std::vector<std::string> split(const std::string &s, char delim);
|
|
53
|
-
|
|
54
|
-
// Get special arguments of given call sites
|
|
55
|
-
NodeID getIntArg(const Instruction* inst, unsigned int arg_num);
|
|
56
|
-
std::vector<std::string> getStringArg(const Instruction* inst, unsigned int arg_num);
|
|
57
|
-
CallStrCxt getCxtArg(const Instruction* inst, unsigned int arg_num);
|
|
58
|
-
|
|
59
|
-
/*
|
|
60
|
-
* Get the previous LoadInst or StoreInst from Instruction "I" in the
|
|
61
|
-
* same BasicBlock. Return nullptr if none exists.
|
|
62
|
-
*/
|
|
63
|
-
const Instruction* getPreviousMemoryAccessInst(const Instruction* I);
|
|
64
|
-
|
|
65
|
-
// Compare two cxts
|
|
66
|
-
bool matchCxt(const CallStrCxt cxt1, const CallStrCxt cxt2) const;
|
|
67
|
-
|
|
68
|
-
// Dump calling context information
|
|
69
|
-
void dumpCxt(const CallStrCxt& cxt) const;
|
|
70
|
-
|
|
71
|
-
void dumpInterlev(NodeBS& lev);
|
|
72
|
-
|
|
73
|
-
// Get the validation result string of a single validation scenario.
|
|
74
|
-
inline std::string getOutput(const char *scenario, bool analysisRes);
|
|
75
|
-
inline std::string getOutputforInterlevAnalysis(const char *scenario, INTERLEV_FLAG analysisRes);
|
|
76
|
-
|
|
77
|
-
/*
|
|
78
|
-
* Collect the callsite targets for validations.
|
|
79
|
-
* The targets are labeled by "cs1:", "cs2:"... that are the names of its basic blocks.
|
|
80
|
-
* The collected targets are stored in csnumToInstMap that maps label "cs1" to its Callsite.
|
|
81
|
-
*/
|
|
82
|
-
bool collectCallsiteTargets();
|
|
83
|
-
|
|
84
|
-
/*
|
|
85
|
-
* Collect the CxtThread targets for validations.
|
|
86
|
-
* The collected targets are stored in vthdToCxt that maps vthd to cxt.
|
|
87
|
-
*/
|
|
88
|
-
bool collectCxtThreadTargets();
|
|
89
|
-
|
|
90
|
-
/*
|
|
91
|
-
* Collect TCT targets for validations.
|
|
92
|
-
* The collected targets are stored in rthdToChildren.
|
|
93
|
-
*/
|
|
94
|
-
bool collectTCTTargets();
|
|
95
|
-
|
|
96
|
-
/*
|
|
97
|
-
* Collect the thread interleaving targets for validations.
|
|
98
|
-
* The collected targets are stored in instToTSMap and threadStmtToInterLeaving.
|
|
99
|
-
*/
|
|
100
|
-
bool collectInterleavingTargets();
|
|
101
|
-
|
|
102
|
-
/*
|
|
103
|
-
* Perform validation for Cxtthread.
|
|
104
|
-
* If correct, the validator maps given thread vthd to static CxtThread rthd stored in vthdTorthd.
|
|
105
|
-
*/
|
|
106
|
-
bool validateCxtThread();
|
|
107
|
-
|
|
108
|
-
/*
|
|
109
|
-
* Perform validation for TCT.
|
|
110
|
-
*/
|
|
111
|
-
bool validateTCT();
|
|
112
|
-
|
|
113
|
-
/*
|
|
114
|
-
* Perform validation for thread interleaving.
|
|
115
|
-
*/
|
|
116
|
-
INTERLEV_FLAG validateInterleaving();
|
|
117
|
-
|
|
118
|
-
private:
|
|
119
|
-
|
|
120
|
-
typedef Map<NodeID, const SVFInstruction*> csnumToInst;
|
|
121
|
-
typedef Map<NodeID, CallStrCxt> vthdToCxtMap;
|
|
122
|
-
typedef Map<NodeID, NodeID> vthdTorthdMap;
|
|
123
|
-
typedef Map<NodeID, NodeID> rthdTovthdMap;
|
|
124
|
-
|
|
125
|
-
typedef Map<NodeID, Set<NodeID>> rthdToChildrenMap;
|
|
126
|
-
|
|
127
|
-
MHP::InstToThreadStmtSetMap instToTSMap; // Map a instruction to CxtThreadStmtSet
|
|
128
|
-
MHP::ThreadStmtToThreadInterleav threadStmtToInterLeaving; /// Map a statement to its thread interleavings
|
|
129
|
-
|
|
130
|
-
static constexpr char const *CXT_THREAD = "CXT_THREAD";
|
|
131
|
-
static constexpr char const *INTERLEV_ACCESS = "INTERLEV_ACCESS";
|
|
132
|
-
static constexpr char const *TCT_ACCESS = "TCT_ACCESS";
|
|
133
|
-
|
|
134
|
-
ThreadAPI* tdAPI;
|
|
135
|
-
ThreadCallGraph* tcg;
|
|
136
|
-
MHP* mhp;
|
|
137
|
-
vthdToCxtMap vthdToCxt;
|
|
138
|
-
vthdTorthdMap vthdTorthd;
|
|
139
|
-
rthdTovthdMap rthdTovthd;
|
|
140
|
-
csnumToInst csnumToInstMap;
|
|
141
|
-
rthdToChildrenMap rthdToChildren;
|
|
142
|
-
SVFModule* mod;
|
|
143
|
-
/// Constant INTERLEV_FLAG values
|
|
144
|
-
//@{
|
|
145
|
-
static const INTERLEV_FLAG INTERLEV_TRUE = 0x01;
|
|
146
|
-
static const INTERLEV_FLAG INTERLEV_IMPRECISE = 0x02;
|
|
147
|
-
static const INTERLEV_FLAG INTERLEV_UNSOUND = 0x04;
|
|
148
|
-
//@}
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/*!
|
|
154
|
-
* \brief Validate the result of concurrent analysis.
|
|
155
|
-
*
|
|
156
|
-
* The properties to validate of two memory accesses include
|
|
157
|
-
* one or more of the following four:
|
|
158
|
-
* (1) they may accesses aliases;
|
|
159
|
-
* (2) they may happen in parallel;
|
|
160
|
-
* (3) they are protected by common lock(s);
|
|
161
|
-
* (4) they may cause a data race error.
|
|
162
|
-
* The ground truth are specified by the "RC_ACCESS" function in the target program.
|
|
163
|
-
*
|
|
164
|
-
* Users may utilize this result validator to validate their analysis with
|
|
165
|
-
* one or more of the four properties, by inheriting the RCResultValidator class.
|
|
166
|
-
* The corresponding virtual function of the desired property should be overridden.
|
|
167
|
-
*/
|
|
168
|
-
class RaceResultValidator
|
|
169
|
-
{
|
|
170
|
-
public:
|
|
171
|
-
typedef int RC_FLAG;
|
|
172
|
-
|
|
173
|
-
/*!
|
|
174
|
-
* Data structure for recording access pairs for the validation.
|
|
175
|
-
*/
|
|
176
|
-
class AccessPair
|
|
177
|
-
{
|
|
178
|
-
public:
|
|
179
|
-
/// Constructor
|
|
180
|
-
AccessPair(const Instruction* I1, const Instruction* I2,
|
|
181
|
-
const RC_FLAG flags) :
|
|
182
|
-
I1(I1), I2(I2), flags(flags)
|
|
183
|
-
{
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/// Class member access
|
|
187
|
-
//@{
|
|
188
|
-
inline bool isFlaged(const RC_FLAG flag) const
|
|
189
|
-
{
|
|
190
|
-
return flags & flag;
|
|
191
|
-
}
|
|
192
|
-
inline const Instruction* getInstruction1() const
|
|
193
|
-
{
|
|
194
|
-
return I1;
|
|
195
|
-
}
|
|
196
|
-
inline const Instruction* getInstruction2() const
|
|
197
|
-
{
|
|
198
|
-
return I2;
|
|
199
|
-
}
|
|
200
|
-
//@}
|
|
201
|
-
|
|
202
|
-
private:
|
|
203
|
-
const Instruction* I1;
|
|
204
|
-
const Instruction* I2;
|
|
205
|
-
RC_FLAG flags;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/// Destructor
|
|
209
|
-
virtual ~RaceResultValidator()
|
|
210
|
-
{
|
|
211
|
-
release();
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/// Initialization
|
|
215
|
-
void init(SVFModule* M)
|
|
216
|
-
{
|
|
217
|
-
this->M = M;
|
|
218
|
-
selectedValidationScenarios = RC_MHP | RC_ALIASES | RC_PROTECTED | RC_RACE;
|
|
219
|
-
collectValidationTargets();
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/// Analysis
|
|
223
|
-
void analyze()
|
|
224
|
-
{
|
|
225
|
-
validateAll();
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/// Release resource
|
|
229
|
-
void release()
|
|
230
|
-
{
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/// Check if the input program has validation target
|
|
234
|
-
inline bool hasValidationTarget() const
|
|
235
|
-
{
|
|
236
|
-
return !accessPairs.empty();
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
protected:
|
|
240
|
-
/// Interface to the specific validation properties.
|
|
241
|
-
/// Override one or more to implement your own analysis.
|
|
242
|
-
//@{
|
|
243
|
-
virtual bool mayAccessAliases(const Instruction* I1,
|
|
244
|
-
const Instruction* I2)
|
|
245
|
-
{
|
|
246
|
-
selectedValidationScenarios &= ~RC_ALIASES;
|
|
247
|
-
return true;
|
|
248
|
-
}
|
|
249
|
-
virtual bool mayHappenInParallel(const Instruction* I1,
|
|
250
|
-
const Instruction* I2)
|
|
251
|
-
{
|
|
252
|
-
selectedValidationScenarios &= ~RC_MHP;
|
|
253
|
-
return true;
|
|
254
|
-
}
|
|
255
|
-
virtual bool protectedByCommonLocks(const Instruction* I1,
|
|
256
|
-
const Instruction* I2)
|
|
257
|
-
{
|
|
258
|
-
selectedValidationScenarios &= ~RC_PROTECTED;
|
|
259
|
-
return true;
|
|
260
|
-
}
|
|
261
|
-
virtual bool mayHaveDataRace(const Instruction* I1,
|
|
262
|
-
const Instruction* I2)
|
|
263
|
-
{
|
|
264
|
-
selectedValidationScenarios &= ~RC_RACE;
|
|
265
|
-
return true;
|
|
266
|
-
}
|
|
267
|
-
//@}
|
|
268
|
-
|
|
269
|
-
/*!
|
|
270
|
-
* Collect the targets for validations.
|
|
271
|
-
* The targets should be memory access Instructions in pairs.
|
|
272
|
-
* The collected targets are stored in the member variable "accessPairs".
|
|
273
|
-
*/
|
|
274
|
-
void collectValidationTargets()
|
|
275
|
-
{
|
|
276
|
-
// Collect call sites of all RC_ACCESS function calls.
|
|
277
|
-
std::vector<const CallBase*> csInsts;
|
|
278
|
-
const Function* F = nullptr;
|
|
279
|
-
for (Module &M : LLVMModuleSet::getLLVMModuleSet()->getLLVMModules())
|
|
280
|
-
{
|
|
281
|
-
for(auto it = M.begin(); it != M.end(); it++)
|
|
282
|
-
{
|
|
283
|
-
const std::string fName = (*it).getName().str();
|
|
284
|
-
if(fName.find(RC_ACCESS) != std::string::npos)
|
|
285
|
-
{
|
|
286
|
-
F = &(*it);
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
if (!F) return;
|
|
292
|
-
|
|
293
|
-
for (Value::const_use_iterator it = F->use_begin(), ie =
|
|
294
|
-
F->use_end(); it != ie; ++it)
|
|
295
|
-
{
|
|
296
|
-
const Use *u = &*it;
|
|
297
|
-
const Value *user = u->getUser();
|
|
298
|
-
if(LLVMUtil::isCallSite(user))
|
|
299
|
-
{
|
|
300
|
-
const CallBase* csInst = LLVMUtil::getLLVMCallSite(user);
|
|
301
|
-
csInsts.push_back(csInst);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
assert(csInsts.size() % 2 == 0 && "We should have RC_ACCESS called in pairs.");
|
|
305
|
-
|
|
306
|
-
// Sort the validation sites according to their ids.
|
|
307
|
-
std::sort(csInsts.begin(), csInsts.end(), compare);
|
|
308
|
-
|
|
309
|
-
// Generate access pairs.
|
|
310
|
-
for (int i = 0, e = csInsts.size(); i != e;)
|
|
311
|
-
{
|
|
312
|
-
const CallBase* CI1 = csInsts[i++];
|
|
313
|
-
const CallBase* CI2 = csInsts[i++];
|
|
314
|
-
const ConstantInt* C = SVFUtil::dyn_cast<ConstantInt>(CI1->getArgOperand(1));
|
|
315
|
-
assert(C);
|
|
316
|
-
const Instruction* I1 = getPreviousMemoryAccessInst(CI1);
|
|
317
|
-
const Instruction* I2 = getPreviousMemoryAccessInst(CI2);
|
|
318
|
-
assert(I1 && I2 && "RC_ACCESS should be placed immediately after the target memory access.");
|
|
319
|
-
RC_FLAG flags = C->getZExtValue();
|
|
320
|
-
accessPairs.push_back(AccessPair(I1, I2, flags));
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/// Perform validation for all targets.
|
|
325
|
-
void validateAll()
|
|
326
|
-
{
|
|
327
|
-
SVFUtil::outs() << SVFUtil::pasMsg(" --- Analysis Result Validation ---\n");
|
|
328
|
-
|
|
329
|
-
// Iterate every memory access pair to perform the validation.
|
|
330
|
-
for (int i = 0, e = accessPairs.size(); i != e; ++i)
|
|
331
|
-
{
|
|
332
|
-
const AccessPair &ap = accessPairs[i];
|
|
333
|
-
const Instruction* I1 = ap.getInstruction1();
|
|
334
|
-
const Instruction* I2 = ap.getInstruction2();
|
|
335
|
-
|
|
336
|
-
bool mhp = mayHappenInParallel(I1, I2);
|
|
337
|
-
bool alias = mayAccessAliases(I1, I2);
|
|
338
|
-
bool protect = protectedByCommonLocks(I1, I2);
|
|
339
|
-
bool racy = mayHaveDataRace(I1, I2);
|
|
340
|
-
|
|
341
|
-
SVFUtil::outs() << "For the memory access pair at ("
|
|
342
|
-
<< LLVMModuleSet::getLLVMModuleSet()->getSVFValue(I1)->getSourceLoc() << ", "
|
|
343
|
-
<< LLVMModuleSet::getLLVMModuleSet()->getSVFValue(I2)->getSourceLoc() << ")\n";
|
|
344
|
-
if (selectedValidationScenarios & RC_ALIASES)
|
|
345
|
-
{
|
|
346
|
-
SVFUtil::outs() << "\t"
|
|
347
|
-
<< getOutput("ALIASES", alias, ap.isFlaged(RC_ALIASES))
|
|
348
|
-
<< "\n";
|
|
349
|
-
}
|
|
350
|
-
if (selectedValidationScenarios & RC_MHP)
|
|
351
|
-
{
|
|
352
|
-
SVFUtil::outs() << "\t"
|
|
353
|
-
<< getOutput("MHP", mhp, ap.isFlaged(RC_MHP)) << "\n";
|
|
354
|
-
}
|
|
355
|
-
if (selectedValidationScenarios & RC_PROTECTED)
|
|
356
|
-
{
|
|
357
|
-
SVFUtil::outs() << "\t"
|
|
358
|
-
<< getOutput("PROTECT", protect,
|
|
359
|
-
ap.isFlaged(RC_PROTECTED)) << "\n";
|
|
360
|
-
}
|
|
361
|
-
if (selectedValidationScenarios & RC_RACE)
|
|
362
|
-
{
|
|
363
|
-
SVFUtil::outs() << "\t"
|
|
364
|
-
<< getOutput("RACE", racy, ap.isFlaged(RC_RACE))
|
|
365
|
-
<< "\n";
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
SVFUtil::outs() << "\n";
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/// Get the validation result string of a single validation scenario.
|
|
373
|
-
inline std::string getOutput(const char *scenario,
|
|
374
|
-
bool analysisRes, bool expectedRes)
|
|
375
|
-
{
|
|
376
|
-
std::string ret(scenario);
|
|
377
|
-
ret += "\t";
|
|
378
|
-
if (expectedRes)
|
|
379
|
-
ret += " T: ";
|
|
380
|
-
else
|
|
381
|
-
ret += " F: ";
|
|
382
|
-
if (analysisRes == expectedRes)
|
|
383
|
-
ret += SVFUtil::sucMsg("SUCCESS");
|
|
384
|
-
else
|
|
385
|
-
ret += SVFUtil::errMsg("FAILURE");
|
|
386
|
-
return ret;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
private:
|
|
390
|
-
SVFModule* M;
|
|
391
|
-
std::vector<AccessPair> accessPairs;
|
|
392
|
-
RC_FLAG selectedValidationScenarios;
|
|
393
|
-
|
|
394
|
-
/*!
|
|
395
|
-
* Comparison function to sort the validation targets in ascending order of
|
|
396
|
-
* the validation id (i.e., the 1st argument of RC_ACCESS function call).
|
|
397
|
-
*/
|
|
398
|
-
static bool compare(const CallBase* CI1, const CallBase* CI2)
|
|
399
|
-
{
|
|
400
|
-
const Value *V1 = CI1->getArgOperand(0);
|
|
401
|
-
const Value *V2 = CI2->getArgOperand(0);
|
|
402
|
-
const ConstantInt* C1 = SVFUtil::dyn_cast<ConstantInt>(V1);
|
|
403
|
-
const ConstantInt* C2 = SVFUtil::dyn_cast<ConstantInt>(V2);
|
|
404
|
-
assert(0 != C1 && 0 != C2);
|
|
405
|
-
return C1->getZExtValue() < C2->getZExtValue();
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/*!
|
|
409
|
-
* Get the previous LoadInst or StoreInst from Instruction "I" in the
|
|
410
|
-
* same BasicBlock.
|
|
411
|
-
* Return nullptr if none exists.
|
|
412
|
-
*/
|
|
413
|
-
const Instruction* getPreviousMemoryAccessInst(
|
|
414
|
-
const Instruction* I)
|
|
415
|
-
{
|
|
416
|
-
I = I->getPrevNode();
|
|
417
|
-
while (I)
|
|
418
|
-
{
|
|
419
|
-
if (SVFUtil::isa<LoadInst, StoreInst>(I))
|
|
420
|
-
return I;
|
|
421
|
-
|
|
422
|
-
const SVFInstruction* inst = LLVMModuleSet::getLLVMModuleSet()->getSVFInstruction(I);
|
|
423
|
-
|
|
424
|
-
if (const SVFFunction *callee = SVFUtil::getCallee(inst))
|
|
425
|
-
{
|
|
426
|
-
if (callee->getName().find("llvm.memset") != std::string::npos)
|
|
427
|
-
return I;
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
I = I->getPrevNode();
|
|
431
|
-
}
|
|
432
|
-
return nullptr;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/// Constant RC_FLAG values
|
|
436
|
-
//@{
|
|
437
|
-
static const RC_FLAG RC_MHP = 0x01;
|
|
438
|
-
static const RC_FLAG RC_ALIASES = 0x02;
|
|
439
|
-
static const RC_FLAG RC_PROTECTED = 0x04;
|
|
440
|
-
static const RC_FLAG RC_RACE = 0x10;
|
|
441
|
-
//@}
|
|
442
|
-
|
|
443
|
-
/// The name of the function which is used to specify the ground truth
|
|
444
|
-
/// of the validation properties in the target program.
|
|
445
|
-
static constexpr char const *RC_ACCESS = "RC_ACCESS";
|
|
446
|
-
};
|
|
447
|
-
} // namespace SVF end
|
|
448
|
-
#endif /* MTARESULTVALIDATOR_H_ */
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
//===- MTAStat.h -- Statistics for MTA-------------//
|
|
2
|
-
//
|
|
3
|
-
// SVF: Static Value-Flow Analysis
|
|
4
|
-
//
|
|
5
|
-
// Copyright (C) <2013-> <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
|
-
* MTAStat.h
|
|
25
|
-
*
|
|
26
|
-
* Created on: Jun 23, 2015
|
|
27
|
-
* Author: Yulei Sui, Peng Di
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
#ifndef MTASTAT_H_
|
|
31
|
-
#define MTASTAT_H_
|
|
32
|
-
|
|
33
|
-
#include "Util/PTAStat.h"
|
|
34
|
-
|
|
35
|
-
namespace SVF
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
class Instruction;
|
|
39
|
-
class ThreadCallGraph;
|
|
40
|
-
class TCT;
|
|
41
|
-
class MHP;
|
|
42
|
-
class LockAnalysis;
|
|
43
|
-
class MTAAnnotator;
|
|
44
|
-
/*!
|
|
45
|
-
* Statistics for MTA
|
|
46
|
-
*/
|
|
47
|
-
class MTAStat : public PTAStat
|
|
48
|
-
{
|
|
49
|
-
|
|
50
|
-
public:
|
|
51
|
-
typedef Set<const Instruction*> InstSet;
|
|
52
|
-
|
|
53
|
-
/// Constructor
|
|
54
|
-
MTAStat():PTAStat(nullptr),TCTTime(0),MHPTime(0),FSMPTATime(0),AnnotationTime(0)
|
|
55
|
-
{
|
|
56
|
-
}
|
|
57
|
-
/// Statistics for thread call graph
|
|
58
|
-
void performThreadCallGraphStat(ThreadCallGraph* tcg);
|
|
59
|
-
/// Statistics for thread creation tree
|
|
60
|
-
void performTCTStat(TCT* tct);
|
|
61
|
-
/// Statistics for MHP statement pairs
|
|
62
|
-
void performMHPPairStat(MHP* mhp, LockAnalysis* lsa);
|
|
63
|
-
/// Statistics for annotation
|
|
64
|
-
//void performAnnotationStat(MTAAnnotator* anno);
|
|
65
|
-
|
|
66
|
-
double TCTTime;
|
|
67
|
-
double MHPTime;
|
|
68
|
-
double FSMPTATime;
|
|
69
|
-
double AnnotationTime;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
} // End namespace SVF
|
|
73
|
-
|
|
74
|
-
#endif /* MTASTAT_H_ */
|