svf-lib 1.0.1733 → 1.0.1734

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.
@@ -308,7 +308,7 @@ public:
308
308
  /// Get location set of the gep edge
309
309
  inline APOffset getConstantFieldIdx() const
310
310
  {
311
- return ap.getConstantFieldIdx();
311
+ return ap.getConstantStructFldIdx();
312
312
  }
313
313
 
314
314
  };
@@ -95,7 +95,7 @@ public:
95
95
 
96
96
  /// Get methods
97
97
  //@{
98
- inline APOffset getConstantFieldIdx() const
98
+ inline APOffset getConstantStructFldIdx() const
99
99
  {
100
100
  return fldIdx;
101
101
  }
@@ -177,7 +177,7 @@ template <> struct std::hash<SVF::AccessPath>
177
177
  {
178
178
  SVF::Hash<std::pair<SVF::NodeID, SVF::NodeID>> h;
179
179
  std::hash<SVF::AccessPath::IdxOperandPairs> v;
180
- return h(std::make_pair(ap.getConstantFieldIdx(),
180
+ return h(std::make_pair(ap.getConstantStructFldIdx(),
181
181
  v(ap.getIdxOperandPairVec())));
182
182
  }
183
183
  };
@@ -517,10 +517,10 @@ public:
517
517
  return getAccessPath().computeConstantOffset();
518
518
  }
519
519
  /// Field index of the gep statement if it access the field of a struct
520
- inline APOffset getConstantFieldIdx() const
520
+ inline APOffset getConstantStructFldIdx() const
521
521
  {
522
522
  assert(isVariantFieldGep()==false && "Can't retrieve the AccessPath if using a variable field index (pointer arithmetic) for struct field access ");
523
- return getAccessPath().getConstantFieldIdx();
523
+ return getAccessPath().getConstantStructFldIdx();
524
524
  }
525
525
  /// Gep statement with a variant field index (pointer arithmetic) for struct field access
526
526
  inline bool isVariantFieldGep() const
@@ -420,7 +420,7 @@ public:
420
420
  /// offset of the base value variable
421
421
  inline APOffset getConstantFieldIdx() const
422
422
  {
423
- return ap.getConstantFieldIdx();
423
+ return ap.getConstantStructFldIdx();
424
424
  }
425
425
 
426
426
  /// Return name of a LLVM value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1733",
3
+ "version": "1.0.1734",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {