svf-lib 1.0.729 → 1.0.733

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