svf-lib 1.0.2200 → 1.0.2202
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/bin/ae +0 -0
- package/SVF-linux/Release-build/bin/cfl +0 -0
- package/SVF-linux/Release-build/bin/dvf +0 -0
- package/SVF-linux/Release-build/bin/llvm2svf +0 -0
- package/SVF-linux/Release-build/bin/mta +0 -0
- package/SVF-linux/Release-build/bin/saber +0 -0
- package/SVF-linux/Release-build/bin/svf-ex +0 -0
- package/SVF-linux/Release-build/bin/wpa +0 -0
- package/SVF-linux/Release-build/include/SVFIR/SVFIR.h +2 -2
- package/SVF-linux/Release-build/include/SVFIR/SVFValue.h +5 -3
- package/SVF-linux/Release-build/include/SVFIR/SVFVariables.h +2 -3
- package/SVF-linux/Release-build/lib/libSvfCore.a +0 -0
- package/SVF-linux/Release-build/lib/libSvfLLVM.a +0 -0
- package/SVF-osx/Release-build/bin/ae +0 -0
- package/SVF-osx/Release-build/bin/cfl +0 -0
- package/SVF-osx/Release-build/bin/dvf +0 -0
- package/SVF-osx/Release-build/bin/llvm2svf +0 -0
- package/SVF-osx/Release-build/bin/mta +0 -0
- package/SVF-osx/Release-build/bin/saber +0 -0
- package/SVF-osx/Release-build/bin/svf-ex +0 -0
- package/SVF-osx/Release-build/bin/wpa +0 -0
- package/SVF-osx/Release-build/include/SVFIR/SVFIR.h +2 -2
- package/SVF-osx/Release-build/include/SVFIR/SVFValue.h +5 -3
- package/SVF-osx/Release-build/include/SVFIR/SVFVariables.h +2 -3
- package/SVF-osx/Release-build/lib/libSvfCore.a +0 -0
- package/SVF-osx/Release-build/lib/libSvfLLVM.a +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -553,10 +553,10 @@ private:
|
|
|
553
553
|
return addValNode(node);
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
NodeID addArgValNode(NodeID i, u32_t argNo, const ICFGNode* icfgNode, const CallGraphNode* callGraphNode, const SVFType* type
|
|
556
|
+
NodeID addArgValNode(NodeID i, u32_t argNo, const ICFGNode* icfgNode, const CallGraphNode* callGraphNode, const SVFType* type)
|
|
557
557
|
{
|
|
558
558
|
ArgValVar* node =
|
|
559
|
-
new ArgValVar(i, argNo, icfgNode, callGraphNode, type
|
|
559
|
+
new ArgValVar(i, argNo, icfgNode, callGraphNode, type);
|
|
560
560
|
return addValNode(node);
|
|
561
561
|
}
|
|
562
562
|
|
|
@@ -292,6 +292,8 @@ public:
|
|
|
292
292
|
//@}
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
+
class ArgValVar;
|
|
296
|
+
|
|
295
297
|
class SVFFunction : public SVFValue
|
|
296
298
|
{
|
|
297
299
|
friend class LLVMModuleSet;
|
|
@@ -316,7 +318,7 @@ private:
|
|
|
316
318
|
const SVFFunctionType* funcType; /// FunctionType, which is different from the type (PointerType) of this SVFFunction
|
|
317
319
|
SVFLoopAndDomInfo* loopAndDom; /// the loop and dominate information
|
|
318
320
|
const SVFFunction* realDefFun; /// the definition of a function across multiple modules
|
|
319
|
-
std::vector<const
|
|
321
|
+
std::vector<const ArgValVar*> allArgs; /// all formal arguments of this function
|
|
320
322
|
SVFBasicBlock *exitBlock; /// a 'single' basic block having no successors and containing return instruction in a function
|
|
321
323
|
const CallGraphNode *callGraphNode; /// call graph node for this function
|
|
322
324
|
BasicBlockGraph* bbGraph; /// the basic block graph of this function
|
|
@@ -327,7 +329,7 @@ protected:
|
|
|
327
329
|
callGraphNode = cgn;
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
inline void addArgument(
|
|
332
|
+
inline void addArgument(const ArgValVar* arg)
|
|
331
333
|
{
|
|
332
334
|
allArgs.push_back(arg);
|
|
333
335
|
}
|
|
@@ -417,7 +419,7 @@ public:
|
|
|
417
419
|
}
|
|
418
420
|
|
|
419
421
|
u32_t arg_size() const;
|
|
420
|
-
const
|
|
422
|
+
const ArgValVar* getArg(u32_t idx) const;
|
|
421
423
|
bool isVarArg() const;
|
|
422
424
|
|
|
423
425
|
inline bool hasBasicBlock() const
|
|
@@ -368,7 +368,6 @@ class ArgValVar: public ValVar
|
|
|
368
368
|
private:
|
|
369
369
|
const CallGraphNode* cgNode;
|
|
370
370
|
u32_t argNo;
|
|
371
|
-
bool uncalled;
|
|
372
371
|
|
|
373
372
|
protected:
|
|
374
373
|
/// Constructor to create function argument (for SVFIRReader/deserialization)
|
|
@@ -401,7 +400,7 @@ public:
|
|
|
401
400
|
|
|
402
401
|
/// Constructor
|
|
403
402
|
ArgValVar(NodeID i, u32_t argNo, const ICFGNode* icn, const CallGraphNode* callGraphNode,
|
|
404
|
-
const SVFType* svfType
|
|
403
|
+
const SVFType* svfType);
|
|
405
404
|
|
|
406
405
|
/// Return name of a LLVM value
|
|
407
406
|
inline const std::string getValueName() const
|
|
@@ -422,7 +421,7 @@ public:
|
|
|
422
421
|
|
|
423
422
|
inline bool isArgOfUncalledFunction() const
|
|
424
423
|
{
|
|
425
|
-
return
|
|
424
|
+
return getFunction()->isUncalledFunction();
|
|
426
425
|
}
|
|
427
426
|
|
|
428
427
|
virtual bool isPointer() const;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -553,10 +553,10 @@ private:
|
|
|
553
553
|
return addValNode(node);
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
NodeID addArgValNode(NodeID i, u32_t argNo, const ICFGNode* icfgNode, const CallGraphNode* callGraphNode, const SVFType* type
|
|
556
|
+
NodeID addArgValNode(NodeID i, u32_t argNo, const ICFGNode* icfgNode, const CallGraphNode* callGraphNode, const SVFType* type)
|
|
557
557
|
{
|
|
558
558
|
ArgValVar* node =
|
|
559
|
-
new ArgValVar(i, argNo, icfgNode, callGraphNode, type
|
|
559
|
+
new ArgValVar(i, argNo, icfgNode, callGraphNode, type);
|
|
560
560
|
return addValNode(node);
|
|
561
561
|
}
|
|
562
562
|
|
|
@@ -292,6 +292,8 @@ public:
|
|
|
292
292
|
//@}
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
+
class ArgValVar;
|
|
296
|
+
|
|
295
297
|
class SVFFunction : public SVFValue
|
|
296
298
|
{
|
|
297
299
|
friend class LLVMModuleSet;
|
|
@@ -316,7 +318,7 @@ private:
|
|
|
316
318
|
const SVFFunctionType* funcType; /// FunctionType, which is different from the type (PointerType) of this SVFFunction
|
|
317
319
|
SVFLoopAndDomInfo* loopAndDom; /// the loop and dominate information
|
|
318
320
|
const SVFFunction* realDefFun; /// the definition of a function across multiple modules
|
|
319
|
-
std::vector<const
|
|
321
|
+
std::vector<const ArgValVar*> allArgs; /// all formal arguments of this function
|
|
320
322
|
SVFBasicBlock *exitBlock; /// a 'single' basic block having no successors and containing return instruction in a function
|
|
321
323
|
const CallGraphNode *callGraphNode; /// call graph node for this function
|
|
322
324
|
BasicBlockGraph* bbGraph; /// the basic block graph of this function
|
|
@@ -327,7 +329,7 @@ protected:
|
|
|
327
329
|
callGraphNode = cgn;
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
inline void addArgument(
|
|
332
|
+
inline void addArgument(const ArgValVar* arg)
|
|
331
333
|
{
|
|
332
334
|
allArgs.push_back(arg);
|
|
333
335
|
}
|
|
@@ -417,7 +419,7 @@ public:
|
|
|
417
419
|
}
|
|
418
420
|
|
|
419
421
|
u32_t arg_size() const;
|
|
420
|
-
const
|
|
422
|
+
const ArgValVar* getArg(u32_t idx) const;
|
|
421
423
|
bool isVarArg() const;
|
|
422
424
|
|
|
423
425
|
inline bool hasBasicBlock() const
|
|
@@ -368,7 +368,6 @@ class ArgValVar: public ValVar
|
|
|
368
368
|
private:
|
|
369
369
|
const CallGraphNode* cgNode;
|
|
370
370
|
u32_t argNo;
|
|
371
|
-
bool uncalled;
|
|
372
371
|
|
|
373
372
|
protected:
|
|
374
373
|
/// Constructor to create function argument (for SVFIRReader/deserialization)
|
|
@@ -401,7 +400,7 @@ public:
|
|
|
401
400
|
|
|
402
401
|
/// Constructor
|
|
403
402
|
ArgValVar(NodeID i, u32_t argNo, const ICFGNode* icn, const CallGraphNode* callGraphNode,
|
|
404
|
-
const SVFType* svfType
|
|
403
|
+
const SVFType* svfType);
|
|
405
404
|
|
|
406
405
|
/// Return name of a LLVM value
|
|
407
406
|
inline const std::string getValueName() const
|
|
@@ -422,7 +421,7 @@ public:
|
|
|
422
421
|
|
|
423
422
|
inline bool isArgOfUncalledFunction() const
|
|
424
423
|
{
|
|
425
|
-
return
|
|
424
|
+
return getFunction()->isUncalledFunction();
|
|
426
425
|
}
|
|
427
426
|
|
|
428
427
|
virtual bool isPointer() const;
|
|
Binary file
|
|
Binary file
|