svf-lib 1.0.1794 → 1.0.1796

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.
@@ -444,6 +444,7 @@ const Argument* getConstructorThisPtr(const Function* fun);
444
444
  const Value* getVCallThisPtr(const CallBase* cs);
445
445
  const Value* getVCallVtblPtr(const CallBase* cs);
446
446
  s32_t getVCallIdx(const CallBase* cs);
447
+ bool classTyHasVTable(const StructType* ty);
447
448
  std::string getClassNameFromType(const StructType* ty);
448
449
  std::string getClassNameOfThisPtr(const CallBase* cs);
449
450
  std::string getFunNameOfVCallSite(const CallBase* cs);
@@ -97,8 +97,6 @@ public:
97
97
  /// Init ConZ3Expr for ObjVar
98
98
  void initObjVar(const ObjVar *objVar, u32_t varId);
99
99
 
100
- void initValVar(const ValVar *objVar, u32_t varId);
101
-
102
100
  void initSVFVar(u32_t varId);
103
101
 
104
102
  void moveToGlobal();
@@ -93,9 +93,6 @@ public:
93
93
 
94
94
  void applySummary(IntervalExeState &es);
95
95
 
96
- /// Init ValVar
97
- void initValVar(const ValVar *valVar, u32_t varId);
98
-
99
96
  /// Init ObjVar
100
97
  void initObjVar(const ObjVar *objVar, u32_t varId);
101
98
 
@@ -456,7 +456,6 @@ public:
456
456
  bool isConstantArray() const;
457
457
  bool isConstDataOrConstGlobal() const;
458
458
  bool isConstDataOrAggData() const;
459
- bool hasPtrObj() const;
460
459
  //@}
461
460
 
462
461
  /// Operator overloading
@@ -492,7 +491,6 @@ public:
492
491
  CONST_ARRAY_OBJ = 0x100, // constant array
493
492
  CONST_GLOBAL_OBJ = 0x200, // global constant object
494
493
  CONST_DATA = 0x400, // constant object str e.g. 5, 10, 1.0
495
- HASPTR_OBJ = 0x800 // the object stores a pointer address
496
494
  } MEMTYPE;
497
495
 
498
496
  private:
@@ -642,10 +640,6 @@ public:
642
640
  {
643
641
  return hasFlag(CONST_DATA);
644
642
  }
645
- inline bool hasPtrObj()
646
- {
647
- return hasFlag(HASPTR_OBJ);
648
- }
649
643
  //@}
650
644
  };
651
645
 
@@ -353,27 +353,6 @@ void removeUnusedGlobalVariables(Module* module);
353
353
  /// Delete unused functions, annotations and global variables in extapi.bc
354
354
  void removeUnusedFuncsAndAnnotationsAndGlobalVariables(std::vector<Function*> removedFuncList);
355
355
 
356
- inline u32_t SVFType2ByteSize(const SVFType* type)
357
- {
358
- const llvm::Type* llvm_rhs = LLVMModuleSet::getLLVMModuleSet()->getLLVMType(type);
359
- const llvm::PointerType* llvm_rhs_ptr = SVFUtil::dyn_cast<PointerType>(llvm_rhs);
360
- assert(llvm_rhs_ptr && "not a pointer type?");
361
- // TODO: getPtrElementType need type inference
362
- const Type *ptrElementType = getPtrElementType(llvm_rhs_ptr);
363
- u32_t llvm_rhs_size = LLVMUtil::getTypeSizeInBytes(ptrElementType);
364
- u32_t llvm_elem_size = -1;
365
- if (ptrElementType->isArrayTy() && llvm_rhs_size > 0)
366
- {
367
- size_t array_len = ptrElementType->getArrayNumElements();
368
- llvm_elem_size = llvm_rhs_size / array_len;
369
- }
370
- else
371
- {
372
- llvm_elem_size =llvm_rhs_size;
373
- }
374
- return llvm_elem_size;
375
- }
376
-
377
356
  /// Get the corresponding Function based on its name
378
357
  inline const SVFFunction* getFunction(const std::string& name)
379
358
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1794",
3
+ "version": "1.0.1796",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {