svf-lib 1.0.1988 → 1.0.1990

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
@@ -26,8 +26,11 @@
26
26
  namespace SVF
27
27
  {
28
28
 
29
- struct AbstractValue
29
+ class AbstractValue
30
30
  {
31
+
32
+ public:
33
+
31
34
  enum DataType
32
35
  {
33
36
  IntervalType,
Binary file
Binary file
@@ -125,6 +125,21 @@ public:
125
125
  }
126
126
  return *this;
127
127
  }
128
+
129
+ AbstractValue& operator=(const IntervalValue& other)
130
+ {
131
+ type = IntervalType;
132
+ interval = other;
133
+ return *this;
134
+ }
135
+
136
+ AbstractValue& operator=(const AddressValue& other)
137
+ {
138
+ type = AddressType;
139
+ addr = other;
140
+ return *this;
141
+ }
142
+
128
143
  AbstractValue operator==(const AbstractValue& other) const
129
144
  {
130
145
  assert(isInterval() && other.isInterval());
@@ -364,10 +364,10 @@ private:
364
364
 
365
365
  protected:
366
366
  // helper functions in handleCycle
367
- bool widenFixpointPass(const ICFGNode* cycle_head,
368
- AbstractState& pre_es);
369
- bool narrowFixpointPass(const ICFGNode* cycle_head,
370
- AbstractState& pre_es);
367
+ bool isFixPointAfterWidening(const ICFGNode* cycle_head,
368
+ AbstractState& pre_as);
369
+ bool isFixPointAfterNarrowing(const SVF::ICFGNode* cycle_head,
370
+ SVF::AbstractState& pre_as);
371
371
 
372
372
  AbstractState& getAbsState(const ICFGNode* node)
373
373
  {
@@ -84,7 +84,7 @@ public:
84
84
  AbstractValue getByteOffset(const AbstractState& es, const GepStmt *gep);
85
85
 
86
86
  /// Return the offset expression of a GepStmt
87
- AbstractValue getItvOfFlattenedElemIndex(const AbstractState& es, const GepStmt *gep);
87
+ AbstractValue getElementIndex(const AbstractState& es, const GepStmt *gep);
88
88
 
89
89
 
90
90
  static z3::context &getContext()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1988",
3
+ "version": "1.0.1990",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {