svf-lib 1.0.738 → 1.0.739
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
|
|
@@ -103,8 +103,9 @@ protected:
|
|
|
103
103
|
NodeID phiId = getDef(cs_ret);
|
|
104
104
|
NodeID retdef = getDef(fun_ret);
|
|
105
105
|
/// If a function does not have any return instruction. The def of a FormalRetVFGNode is itself (see VFG.h: addFormalRetVFGNode).
|
|
106
|
-
/// Therefore, we do not connect return edge from a function without any return instruction.
|
|
107
|
-
|
|
106
|
+
/// Therefore, we do not connect return edge from a function without any return instruction (i.e., pag->isPhiNode(fun_ret)==false)
|
|
107
|
+
/// because unique fun_ret PAGNode was not collected as a PhiNode in SVFIRBuilder::visitReturnInst
|
|
108
|
+
if (pag->isPhiNode(fun_ret)==false)
|
|
108
109
|
return;
|
|
109
110
|
|
|
110
111
|
SVFGEdge* edge = addRetEdge(retdef, phiId, csId);
|