svf-lib 1.0.1728 → 1.0.1729
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.
|
Binary file
|
|
Binary file
|
|
@@ -339,13 +339,13 @@ public:
|
|
|
339
339
|
return fun;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
/// Return
|
|
342
|
+
/// Return formal return parameter
|
|
343
343
|
inline const SVFVar *getFormalRet() const
|
|
344
344
|
{
|
|
345
345
|
return formalRet;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
/// Add
|
|
348
|
+
/// Add formal return parameter
|
|
349
349
|
inline void addFormalRet(const SVFVar *fr)
|
|
350
350
|
{
|
|
351
351
|
formalRet = fr;
|
|
@@ -416,7 +416,7 @@ public:
|
|
|
416
416
|
inline const SVFBasicBlock* getExitBB() const
|
|
417
417
|
{
|
|
418
418
|
assert(hasBasicBlock() && "function does not have any Basicblock, external function?");
|
|
419
|
-
assert((
|
|
419
|
+
assert((hasReturn() && exitBlock) && "ensure the function has a single basic block containing a return instruction!");
|
|
420
420
|
return exitBlock;
|
|
421
421
|
}
|
|
422
422
|
|
|
@@ -461,9 +461,9 @@ public:
|
|
|
461
461
|
return isUncalled;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
inline bool
|
|
464
|
+
inline bool hasReturn() const
|
|
465
465
|
{
|
|
466
|
-
return
|
|
466
|
+
return !isNotRet;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
inline const std::vector<std::string>& getAnnotations() const
|