svf-lib 1.0.1346 → 1.0.1348

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.
@@ -434,6 +434,11 @@ public:
434
434
  }
435
435
  }
436
436
 
437
+ std::string toString() const
438
+ {
439
+ return "[" + std::to_string(lb().getNumeral()) + ", " + std::to_string(ub().getNumeral()) + "]";
440
+ }
441
+
437
442
  }; // end class IntervalValue
438
443
 
439
444
  /// Add IntervalValues
@@ -172,6 +172,12 @@ public:
172
172
  return getSVFGNode(getDef(pagNode));
173
173
  }
174
174
 
175
+ /// Given a pagNode, return whether it has definition site
176
+ inline bool hasDefSVFGNode(const PAGNode* pagNode) const
177
+ {
178
+ return hasDef(pagNode) && hasSVFGNode(getDef(pagNode));
179
+ }
180
+
175
181
  /// Perform statistics
176
182
  void performStat();
177
183
 
Binary file
@@ -434,6 +434,11 @@ public:
434
434
  }
435
435
  }
436
436
 
437
+ std::string toString() const
438
+ {
439
+ return "[" + std::to_string(lb().getNumeral()) + ", " + std::to_string(ub().getNumeral()) + "]";
440
+ }
441
+
437
442
  }; // end class IntervalValue
438
443
 
439
444
  /// Add IntervalValues
@@ -172,6 +172,12 @@ public:
172
172
  return getSVFGNode(getDef(pagNode));
173
173
  }
174
174
 
175
+ /// Given a pagNode, return whether it has definition site
176
+ inline bool hasDefSVFGNode(const PAGNode* pagNode) const
177
+ {
178
+ return hasDef(pagNode) && hasSVFGNode(getDef(pagNode));
179
+ }
180
+
175
181
  /// Perform statistics
176
182
  void performStat();
177
183
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1346",
3
+ "version": "1.0.1348",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {