Skip to content

Commit

Permalink
Fix bug in cif
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 13, 2024
1 parent 2e797b9 commit d2a174f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,9 @@ class FrontendXcfaBuilder(
xcfaEdge = XcfaEdge(elseEnd, endLoc, metadata = getMetadata(statement))
builder.addEdge(xcfaEdge)
} else {
xcfaEdge = XcfaEdge(elseBranch, endLoc, metadata = getMetadata(statement))
val elseAfterGuard =
buildPostStatement(guard, ParamPack(builder, elseBranch, breakLoc, continueLoc, returnLoc))
xcfaEdge = XcfaEdge(elseAfterGuard, endLoc, metadata = getMetadata(statement))
builder.addEdge(xcfaEdge)
}
xcfaEdge = XcfaEdge(mainEnd, endLoc, metadata = getMetadata(statement))
Expand Down

0 comments on commit d2a174f

Please sign in to comment.