Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/exec: Correctly pop loops when CONTINUE_OP is called #142

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

ElectrodeYT
Copy link
Member

This fixes an issue where a Continue would not pop the actual loop itself, which would manifest in weird execution flow.

Fixes #141

@ElectrodeYT ElectrodeYT marked this pull request as draft December 13, 2023 16:39
@qookei
Copy link
Member

qookei commented Dec 13, 2023

Can you add the example code from the issue into the regression tests in lai_tools?

@ElectrodeYT
Copy link
Member Author

Can you add the example code from the issue into the regression tests in lai_tools?

One moment, I just saw with my own test that my fix is flawed :meme:
Yes, I will add tests (probably for loops and continue / break in general)

This fixes an issue where a Continue would not pop the actual loop itself,
which would manifest in weird execution flow.

Fixes managarm#141
@ElectrodeYT ElectrodeYT marked this pull request as ready for review December 13, 2023 17:08
@ElectrodeYT
Copy link
Member Author

lai_tools#19 is the PR for the test case for this.

@qookei qookei merged commit 8cc0b53 into managarm:master Feb 3, 2024
2 checks passed
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.

Continue doesn't know how to find innermost While
2 participants