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.
Files changed (292) hide show
  1. package/SVF-osx/Release-build/svf-llvm/libSvfLLVM.a +0 -0
  2. package/package.json +1 -1
  3. package/SVF-linux/svf/include/include/AbstractExecution/AbstractValue.h +0 -79
  4. package/SVF-linux/svf/include/include/AbstractExecution/AddressValue.h +0 -210
  5. package/SVF-linux/svf/include/include/AbstractExecution/ExeState.h +0 -223
  6. package/SVF-linux/svf/include/include/AbstractExecution/IntervalExeState.h +0 -425
  7. package/SVF-linux/svf/include/include/AbstractExecution/IntervalValue.h +0 -868
  8. package/SVF-linux/svf/include/include/AbstractExecution/NumericLiteral.h +0 -406
  9. package/SVF-linux/svf/include/include/AbstractExecution/RelExeState.h +0 -225
  10. package/SVF-linux/svf/include/include/AbstractExecution/RelationSolver.h +0 -68
  11. package/SVF-linux/svf/include/include/AbstractExecution/SVFIR2ItvExeState.h +0 -186
  12. package/SVF-linux/svf/include/include/AbstractExecution/WTO.h +0 -845
  13. package/SVF-linux/svf/include/include/CFL/CFGNormalizer.h +0 -84
  14. package/SVF-linux/svf/include/include/CFL/CFLAlias.h +0 -176
  15. package/SVF-linux/svf/include/include/CFL/CFLBase.h +0 -115
  16. package/SVF-linux/svf/include/include/CFL/CFLData.h +0 -316
  17. package/SVF-linux/svf/include/include/CFL/CFLDataBuilder.h +0 -91
  18. package/SVF-linux/svf/include/include/CFL/CFLGramGraphChecker.h +0 -74
  19. package/SVF-linux/svf/include/include/CFL/CFLGrammar.h +0 -468
  20. package/SVF-linux/svf/include/include/CFL/CFLGrammar.txt +0 -15
  21. package/SVF-linux/svf/include/include/CFL/CFLGraphBuilder.h +0 -193
  22. package/SVF-linux/svf/include/include/CFL/CFLSolver.h +0 -136
  23. package/SVF-linux/svf/include/include/CFL/CFLStat.h +0 -67
  24. package/SVF-linux/svf/include/include/CFL/CFLVF.h +0 -65
  25. package/SVF-linux/svf/include/include/CFL/GrammarBuilder.h +0 -100
  26. package/SVF-linux/svf/include/include/CFL/PEGGrammar.txt +0 -11
  27. package/SVF-linux/svf/include/include/CFL/VFG.txt +0 -7
  28. package/SVF-linux/svf/include/include/DDA/ContextDDA.h +0 -230
  29. package/SVF-linux/svf/include/include/DDA/DDAClient.h +0 -168
  30. package/SVF-linux/svf/include/include/DDA/DDAPass.h +0 -99
  31. package/SVF-linux/svf/include/include/DDA/DDAStat.h +0 -138
  32. package/SVF-linux/svf/include/include/DDA/DDAVFSolver.h +0 -789
  33. package/SVF-linux/svf/include/include/DDA/FlowDDA.h +0 -178
  34. package/SVF-linux/svf/include/include/FastCluster/LICENSE.TXT +0 -13
  35. package/SVF-linux/svf/include/include/FastCluster/fastcluster.h +0 -80
  36. package/SVF-linux/svf/include/include/Graphs/CFLGraph.h +0 -215
  37. package/SVF-linux/svf/include/include/Graphs/CHG.h +0 -351
  38. package/SVF-linux/svf/include/include/Graphs/ConsG.h +0 -408
  39. package/SVF-linux/svf/include/include/Graphs/ConsGEdge.h +0 -353
  40. package/SVF-linux/svf/include/include/Graphs/ConsGNode.h +0 -391
  41. package/SVF-linux/svf/include/include/Graphs/DOTGraphTraits.h +0 -188
  42. package/SVF-linux/svf/include/include/Graphs/GenericGraph.h +0 -620
  43. package/SVF-linux/svf/include/include/Graphs/GraphPrinter.h +0 -111
  44. package/SVF-linux/svf/include/include/Graphs/GraphTraits.h +0 -150
  45. package/SVF-linux/svf/include/include/Graphs/GraphWriter.h +0 -380
  46. package/SVF-linux/svf/include/include/Graphs/ICFG.h +0 -331
  47. package/SVF-linux/svf/include/include/Graphs/ICFGEdge.h +0 -264
  48. package/SVF-linux/svf/include/include/Graphs/ICFGNode.h +0 -523
  49. package/SVF-linux/svf/include/include/Graphs/ICFGStat.h +0 -164
  50. package/SVF-linux/svf/include/include/Graphs/IRGraph.h +0 -243
  51. package/SVF-linux/svf/include/include/Graphs/PTACallGraph.h +0 -471
  52. package/SVF-linux/svf/include/include/Graphs/SVFG.h +0 -490
  53. package/SVF-linux/svf/include/include/Graphs/SVFGEdge.h +0 -237
  54. package/SVF-linux/svf/include/include/Graphs/SVFGNode.h +0 -513
  55. package/SVF-linux/svf/include/include/Graphs/SVFGOPT.h +0 -362
  56. package/SVF-linux/svf/include/include/Graphs/SVFGStat.h +0 -273
  57. package/SVF-linux/svf/include/include/Graphs/ThreadCallGraph.h +0 -422
  58. package/SVF-linux/svf/include/include/Graphs/VFG.h +0 -664
  59. package/SVF-linux/svf/include/include/Graphs/VFGEdge.h +0 -295
  60. package/SVF-linux/svf/include/include/Graphs/VFGNode.h +0 -1197
  61. package/SVF-linux/svf/include/include/MSSA/MSSAMuChi.h +0 -722
  62. package/SVF-linux/svf/include/include/MSSA/MemPartition.h +0 -169
  63. package/SVF-linux/svf/include/include/MSSA/MemRegion.h +0 -491
  64. package/SVF-linux/svf/include/include/MSSA/MemSSA.h +0 -452
  65. package/SVF-linux/svf/include/include/MSSA/SVFGBuilder.h +0 -98
  66. package/SVF-linux/svf/include/include/MTA/FSMPTA.h +0 -270
  67. package/SVF-linux/svf/include/include/MTA/LockAnalysis.h +0 -517
  68. package/SVF-linux/svf/include/include/MTA/MHP.h +0 -565
  69. package/SVF-linux/svf/include/include/MTA/MTA.h +0 -101
  70. package/SVF-linux/svf/include/include/MTA/MTAResultValidator.h +0 -448
  71. package/SVF-linux/svf/include/include/MTA/MTAStat.h +0 -74
  72. package/SVF-linux/svf/include/include/MTA/PCG.h +0 -229
  73. package/SVF-linux/svf/include/include/MTA/TCT.h +0 -599
  74. package/SVF-linux/svf/include/include/MemoryModel/AbstractPointsToDS.h +0 -316
  75. package/SVF-linux/svf/include/include/MemoryModel/ConditionalPT.h +0 -878
  76. package/SVF-linux/svf/include/include/MemoryModel/LocationSet.h +0 -148
  77. package/SVF-linux/svf/include/include/MemoryModel/MutablePointsToDS.h +0 -1025
  78. package/SVF-linux/svf/include/include/MemoryModel/PersistentPointsToCache.h +0 -463
  79. package/SVF-linux/svf/include/include/MemoryModel/PersistentPointsToDS.h +0 -955
  80. package/SVF-linux/svf/include/include/MemoryModel/PointerAnalysis.h +0 -452
  81. package/SVF-linux/svf/include/include/MemoryModel/PointerAnalysisImpl.h +0 -590
  82. package/SVF-linux/svf/include/include/MemoryModel/PointsTo.h +0 -255
  83. package/SVF-linux/svf/include/include/MemoryModel/SVFLoop.h +0 -164
  84. package/SVF-linux/svf/include/include/SABER/DoubleFreeChecker.h +0 -76
  85. package/SVF-linux/svf/include/include/SABER/FileChecker.h +0 -82
  86. package/SVF-linux/svf/include/include/SABER/LeakChecker.h +0 -124
  87. package/SVF-linux/svf/include/include/SABER/ProgSlice.h +0 -313
  88. package/SVF-linux/svf/include/include/SABER/SaberCheckerAPI.h +0 -166
  89. package/SVF-linux/svf/include/include/SABER/SaberCondAllocator.h +0 -310
  90. package/SVF-linux/svf/include/include/SABER/SaberSVFGBuilder.h +0 -104
  91. package/SVF-linux/svf/include/include/SABER/SrcSnkDDA.h +0 -321
  92. package/SVF-linux/svf/include/include/SABER/SrcSnkSolver.h +0 -186
  93. package/SVF-linux/svf/include/include/SVFIR/PAGBuilderFromFile.h +0 -80
  94. package/SVF-linux/svf/include/include/SVFIR/SVFIR.h +0 -659
  95. package/SVF-linux/svf/include/include/SVFIR/SVFModule.h +0 -233
  96. package/SVF-linux/svf/include/include/SVFIR/SVFStatements.h +0 -1136
  97. package/SVF-linux/svf/include/include/SVFIR/SVFType.h +0 -527
  98. package/SVF-linux/svf/include/include/SVFIR/SVFValue.h +0 -1120
  99. package/SVF-linux/svf/include/include/SVFIR/SVFVariables.h +0 -721
  100. package/SVF-linux/svf/include/include/SVFIR/SymbolTableInfo.h +0 -597
  101. package/SVF-linux/svf/include/include/Util/Annotator.h +0 -180
  102. package/SVF-linux/svf/include/include/Util/BitVector.h +0 -55
  103. package/SVF-linux/svf/include/include/Util/CallGraphBuilder.h +0 -74
  104. package/SVF-linux/svf/include/include/Util/Casting.h +0 -426
  105. package/SVF-linux/svf/include/include/Util/CommandLine.h +0 -530
  106. package/SVF-linux/svf/include/include/Util/CoreBitVector.h +0 -214
  107. package/SVF-linux/svf/include/include/Util/CppUtil.h +0 -81
  108. package/SVF-linux/svf/include/include/Util/CxtStmt.h +0 -501
  109. package/SVF-linux/svf/include/include/Util/DPItem.h +0 -618
  110. package/SVF-linux/svf/include/include/Util/ExtAPI.h +0 -339
  111. package/SVF-linux/svf/include/include/Util/ExtAPI.json +0 -5707
  112. package/SVF-linux/svf/include/include/Util/GraphReachSolver.h +0 -186
  113. package/SVF-linux/svf/include/include/Util/NodeIDAllocator.h +0 -194
  114. package/SVF-linux/svf/include/include/Util/Options.h +0 -266
  115. package/SVF-linux/svf/include/include/Util/PTAStat.h +0 -65
  116. package/SVF-linux/svf/include/include/Util/SCC.h +0 -354
  117. package/SVF-linux/svf/include/include/Util/SVFStat.h +0 -100
  118. package/SVF-linux/svf/include/include/Util/SVFUtil.h +0 -660
  119. package/SVF-linux/svf/include/include/Util/SparseBitVector.h +0 -1202
  120. package/SVF-linux/svf/include/include/Util/ThreadAPI.h +0 -330
  121. package/SVF-linux/svf/include/include/Util/WorkList.h +0 -317
  122. package/SVF-linux/svf/include/include/Util/Z3Expr.h +0 -318
  123. package/SVF-linux/svf/include/include/Util/cJSON.h +0 -300
  124. package/SVF-linux/svf/include/include/Util/iterator.h +0 -407
  125. package/SVF-linux/svf/include/include/Util/iterator_range.h +0 -76
  126. package/SVF-linux/svf/include/include/WPA/Andersen.h +0 -416
  127. package/SVF-linux/svf/include/include/WPA/AndersenPWC.h +0 -160
  128. package/SVF-linux/svf/include/include/WPA/CSC.h +0 -95
  129. package/SVF-linux/svf/include/include/WPA/FlowSensitive.h +0 -317
  130. package/SVF-linux/svf/include/include/WPA/Steensgaard.h +0 -126
  131. package/SVF-linux/svf/include/include/WPA/TypeAnalysis.h +0 -83
  132. package/SVF-linux/svf/include/include/WPA/VersionedFlowSensitive.h +0 -287
  133. package/SVF-linux/svf/include/include/WPA/WPAFSSolver.h +0 -254
  134. package/SVF-linux/svf/include/include/WPA/WPAPass.h +0 -119
  135. package/SVF-linux/svf/include/include/WPA/WPASolver.h +0 -205
  136. package/SVF-linux/svf/include/include/WPA/WPAStat.h +0 -222
  137. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/BasicTypes.h +0 -250
  138. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/BreakConstantExpr.h +0 -94
  139. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/CHGBuilder.h +0 -73
  140. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/DCHG.h +0 -484
  141. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/GEPTypeBridgeIterator.h +0 -183
  142. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/ICFGBuilder.h +0 -106
  143. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMLoopAnalysis.h +0 -61
  144. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMModule.h +0 -360
  145. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMUtil.h +0 -466
  146. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/SVFIRBuilder.h +0 -417
  147. package/SVF-linux/svf-llvm/include/SVF-LLVM/SVF-LLVM/SymbolTableBuilder.h +0 -110
  148. package/SVF-osx/svf/include/include/AbstractExecution/AbstractValue.h +0 -79
  149. package/SVF-osx/svf/include/include/AbstractExecution/AddressValue.h +0 -210
  150. package/SVF-osx/svf/include/include/AbstractExecution/ExeState.h +0 -223
  151. package/SVF-osx/svf/include/include/AbstractExecution/IntervalExeState.h +0 -425
  152. package/SVF-osx/svf/include/include/AbstractExecution/IntervalValue.h +0 -868
  153. package/SVF-osx/svf/include/include/AbstractExecution/NumericLiteral.h +0 -406
  154. package/SVF-osx/svf/include/include/AbstractExecution/RelExeState.h +0 -225
  155. package/SVF-osx/svf/include/include/AbstractExecution/RelationSolver.h +0 -68
  156. package/SVF-osx/svf/include/include/AbstractExecution/SVFIR2ItvExeState.h +0 -186
  157. package/SVF-osx/svf/include/include/AbstractExecution/WTO.h +0 -845
  158. package/SVF-osx/svf/include/include/CFL/CFGNormalizer.h +0 -84
  159. package/SVF-osx/svf/include/include/CFL/CFLAlias.h +0 -176
  160. package/SVF-osx/svf/include/include/CFL/CFLBase.h +0 -115
  161. package/SVF-osx/svf/include/include/CFL/CFLData.h +0 -316
  162. package/SVF-osx/svf/include/include/CFL/CFLDataBuilder.h +0 -91
  163. package/SVF-osx/svf/include/include/CFL/CFLGramGraphChecker.h +0 -74
  164. package/SVF-osx/svf/include/include/CFL/CFLGrammar.h +0 -468
  165. package/SVF-osx/svf/include/include/CFL/CFLGrammar.txt +0 -15
  166. package/SVF-osx/svf/include/include/CFL/CFLGraphBuilder.h +0 -193
  167. package/SVF-osx/svf/include/include/CFL/CFLSolver.h +0 -136
  168. package/SVF-osx/svf/include/include/CFL/CFLStat.h +0 -67
  169. package/SVF-osx/svf/include/include/CFL/CFLVF.h +0 -65
  170. package/SVF-osx/svf/include/include/CFL/GrammarBuilder.h +0 -100
  171. package/SVF-osx/svf/include/include/CFL/PEGGrammar.txt +0 -11
  172. package/SVF-osx/svf/include/include/CFL/VFG.txt +0 -7
  173. package/SVF-osx/svf/include/include/DDA/ContextDDA.h +0 -230
  174. package/SVF-osx/svf/include/include/DDA/DDAClient.h +0 -168
  175. package/SVF-osx/svf/include/include/DDA/DDAPass.h +0 -99
  176. package/SVF-osx/svf/include/include/DDA/DDAStat.h +0 -138
  177. package/SVF-osx/svf/include/include/DDA/DDAVFSolver.h +0 -789
  178. package/SVF-osx/svf/include/include/DDA/FlowDDA.h +0 -178
  179. package/SVF-osx/svf/include/include/FastCluster/LICENSE.TXT +0 -13
  180. package/SVF-osx/svf/include/include/FastCluster/fastcluster.h +0 -80
  181. package/SVF-osx/svf/include/include/Graphs/CFLGraph.h +0 -215
  182. package/SVF-osx/svf/include/include/Graphs/CHG.h +0 -351
  183. package/SVF-osx/svf/include/include/Graphs/ConsG.h +0 -408
  184. package/SVF-osx/svf/include/include/Graphs/ConsGEdge.h +0 -353
  185. package/SVF-osx/svf/include/include/Graphs/ConsGNode.h +0 -391
  186. package/SVF-osx/svf/include/include/Graphs/DOTGraphTraits.h +0 -188
  187. package/SVF-osx/svf/include/include/Graphs/GenericGraph.h +0 -620
  188. package/SVF-osx/svf/include/include/Graphs/GraphPrinter.h +0 -111
  189. package/SVF-osx/svf/include/include/Graphs/GraphTraits.h +0 -150
  190. package/SVF-osx/svf/include/include/Graphs/GraphWriter.h +0 -380
  191. package/SVF-osx/svf/include/include/Graphs/ICFG.h +0 -331
  192. package/SVF-osx/svf/include/include/Graphs/ICFGEdge.h +0 -264
  193. package/SVF-osx/svf/include/include/Graphs/ICFGNode.h +0 -523
  194. package/SVF-osx/svf/include/include/Graphs/ICFGStat.h +0 -164
  195. package/SVF-osx/svf/include/include/Graphs/IRGraph.h +0 -243
  196. package/SVF-osx/svf/include/include/Graphs/PTACallGraph.h +0 -471
  197. package/SVF-osx/svf/include/include/Graphs/SVFG.h +0 -490
  198. package/SVF-osx/svf/include/include/Graphs/SVFGEdge.h +0 -237
  199. package/SVF-osx/svf/include/include/Graphs/SVFGNode.h +0 -513
  200. package/SVF-osx/svf/include/include/Graphs/SVFGOPT.h +0 -362
  201. package/SVF-osx/svf/include/include/Graphs/SVFGStat.h +0 -273
  202. package/SVF-osx/svf/include/include/Graphs/ThreadCallGraph.h +0 -422
  203. package/SVF-osx/svf/include/include/Graphs/VFG.h +0 -664
  204. package/SVF-osx/svf/include/include/Graphs/VFGEdge.h +0 -295
  205. package/SVF-osx/svf/include/include/Graphs/VFGNode.h +0 -1197
  206. package/SVF-osx/svf/include/include/MSSA/MSSAMuChi.h +0 -722
  207. package/SVF-osx/svf/include/include/MSSA/MemPartition.h +0 -169
  208. package/SVF-osx/svf/include/include/MSSA/MemRegion.h +0 -491
  209. package/SVF-osx/svf/include/include/MSSA/MemSSA.h +0 -452
  210. package/SVF-osx/svf/include/include/MSSA/SVFGBuilder.h +0 -98
  211. package/SVF-osx/svf/include/include/MTA/FSMPTA.h +0 -270
  212. package/SVF-osx/svf/include/include/MTA/LockAnalysis.h +0 -517
  213. package/SVF-osx/svf/include/include/MTA/MHP.h +0 -565
  214. package/SVF-osx/svf/include/include/MTA/MTA.h +0 -101
  215. package/SVF-osx/svf/include/include/MTA/MTAResultValidator.h +0 -448
  216. package/SVF-osx/svf/include/include/MTA/MTAStat.h +0 -74
  217. package/SVF-osx/svf/include/include/MTA/PCG.h +0 -229
  218. package/SVF-osx/svf/include/include/MTA/TCT.h +0 -599
  219. package/SVF-osx/svf/include/include/MemoryModel/AbstractPointsToDS.h +0 -316
  220. package/SVF-osx/svf/include/include/MemoryModel/ConditionalPT.h +0 -878
  221. package/SVF-osx/svf/include/include/MemoryModel/LocationSet.h +0 -148
  222. package/SVF-osx/svf/include/include/MemoryModel/MutablePointsToDS.h +0 -1025
  223. package/SVF-osx/svf/include/include/MemoryModel/PersistentPointsToCache.h +0 -463
  224. package/SVF-osx/svf/include/include/MemoryModel/PersistentPointsToDS.h +0 -955
  225. package/SVF-osx/svf/include/include/MemoryModel/PointerAnalysis.h +0 -452
  226. package/SVF-osx/svf/include/include/MemoryModel/PointerAnalysisImpl.h +0 -590
  227. package/SVF-osx/svf/include/include/MemoryModel/PointsTo.h +0 -255
  228. package/SVF-osx/svf/include/include/MemoryModel/SVFLoop.h +0 -164
  229. package/SVF-osx/svf/include/include/SABER/DoubleFreeChecker.h +0 -76
  230. package/SVF-osx/svf/include/include/SABER/FileChecker.h +0 -82
  231. package/SVF-osx/svf/include/include/SABER/LeakChecker.h +0 -124
  232. package/SVF-osx/svf/include/include/SABER/ProgSlice.h +0 -313
  233. package/SVF-osx/svf/include/include/SABER/SaberCheckerAPI.h +0 -166
  234. package/SVF-osx/svf/include/include/SABER/SaberCondAllocator.h +0 -310
  235. package/SVF-osx/svf/include/include/SABER/SaberSVFGBuilder.h +0 -104
  236. package/SVF-osx/svf/include/include/SABER/SrcSnkDDA.h +0 -321
  237. package/SVF-osx/svf/include/include/SABER/SrcSnkSolver.h +0 -186
  238. package/SVF-osx/svf/include/include/SVFIR/PAGBuilderFromFile.h +0 -80
  239. package/SVF-osx/svf/include/include/SVFIR/SVFIR.h +0 -659
  240. package/SVF-osx/svf/include/include/SVFIR/SVFModule.h +0 -233
  241. package/SVF-osx/svf/include/include/SVFIR/SVFStatements.h +0 -1136
  242. package/SVF-osx/svf/include/include/SVFIR/SVFType.h +0 -527
  243. package/SVF-osx/svf/include/include/SVFIR/SVFValue.h +0 -1120
  244. package/SVF-osx/svf/include/include/SVFIR/SVFVariables.h +0 -721
  245. package/SVF-osx/svf/include/include/SVFIR/SymbolTableInfo.h +0 -597
  246. package/SVF-osx/svf/include/include/Util/Annotator.h +0 -180
  247. package/SVF-osx/svf/include/include/Util/BitVector.h +0 -55
  248. package/SVF-osx/svf/include/include/Util/CallGraphBuilder.h +0 -74
  249. package/SVF-osx/svf/include/include/Util/Casting.h +0 -426
  250. package/SVF-osx/svf/include/include/Util/CommandLine.h +0 -530
  251. package/SVF-osx/svf/include/include/Util/CoreBitVector.h +0 -214
  252. package/SVF-osx/svf/include/include/Util/CppUtil.h +0 -81
  253. package/SVF-osx/svf/include/include/Util/CxtStmt.h +0 -501
  254. package/SVF-osx/svf/include/include/Util/DPItem.h +0 -618
  255. package/SVF-osx/svf/include/include/Util/ExtAPI.h +0 -339
  256. package/SVF-osx/svf/include/include/Util/ExtAPI.json +0 -5707
  257. package/SVF-osx/svf/include/include/Util/GraphReachSolver.h +0 -186
  258. package/SVF-osx/svf/include/include/Util/NodeIDAllocator.h +0 -194
  259. package/SVF-osx/svf/include/include/Util/Options.h +0 -266
  260. package/SVF-osx/svf/include/include/Util/PTAStat.h +0 -65
  261. package/SVF-osx/svf/include/include/Util/SCC.h +0 -354
  262. package/SVF-osx/svf/include/include/Util/SVFStat.h +0 -100
  263. package/SVF-osx/svf/include/include/Util/SVFUtil.h +0 -660
  264. package/SVF-osx/svf/include/include/Util/SparseBitVector.h +0 -1202
  265. package/SVF-osx/svf/include/include/Util/ThreadAPI.h +0 -330
  266. package/SVF-osx/svf/include/include/Util/WorkList.h +0 -317
  267. package/SVF-osx/svf/include/include/Util/Z3Expr.h +0 -318
  268. package/SVF-osx/svf/include/include/Util/cJSON.h +0 -300
  269. package/SVF-osx/svf/include/include/Util/iterator.h +0 -407
  270. package/SVF-osx/svf/include/include/Util/iterator_range.h +0 -76
  271. package/SVF-osx/svf/include/include/WPA/Andersen.h +0 -416
  272. package/SVF-osx/svf/include/include/WPA/AndersenPWC.h +0 -160
  273. package/SVF-osx/svf/include/include/WPA/CSC.h +0 -95
  274. package/SVF-osx/svf/include/include/WPA/FlowSensitive.h +0 -317
  275. package/SVF-osx/svf/include/include/WPA/Steensgaard.h +0 -126
  276. package/SVF-osx/svf/include/include/WPA/TypeAnalysis.h +0 -83
  277. package/SVF-osx/svf/include/include/WPA/VersionedFlowSensitive.h +0 -287
  278. package/SVF-osx/svf/include/include/WPA/WPAFSSolver.h +0 -254
  279. package/SVF-osx/svf/include/include/WPA/WPAPass.h +0 -119
  280. package/SVF-osx/svf/include/include/WPA/WPASolver.h +0 -205
  281. package/SVF-osx/svf/include/include/WPA/WPAStat.h +0 -222
  282. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/BasicTypes.h +0 -250
  283. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/BreakConstantExpr.h +0 -94
  284. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/CHGBuilder.h +0 -73
  285. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/DCHG.h +0 -484
  286. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/GEPTypeBridgeIterator.h +0 -183
  287. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/ICFGBuilder.h +0 -106
  288. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMLoopAnalysis.h +0 -61
  289. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMModule.h +0 -360
  290. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/LLVMUtil.h +0 -466
  291. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/SVFIRBuilder.h +0 -417
  292. package/SVF-osx/svf-llvm/include/SVF-LLVM/SVF-LLVM/SymbolTableBuilder.h +0 -110
@@ -1,417 +0,0 @@
1
- //===- SVFIRBuilder.h -- Building SVFIR-------------------------------------------//
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
- * SVFIRBuilder.h
25
- *
26
- * Created on: Nov 1, 2013
27
- * Author: Yulei Sui
28
- */
29
-
30
- #ifndef PAGBUILDER_H_
31
- #define PAGBUILDER_H_
32
-
33
- #include "SVFIR/SVFIR.h"
34
- #include "Util/ExtAPI.h"
35
- #include "SVF-LLVM/BasicTypes.h"
36
- #include "SVF-LLVM/ICFGBuilder.h"
37
- #include "SVF-LLVM/LLVMModule.h"
38
-
39
- namespace SVF
40
- {
41
-
42
- class SVFModule;
43
- /*!
44
- * SVFIR Builder to create SVF variables and statements and PAG
45
- */
46
- class SVFIRBuilder: public llvm::InstVisitor<SVFIRBuilder>
47
- {
48
-
49
- private:
50
- SVFIR* pag;
51
- SVFModule* svfModule;
52
- const SVFBasicBlock* curBB; ///< Current basic block during SVFIR construction when visiting the module
53
- const SVFValue* curVal; ///< Current Value during SVFIR construction when visiting the module
54
-
55
- public:
56
- /// Constructor
57
- SVFIRBuilder(SVFModule* mod): pag(SVFIR::getPAG()), svfModule(mod), curBB(nullptr),curVal(nullptr)
58
- {
59
- }
60
- /// Destructor
61
- virtual ~SVFIRBuilder()
62
- {
63
- }
64
-
65
- /// Start building SVFIR here
66
- virtual SVFIR* build();
67
-
68
- /// Return SVFIR
69
- SVFIR* getPAG() const
70
- {
71
- return pag;
72
- }
73
-
74
- /// Initialize nodes and edges
75
- //@{
76
- void initialiseNodes();
77
- void addEdge(NodeID src, NodeID dst, SVFStmt::PEDGEK kind,
78
- s32_t offset = 0, Instruction* cs = nullptr);
79
- // @}
80
-
81
- /// Sanity check for SVFIR
82
- void sanityCheck();
83
-
84
- /// Get different kinds of node
85
- //@{
86
- // GetValNode - Return the value node according to a LLVM Value.
87
- NodeID getValueNode(const Value* V)
88
- {
89
- // first handle gep edge if val if a constant expression
90
- processCE(V);
91
-
92
- // strip off the constant cast and return the value node
93
- SVFValue* svfVal = LLVMModuleSet::getLLVMModuleSet()->getSVFValue(V);
94
- return pag->getValueNode(svfVal);
95
- }
96
-
97
- /// GetObject - Return the object node (stack/global/heap/function) according to a LLVM Value
98
- inline NodeID getObjectNode(const Value* V)
99
- {
100
- SVFValue* svfVal = LLVMModuleSet::getLLVMModuleSet()->getSVFValue(V);
101
- return pag->getObjectNode(svfVal);
102
- }
103
-
104
- /// getReturnNode - Return the node representing the unique return value of a function.
105
- inline NodeID getReturnNode(const SVFFunction *func)
106
- {
107
- return pag->getReturnNode(func);
108
- }
109
-
110
- /// getVarargNode - Return the node representing the unique variadic argument of a function.
111
- inline NodeID getVarargNode(const SVFFunction *func)
112
- {
113
- return pag->getVarargNode(func);
114
- }
115
- //@}
116
-
117
-
118
- /// Our visit overrides.
119
- //@{
120
- // Instructions that cannot be folded away.
121
- virtual void visitAllocaInst(AllocaInst &AI);
122
- void visitPHINode(PHINode &I);
123
- void visitStoreInst(StoreInst &I);
124
- void visitLoadInst(LoadInst &I);
125
- void visitGetElementPtrInst(GetElementPtrInst &I);
126
- void visitCallInst(CallInst &I);
127
- void visitInvokeInst(InvokeInst &II);
128
- void visitCallBrInst(CallBrInst &I);
129
- void visitCallSite(CallBase* cs);
130
- void visitReturnInst(ReturnInst &I);
131
- void visitCastInst(CastInst &I);
132
- void visitSelectInst(SelectInst &I);
133
- void visitExtractValueInst(ExtractValueInst &EVI);
134
- void visitBranchInst(BranchInst &I);
135
- void visitSwitchInst(SwitchInst &I);
136
- void visitInsertValueInst(InsertValueInst &I)
137
- {
138
- addBlackHoleAddrEdge(getValueNode(&I));
139
- }
140
- // TerminatorInst and UnwindInst have been removed since llvm-8.0.0
141
- // void visitTerminatorInst(TerminatorInst &TI) {}
142
- // void visitUnwindInst(UnwindInst &I) { /*returns void*/}
143
-
144
- void visitBinaryOperator(BinaryOperator &I);
145
- void visitUnaryOperator(UnaryOperator &I);
146
- void visitCmpInst(CmpInst &I);
147
-
148
- /// TODO: var arguments need to be handled.
149
- /// https://llvm.org/docs/LangRef.html#id1911
150
- void visitVAArgInst(VAArgInst&);
151
- void visitVACopyInst(VACopyInst&) {}
152
- void visitVAEndInst(VAEndInst&) {}
153
- void visitVAStartInst(VAStartInst&) {}
154
-
155
- /// <result> = freeze ty <val>
156
- /// If <val> is undef or poison, ‘freeze’ returns an arbitrary, but fixed value of type `ty`
157
- /// Otherwise, this instruction is a no-op and returns the input <val>
158
- void visitFreezeInst(FreezeInst& I);
159
-
160
- void visitExtractElementInst(ExtractElementInst &I);
161
-
162
- void visitInsertElementInst(InsertElementInst &I)
163
- {
164
- addBlackHoleAddrEdge(getValueNode(&I));
165
- }
166
- void visitShuffleVectorInst(ShuffleVectorInst &I)
167
- {
168
- addBlackHoleAddrEdge(getValueNode(&I));
169
- }
170
- void visitLandingPadInst(LandingPadInst &I)
171
- {
172
- addBlackHoleAddrEdge(getValueNode(&I));
173
- }
174
-
175
- /// Instruction not that often
176
- void visitResumeInst(ResumeInst&) /*returns void*/
177
- {
178
- }
179
- void visitUnreachableInst(UnreachableInst&) /*returns void*/
180
- {
181
- }
182
- void visitFenceInst(FenceInst &I) /*returns void*/
183
- {
184
- addBlackHoleAddrEdge(getValueNode(&I));
185
- }
186
- void visitAtomicCmpXchgInst(AtomicCmpXchgInst &I)
187
- {
188
- addBlackHoleAddrEdge(getValueNode(&I));
189
- }
190
- void visitAtomicRMWInst(AtomicRMWInst &I)
191
- {
192
- addBlackHoleAddrEdge(getValueNode(&I));
193
- }
194
-
195
- /// Provide base case for our instruction visit.
196
- inline void visitInstruction(Instruction&)
197
- {
198
- // If a new instruction is added to LLVM that we don't handle.
199
- // TODO: ignore here:
200
- }
201
- //}@
202
-
203
- /// connect PAG edges based on callgraph
204
- void updateCallGraph(PTACallGraph* callgraph);
205
-
206
- protected:
207
- /// Handle globals including (global variable and functions)
208
- //@{
209
- void visitGlobal(SVFModule* svfModule);
210
- void InitialGlobal(const GlobalVariable *gvar, Constant *C,
211
- u32_t offset);
212
- NodeID getGlobalVarField(const GlobalVariable *gvar, u32_t offset, SVFType* tpy);
213
- //@}
214
-
215
- /// Process constant expression
216
- void processCE(const Value* val);
217
-
218
- /// Infer field index from byteoffset.
219
- u32_t inferFieldIdxFromByteOffset(const llvm::GEPOperator* gepOp, DataLayout *dl, LocationSet& ls, s32_t idx);
220
-
221
- /// Compute offset of a gep instruction or gep constant expression
222
- bool computeGepOffset(const User *V, LocationSet& ls);
223
-
224
- /// Get the base value of (i8* src and i8* dst) for external argument (e.g. memcpy(i8* dst, i8* src, int size))
225
- const Value* getBaseValueForExtArg(const Value* V);
226
-
227
- /// Get the base type and max offset
228
- const Type* getBaseTypeAndFlattenedFields(const Value* V, std::vector<LocationSet> &fields, const Value* sz);
229
-
230
- /// Handle direct call
231
- void handleDirectCall(CallBase* cs, const Function *F);
232
-
233
- /// Handle indirect call
234
- void handleIndCall(CallBase* cs);
235
-
236
- /// Handle external call
237
- //@{
238
- virtual void parseOperations(std::vector<ExtAPI::Operation> &operations, CallBase* cs);
239
- virtual void handleExtCall(CallBase* cs, const Function *F);
240
- void addComplexConsForExt(const Value* D, const Value* S, const Value* sz);
241
- //@}
242
-
243
- /// Set current basic block in order to keep track of control flow information
244
- inline void setCurrentLocation(const Value* val, const BasicBlock* bb)
245
- {
246
- curBB = (bb == nullptr? nullptr : LLVMModuleSet::getLLVMModuleSet()->getSVFBasicBlock(bb));
247
- curVal = (val == nullptr ? nullptr: LLVMModuleSet::getLLVMModuleSet()->getSVFValue(val));
248
- }
249
- inline void setCurrentLocation(const SVFValue* val, const SVFBasicBlock* bb)
250
- {
251
- curBB = bb;
252
- curVal = val;
253
- }
254
- inline const SVFValue* getCurrentValue() const
255
- {
256
- return curVal;
257
- }
258
- inline const SVFBasicBlock* getCurrentBB() const
259
- {
260
- return curBB;
261
- }
262
-
263
- /// Add global black hole Address edge
264
- void addGlobalBlackHoleAddrEdge(NodeID node, const ConstantExpr *int2Ptrce)
265
- {
266
- const SVFValue* cval = getCurrentValue();
267
- const SVFBasicBlock* cbb = getCurrentBB();
268
- setCurrentLocation(int2Ptrce,nullptr);
269
- addBlackHoleAddrEdge(node);
270
- setCurrentLocation(cval,cbb);
271
- }
272
-
273
- /// Add NullPtr PAGNode
274
- inline NodeID addNullPtrNode()
275
- {
276
- LLVMContext& cxt = LLVMModuleSet::getLLVMModuleSet()->getContext();
277
- ConstantPointerNull* constNull = ConstantPointerNull::get(Type::getInt8PtrTy(cxt));
278
- NodeID nullPtr = pag->addValNode(LLVMModuleSet::getLLVMModuleSet()->getSVFValue(constNull),pag->getNullPtr());
279
- setCurrentLocation(constNull, nullptr);
280
- addBlackHoleAddrEdge(pag->getBlkPtr());
281
- return nullPtr;
282
- }
283
-
284
- NodeID getGepValVar(const Value* val, const LocationSet& ls, const SVFType* baseType);
285
-
286
- void setCurrentBBAndValueForPAGEdge(PAGEdge* edge);
287
-
288
- inline void addBlackHoleAddrEdge(NodeID node)
289
- {
290
- if(PAGEdge *edge = pag->addBlackHoleAddrStmt(node))
291
- setCurrentBBAndValueForPAGEdge(edge);
292
- }
293
-
294
- /// Add Address edge
295
- inline AddrStmt* addAddrEdge(NodeID src, NodeID dst)
296
- {
297
- if(AddrStmt *edge = pag->addAddrStmt(src, dst))
298
- {
299
- setCurrentBBAndValueForPAGEdge(edge);
300
- return edge;
301
- }
302
- return nullptr;
303
- }
304
- /// Add Copy edge
305
- inline CopyStmt* addCopyEdge(NodeID src, NodeID dst)
306
- {
307
- if(CopyStmt *edge = pag->addCopyStmt(src, dst))
308
- {
309
- setCurrentBBAndValueForPAGEdge(edge);
310
- return edge;
311
- }
312
- return nullptr;
313
- }
314
- /// Add Copy edge
315
- inline void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode* pred)
316
- {
317
- /// If we already added this phi node, then skip this adding
318
- if(PhiStmt *edge = pag->addPhiStmt(res,opnd,pred))
319
- setCurrentBBAndValueForPAGEdge(edge);
320
- }
321
- /// Add SelectStmt
322
- inline void addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
323
- {
324
- if(SelectStmt *edge = pag->addSelectStmt(res,op1,op2,cond))
325
- setCurrentBBAndValueForPAGEdge(edge);
326
- }
327
- /// Add Copy edge
328
- inline void addCmpEdge(NodeID op1, NodeID op2, NodeID dst, u32_t predict)
329
- {
330
- if(CmpStmt *edge = pag->addCmpStmt(op1, op2, dst, predict))
331
- setCurrentBBAndValueForPAGEdge(edge);
332
- }
333
- /// Add Copy edge
334
- inline void addBinaryOPEdge(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
335
- {
336
- if(BinaryOPStmt *edge = pag->addBinaryOPStmt(op1, op2, dst, opcode))
337
- setCurrentBBAndValueForPAGEdge(edge);
338
- }
339
- /// Add Unary edge
340
- inline void addUnaryOPEdge(NodeID src, NodeID dst, u32_t opcode)
341
- {
342
- if(UnaryOPStmt *edge = pag->addUnaryOPStmt(src, dst, opcode))
343
- setCurrentBBAndValueForPAGEdge(edge);
344
- }
345
- /// Add Branch statement
346
- inline void addBranchStmt(NodeID br, NodeID cond, const BranchStmt::SuccAndCondPairVec& succs)
347
- {
348
- if(BranchStmt *edge = pag->addBranchStmt(br, cond, succs))
349
- setCurrentBBAndValueForPAGEdge(edge);
350
- }
351
- /// Add Load edge
352
- inline void addLoadEdge(NodeID src, NodeID dst)
353
- {
354
- if(LoadStmt *edge = pag->addLoadStmt(src, dst))
355
- setCurrentBBAndValueForPAGEdge(edge);
356
- }
357
- /// Add Store edge
358
- inline void addStoreEdge(NodeID src, NodeID dst)
359
- {
360
- IntraICFGNode* node;
361
- if(const SVFInstruction* inst = SVFUtil::dyn_cast<SVFInstruction>(curVal))
362
- node = pag->getICFG()->getIntraICFGNode(inst);
363
- else
364
- node = nullptr;
365
- if(StoreStmt *edge = pag->addStoreStmt(src, dst, node))
366
- setCurrentBBAndValueForPAGEdge(edge);
367
- }
368
- /// Add Call edge
369
- inline void addCallEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
370
- {
371
- if(CallPE *edge = pag->addCallPE(src, dst, cs, entry))
372
- setCurrentBBAndValueForPAGEdge(edge);
373
- }
374
- /// Add Return edge
375
- inline void addRetEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
376
- {
377
- if(RetPE *edge = pag->addRetPE(src, dst, cs, exit))
378
- setCurrentBBAndValueForPAGEdge(edge);
379
- }
380
- /// Add Gep edge
381
- inline void addGepEdge(NodeID src, NodeID dst, const LocationSet& ls, bool constGep)
382
- {
383
- if(GepStmt *edge = pag->addGepStmt(src, dst, ls, constGep))
384
- setCurrentBBAndValueForPAGEdge(edge);
385
- }
386
- /// Add Offset(Gep) edge
387
- inline void addNormalGepEdge(NodeID src, NodeID dst, const LocationSet& ls)
388
- {
389
- if(GepStmt *edge = pag->addNormalGepStmt(src, dst, ls))
390
- setCurrentBBAndValueForPAGEdge(edge);
391
- }
392
- /// Add Variant(Gep) edge
393
- inline void addVariantGepEdge(NodeID src, NodeID dst, const LocationSet& ls)
394
- {
395
- if(GepStmt *edge = pag->addVariantGepStmt(src, dst, ls))
396
- setCurrentBBAndValueForPAGEdge(edge);
397
- }
398
- /// Add Thread fork edge for parameter passing
399
- inline void addThreadForkEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
400
- {
401
- if(TDForkPE *edge = pag->addThreadForkPE(src, dst, cs, entry))
402
- setCurrentBBAndValueForPAGEdge(edge);
403
- }
404
- /// Add Thread join edge for parameter passing
405
- inline void addThreadJoinEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
406
- {
407
- if(TDJoinPE *edge = pag->addThreadJoinPE(src, dst, cs, exit))
408
- setCurrentBBAndValueForPAGEdge(edge);
409
- }
410
- //@}
411
-
412
- LocationSet getLocationSetFromBaseNode(NodeID nodeId);
413
- };
414
-
415
- } // End namespace SVF
416
-
417
- #endif /* PAGBUILDER_H_ */
@@ -1,110 +0,0 @@
1
- //===- SymbolTableBuilder.h -- Symbol Table builder-----------------------//
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
- * SymbolTableBuilder.h
25
- *
26
- * Created on: Apr 28, 2014
27
- * Author: Yulei
28
- */
29
-
30
- #ifndef SymbolTableBuilder_H_
31
- #define SymbolTableBuilder_H_
32
-
33
- #include "SVF-LLVM/LLVMModule.h"
34
- #include "SVFIR/SymbolTableInfo.h"
35
-
36
- /*
37
- * This class is to build SymbolTableInfo, MemObjs and ObjTypeInfo
38
- */
39
- namespace SVF
40
- {
41
-
42
- class SymbolTableBuilder
43
- {
44
-
45
- private:
46
- SymbolTableInfo* symInfo;
47
-
48
- public:
49
- /// Constructor
50
- SymbolTableBuilder(SymbolTableInfo* si): symInfo(si)
51
- {
52
- }
53
-
54
- /// Start building memory model
55
- void buildMemModel(SVFModule* svfModule);
56
-
57
- /// Return size of this object based on LLVM value
58
- u32_t getObjSize(const Type* type);
59
-
60
- protected:
61
-
62
- /// collect the syms
63
- //@{
64
- void collectSVFTypeInfo(const Value* val);
65
-
66
- void collectSym(const Value* val);
67
-
68
- void collectVal(const Value* val);
69
-
70
- void collectObj(const Value* val);
71
-
72
- void collectRet(const Function* val);
73
-
74
- void collectVararg(const Function* val);
75
- //@}
76
-
77
- /// Handle constant expression
78
- // @{
79
- void handleGlobalCE(const GlobalVariable *G);
80
- void handleGlobalInitializerCE(const Constant *C);
81
- void handleCE(const Value* val);
82
- // @}
83
-
84
- /// Create an objectInfo based on LLVM value
85
- ObjTypeInfo* createObjTypeInfo(const Value* val);
86
-
87
- /// Initialize TypeInfo based on LLVM Value
88
- void initTypeInfo(ObjTypeInfo* typeinfo, const Value* value, const Type* ty);
89
- /// Analyse types of all flattened fields of this object
90
- void analyzeObjType(ObjTypeInfo* typeinfo, const Value* val);
91
- /// Analyse types of heap and static objects
92
- void analyzeHeapObjType(ObjTypeInfo* typeinfo, const Value* val);
93
- /// Analyse types of heap and static objects
94
- void analyzeStaticObjType(ObjTypeInfo* typeinfo, const Value* val);
95
-
96
- ///Get a reference to the components of struct_info.
97
- /// Number of flattenned elements of an array or struct
98
- u32_t getNumOfFlattenElements(const Type* T);
99
-
100
- ///Get a reference to StructInfo.
101
- StInfo* getOrAddSVFTypeInfo(const Type* T);
102
-
103
- MemObj* createBlkObj(SymID symId);
104
-
105
- MemObj* createConstantObj(SymID symId);
106
- };
107
-
108
- } // End namespace SVF
109
-
110
- #endif /* SymbolTableBuilder_H_ */
@@ -1,79 +0,0 @@
1
- //===- AbstractValue.h --Abstract Value for domains---------------------------//
2
- //
3
- // SVF: Static Value-Flow Analysis
4
- //
5
- // Copyright (C) <2013-2022> <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
- * AbstractValue.h
24
- *
25
- * Created on: Aug 4, 2022
26
- * Author: Xiao Cheng, Jiawei Wang
27
- *
28
- */
29
-
30
- #ifndef Z3_EXAMPLE_ABSTRACTVALUE_H
31
- #define Z3_EXAMPLE_ABSTRACTVALUE_H
32
-
33
- #include <type_traits>
34
- #include <string>
35
- #include "SVFIR/SVFValue.h"
36
-
37
- namespace SVF
38
- {
39
-
40
- class IntervalValue;
41
-
42
- /*!
43
- * Base class of abstract value
44
- */
45
- class AbstractValue
46
- {
47
- public:
48
- /// Abstract value kind
49
- enum AbstractValueK
50
- {
51
- IntervalK, ConcreteK, AddressK
52
- };
53
- private:
54
- AbstractValueK _kind;
55
-
56
- public:
57
- AbstractValue(AbstractValueK kind) : _kind(kind) {}
58
-
59
- virtual ~AbstractValue() = default;
60
-
61
- AbstractValue(const AbstractValue &) noexcept = default;
62
-
63
- AbstractValue(AbstractValue &&) noexcept = default;
64
-
65
- AbstractValue &operator=(const AbstractValue &) noexcept = default;
66
-
67
- AbstractValue &operator=(AbstractValue &&) noexcept = default;
68
-
69
- inline AbstractValueK getAbstractValueKind() const
70
- {
71
- return _kind;
72
- }
73
-
74
- virtual bool isTop() const = 0;
75
-
76
- virtual bool isBottom() const = 0;
77
- }; // end class AbstractValue
78
- } // end namespace SVF
79
- #endif //Z3_EXAMPLE_ABSTRACTVALUE_H