svf-lib 1.0.1794 → 1.0.1795
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.
- package/SVF-osx/Release-build/svf/libSvfCore.a +0 -0
- package/SVF-osx/Release-build/svf-llvm/libSvfLLVM.a +0 -0
- package/SVF-osx/svf/include/AbstractExecution/SVFIR2ConsExeState.h +0 -2
- package/SVF-osx/svf/include/AbstractExecution/SVFIR2ItvExeState.h +0 -3
- package/SVF-osx/svf/include/SVFIR/SymbolTableInfo.h +0 -6
- package/SVF-osx/svf-llvm/include/SVF-LLVM/LLVMUtil.h +0 -21
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -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
|
{
|