svf-lib 1.0.1727 → 1.0.1728

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.
@@ -341,13 +341,13 @@ public:
341
341
  return fun;
342
342
  }
343
343
 
344
- /// Return actual return parameter
344
+ /// Return formal return parameter
345
345
  inline const SVFVar *getFormalRet() const
346
346
  {
347
347
  return formalRet;
348
348
  }
349
349
 
350
- /// Add actual return parameter
350
+ /// Add formal return parameter
351
351
  inline void addFormalRet(const SVFVar *fr)
352
352
  {
353
353
  formalRet = fr;
@@ -418,7 +418,7 @@ public:
418
418
  inline const SVFBasicBlock* getExitBB() const
419
419
  {
420
420
  assert(hasBasicBlock() && "function does not have any Basicblock, external function?");
421
- assert((!isNotRet && exitBlock) && "ensure the function has a single basic block containing a return instruction!");
421
+ assert((hasReturn() && exitBlock) && "ensure the function has a single basic block containing a return instruction!");
422
422
  return exitBlock;
423
423
  }
424
424
 
@@ -463,9 +463,9 @@ public:
463
463
  return isUncalled;
464
464
  }
465
465
 
466
- inline bool isNotRetFunction() const
466
+ inline bool hasReturn() const
467
467
  {
468
- return isNotRet;
468
+ return !isNotRet;
469
469
  }
470
470
 
471
471
  inline const std::vector<std::string>& getAnnotations() const
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1727",
3
+ "version": "1.0.1728",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {