svf-lib 1.0.782 → 1.0.786
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/Util/Options.h +1 -1
- 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/MemoryModel/SVFIR.h +1 -1
- package/SVF-osx/include/MemoryModel/SymbolTableInfo.h +15 -9
- package/SVF-osx/include/Util/Options.h +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -131,7 +131,7 @@ public:
|
|
|
131
131
|
static const llvm::cl::opt<bool> PStat;
|
|
132
132
|
static const llvm::cl::opt<unsigned> StatBudget;
|
|
133
133
|
static const llvm::cl::opt<bool> PAGDotGraph;
|
|
134
|
-
static const llvm::cl::opt<bool>
|
|
134
|
+
static const llvm::cl::opt<bool> ShowSVFIRValue;
|
|
135
135
|
static const llvm::cl::opt<bool> DumpICFG;
|
|
136
136
|
static const llvm::cl::opt<bool> CallGraphDotGraph;
|
|
137
137
|
static const llvm::cl::opt<bool> PAGPrint;
|
|
Binary file
|
|
Binary file
|
|
@@ -409,7 +409,7 @@ public:
|
|
|
409
409
|
{
|
|
410
410
|
const MemObj* obj = getObject(id);
|
|
411
411
|
assert(obj && "not an object node?");
|
|
412
|
-
return SymbolTableInfo::isConstantObj(id) || obj->
|
|
412
|
+
return SymbolTableInfo::isConstantObj(id) || obj->isConstDataOrConstGlobal();
|
|
413
413
|
}
|
|
414
414
|
inline bool isNonPointerObj(NodeID id) const
|
|
415
415
|
{
|
|
@@ -479,9 +479,10 @@ public:
|
|
|
479
479
|
bool isArray() const;
|
|
480
480
|
bool isVarStruct() const;
|
|
481
481
|
bool isVarArray() const;
|
|
482
|
-
bool
|
|
483
|
-
bool
|
|
484
|
-
bool
|
|
482
|
+
bool isConstantStruct() const;
|
|
483
|
+
bool isConstantArray() const;
|
|
484
|
+
bool isConstDataOrConstGlobal() const;
|
|
485
|
+
bool isConstantData() const;
|
|
485
486
|
bool hasPtrObj() const;
|
|
486
487
|
bool isNonPtrFieldObj(const LocationSet& ls) const;
|
|
487
488
|
//@}
|
|
@@ -591,8 +592,9 @@ public:
|
|
|
591
592
|
VAR_ARRAY_OBJ = 0x40, // object contains array
|
|
592
593
|
CONST_STRUCT_OBJ = 0x80, // constant struct
|
|
593
594
|
CONST_ARRAY_OBJ = 0x100, // constant array
|
|
594
|
-
|
|
595
|
-
|
|
595
|
+
CONST_GLOBAL_OBJ = 0x200, // global constant object
|
|
596
|
+
CONST_DATA = 0x400, // constant object str e.g. 5, 10, 1.0
|
|
597
|
+
HASPTR_OBJ = 0x800 // the object stores a pointer address
|
|
596
598
|
} MEMTYPE;
|
|
597
599
|
|
|
598
600
|
private:
|
|
@@ -689,7 +691,7 @@ public:
|
|
|
689
691
|
{
|
|
690
692
|
return hasFlag(VAR_STRUCT_OBJ);
|
|
691
693
|
}
|
|
692
|
-
inline bool
|
|
694
|
+
inline bool isConstantStruct()
|
|
693
695
|
{
|
|
694
696
|
return hasFlag(CONST_STRUCT_OBJ);
|
|
695
697
|
}
|
|
@@ -701,7 +703,7 @@ public:
|
|
|
701
703
|
{
|
|
702
704
|
return hasFlag(VAR_ARRAY_OBJ);
|
|
703
705
|
}
|
|
704
|
-
inline bool
|
|
706
|
+
inline bool isConstantArray()
|
|
705
707
|
{
|
|
706
708
|
return hasFlag(CONST_ARRAY_OBJ);
|
|
707
709
|
}
|
|
@@ -709,9 +711,13 @@ public:
|
|
|
709
711
|
{
|
|
710
712
|
return hasFlag(VAR_ARRAY_OBJ) || hasFlag(CONST_ARRAY_OBJ);
|
|
711
713
|
}
|
|
712
|
-
inline bool
|
|
714
|
+
inline bool isConstDataOrConstGlobal()
|
|
713
715
|
{
|
|
714
|
-
return hasFlag(
|
|
716
|
+
return hasFlag(CONST_GLOBAL_OBJ) || hasFlag(CONST_DATA);
|
|
717
|
+
}
|
|
718
|
+
inline bool isConstantData()
|
|
719
|
+
{
|
|
720
|
+
return hasFlag(CONST_DATA);
|
|
715
721
|
}
|
|
716
722
|
inline bool hasPtrObj()
|
|
717
723
|
{
|
|
@@ -131,7 +131,7 @@ public:
|
|
|
131
131
|
static const llvm::cl::opt<bool> PStat;
|
|
132
132
|
static const llvm::cl::opt<unsigned> StatBudget;
|
|
133
133
|
static const llvm::cl::opt<bool> PAGDotGraph;
|
|
134
|
-
static const llvm::cl::opt<bool>
|
|
134
|
+
static const llvm::cl::opt<bool> ShowSVFIRValue;
|
|
135
135
|
static const llvm::cl::opt<bool> DumpICFG;
|
|
136
136
|
static const llvm::cl::opt<bool> CallGraphDotGraph;
|
|
137
137
|
static const llvm::cl::opt<bool> PAGPrint;
|