svf-lib 1.0.1443 → 1.0.1445

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.
@@ -215,6 +215,7 @@ public:
215
215
  static const Option<bool> LocMemModel;
216
216
  static const Option<bool> ModelConsts;
217
217
  static const Option<bool> ModelArrays;
218
+ static const Option<bool> CyclicFldIdx;
218
219
  static const Option<bool> SymTabPrint;
219
220
 
220
221
  // Conditions.cpp
@@ -42,6 +42,7 @@ class SVFIR2ItvExeState
42
42
  {
43
43
  public:
44
44
  typedef ExeState::VAddrs VAddrs;
45
+ static VAddrs globalNullVaddrs;
45
46
  public:
46
47
  SVFIR2ItvExeState(SVFIR *ir) : _svfir(ir) {}
47
48
 
@@ -89,7 +90,10 @@ public:
89
90
 
90
91
  inline VAddrs &getVAddrs(u32_t id)
91
92
  {
92
- return _es.getVAddrs(id);
93
+ if (inVarToAddrsTable(id))
94
+ return _es.getVAddrs(id);
95
+ else
96
+ return globalNullVaddrs;
93
97
  }
94
98
 
95
99
  inline bool inVarToIValTable(u32_t id) const
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1443",
3
+ "version": "1.0.1445",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {