svf-lib 1.0.1990 → 1.0.1992

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
@@ -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()
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -111,6 +111,18 @@ public:
111
111
  return consCG;
112
112
  }
113
113
 
114
+ /// SCC methods
115
+ //@{
116
+ inline NodeID sccRepNode(NodeID id) const override
117
+ {
118
+ return consCG->sccRepNode(id);
119
+ }
120
+ inline NodeBS& sccSubNodes(NodeID repId)
121
+ {
122
+ return consCG->sccSubNodes(repId);
123
+ }
124
+ //@}
125
+
114
126
  /// dump statistics
115
127
  inline void printStat()
116
128
  {
@@ -203,18 +215,6 @@ public:
203
215
  }
204
216
  //@}
205
217
 
206
- /// SCC methods
207
- //@{
208
- inline NodeID sccRepNode(NodeID id) const
209
- {
210
- return consCG->sccRepNode(id);
211
- }
212
- inline NodeBS& sccSubNodes(NodeID repId)
213
- {
214
- return consCG->sccSubNodes(repId);
215
- }
216
- //@}
217
-
218
218
  /// Operation of points-to set
219
219
  virtual inline const PointsTo& getPts(NodeID id)
220
220
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1990",
3
+ "version": "1.0.1992",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {