svf-lib 1.0.2036 → 1.0.2037

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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -174,6 +174,11 @@ public:
174
174
  }
175
175
  inline void addGlobalValueMap(const GlobalValue* glob, SVFGlobalValue* svfglob)
176
176
  {
177
+ if (auto glob_var = llvm::dyn_cast<llvm::GlobalVariable>(glob);
178
+ hasGlobalRep(glob_var))
179
+ {
180
+ glob = getGlobalRep(glob_var);
181
+ }
177
182
  LLVMConst2SVFConst[glob] = svfglob;
178
183
  setValueAttr(glob,svfglob);
179
184
  }
@@ -232,6 +237,11 @@ public:
232
237
 
233
238
  inline SVFGlobalValue* getSVFGlobalValue(const GlobalValue* g) const
234
239
  {
240
+ if (auto glob_var = llvm::dyn_cast<llvm::GlobalVariable>(g);
241
+ hasGlobalRep(glob_var))
242
+ {
243
+ g = getGlobalRep(glob_var);
244
+ }
235
245
  LLVMConst2SVFConstMap::const_iterator it = LLVMConst2SVFConst.find(g);
236
246
  assert(it!=LLVMConst2SVFConst.end() && "SVF Global not found!");
237
247
  assert(SVFUtil::isa<SVFGlobalValue>(it->second) && "not a SVFGlobal type!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2036",
3
+ "version": "1.0.2037",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {