Skip to content

Commit 27dc9fb

Browse files
authored
Merge pull request #1230 from bjjwwang/1018
Fix Wto for CFBBGraph
2 parents b424770 + d00d405 commit 27dc9fb

File tree

1 file changed

+2
-0
lines changed
  • svf/include/AbstractExecution

1 file changed

+2
-0
lines changed

svf/include/AbstractExecution/WTO.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,8 @@ class CFBasicBlockGWTO
824824
for (auto it = node->getOutEdges().begin(), et = node->getOutEdges().end(); it != et; ++it)
825825
{
826826
const CFBasicBlockNode *succ = (*it)->getDstNode();
827+
if (succ->getFunction() != node->getFunction())
828+
continue;
827829
CycleDepthNumber succ_dfn = getCDN(succ);
828830
if (succ_dfn == CycleDepthNumber(0))
829831
{

0 commit comments

Comments
 (0)