Skip to content

Conversation

PoorvaGarg
Copy link

@PoorvaGarg PoorvaGarg commented Oct 4, 2024

Fixes #129

functional() failed to handle a break statement inside a loop but outside an if-then-else. The source of this bug was the function dominators(cfg; entry = 1) in src/passes/passes.jl not handling the unreachable blocks of the control flow graph properly. This pull request fixes that and adds relevant tests.

PR Checklist

  • [ YES] Tests are added
  • [ N/A] Documentation, if applicable

@PoorvaGarg PoorvaGarg changed the title Fixes bug for while break Bugfix: functional() throws error for a break statement Oct 4, 2024
@PoorvaGarg PoorvaGarg marked this pull request as ready for review October 4, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

functional() throws error for a break statement
1 participant