svf-lib 1.0.2127 → 1.0.2129

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -58,11 +58,11 @@ private:
58
58
  public:
59
59
  typedef FIFOWorkList<const Instruction*> WorkList;
60
60
 
61
- ICFGBuilder(ICFG* i): icfg(i)
61
+ ICFGBuilder(): icfg(new ICFG())
62
62
  {
63
63
 
64
64
  }
65
- void build();
65
+ ICFG* build();
66
66
 
67
67
  private:
68
68
 
@@ -76,6 +76,7 @@ private:
76
76
  static bool preProcessed;
77
77
  SymbolTableInfo* symInfo;
78
78
  SVFModule* svfModule; ///< Borrowed from singleton SVFModule::svfModule
79
+ ICFG* icfg;
79
80
  std::unique_ptr<LLVMContext> owned_ctx;
80
81
  std::vector<std::unique_ptr<Module>> owned_modules;
81
82
  std::vector<std::reference_wrapper<Module>> modules;
@@ -362,6 +363,11 @@ public:
362
363
 
363
364
  ObjTypeInference* getTypeInference();
364
365
 
366
+ inline ICFG* getICFG()
367
+ {
368
+ return icfg;
369
+ }
370
+
365
371
  private:
366
372
  /// Create SVFTypes
367
373
  SVFType* addSVFTypeInfo(const Type* t);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -58,11 +58,11 @@ private:
58
58
  public:
59
59
  typedef FIFOWorkList<const Instruction*> WorkList;
60
60
 
61
- ICFGBuilder(ICFG* i): icfg(i)
61
+ ICFGBuilder(): icfg(new ICFG())
62
62
  {
63
63
 
64
64
  }
65
- void build();
65
+ ICFG* build();
66
66
 
67
67
  private:
68
68
 
@@ -76,6 +76,7 @@ private:
76
76
  static bool preProcessed;
77
77
  SymbolTableInfo* symInfo;
78
78
  SVFModule* svfModule; ///< Borrowed from singleton SVFModule::svfModule
79
+ ICFG* icfg;
79
80
  std::unique_ptr<LLVMContext> owned_ctx;
80
81
  std::vector<std::unique_ptr<Module>> owned_modules;
81
82
  std::vector<std::reference_wrapper<Module>> modules;
@@ -362,6 +363,11 @@ public:
362
363
 
363
364
  ObjTypeInference* getTypeInference();
364
365
 
366
+ inline ICFG* getICFG()
367
+ {
368
+ return icfg;
369
+ }
370
+
365
371
  private:
366
372
  /// Create SVFTypes
367
373
  SVFType* addSVFTypeInfo(const Type* t);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2127",
3
+ "version": "1.0.2129",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {