svf-lib 1.0.1041 → 1.0.1044
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-linux/Release-build/lib/libSvf.a +0 -0
- package/SVF-linux/include/MemoryModel/SymbolTableInfo.h +3 -2
- package/SVF-linux/include/SVF-FE/LLVMUtil.h +13 -3
- package/SVF-linux/include/SVF-FE/SymbolTableBuilder.h +2 -0
- package/SVF-osx/Release-build/lib/CUDD/libCudd.a +0 -0
- package/SVF-osx/Release-build/lib/libSvf.a +0 -0
- package/SVF-osx/include/SVF-FE/SymbolTableBuilder.h +2 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -88,6 +88,8 @@ private:
|
|
|
88
88
|
IDToMemMapTy objMap; ///< map a memory sym id to its obj
|
|
89
89
|
|
|
90
90
|
CallSiteSet callSiteSet;
|
|
91
|
+
Set<const Value*> nullPtrSyms;
|
|
92
|
+
Set<const Value*> blackholeSyms;
|
|
91
93
|
|
|
92
94
|
// Singleton pattern here to enable instance of SymbolTableInfo can only be created once.
|
|
93
95
|
static SymbolTableInfo* symInfo;
|
|
@@ -162,8 +164,7 @@ public:
|
|
|
162
164
|
/// special value
|
|
163
165
|
// @{
|
|
164
166
|
static bool isNullPtrSym(const Value *val);
|
|
165
|
-
|
|
166
|
-
bool isConstantObjSym(const Value *val);
|
|
167
|
+
static bool isBlackholeSym(const Value *val);
|
|
167
168
|
|
|
168
169
|
static inline bool isBlkPtr(NodeID id)
|
|
169
170
|
{
|
|
@@ -44,15 +44,25 @@ namespace SVFUtil
|
|
|
44
44
|
{
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
47
|
/// Check whether this value is a black hole
|
|
50
48
|
inline bool isBlackholeSym(const Value *val)
|
|
51
49
|
{
|
|
52
50
|
return (SVFUtil::isa<UndefValue>(val));
|
|
53
51
|
}
|
|
54
52
|
|
|
55
|
-
|
|
53
|
+
/// Check whether this value is a black hole
|
|
54
|
+
inline bool isNullPtrSym(const Value *val)
|
|
55
|
+
{
|
|
56
|
+
if (const Constant* v = SVFUtil::dyn_cast<Constant>(val))
|
|
57
|
+
{
|
|
58
|
+
return v->isNullValue() && v->getType()->isPointerTy();
|
|
59
|
+
}
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/// Check whether this value points-to a constant object
|
|
64
|
+
bool isConstantObjSym(const Value *val);
|
|
65
|
+
|
|
56
66
|
|
|
57
67
|
/// Whether an instruction is a return instruction
|
|
58
68
|
inline bool isReturn(const Instruction* inst)
|
|
Binary file
|
|
Binary file
|