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

repeat until statement should negate the condition #88

Open
dibyendumajumdar opened this issue Nov 10, 2022 · 0 comments
Open

repeat until statement should negate the condition #88

dibyendumajumdar opened this issue Nov 10, 2022 · 0 comments
Assignees
Labels
bug Something isn't working fixed Fix implemented linearizer Component: Linearizer

Comments

@dibyendumajumdar
Copy link
Owner

This code gives wrong result because the condition is not negated.

local i = 0
repeat
    i = i + 1
until i == 10

assert(i == 10)
@dibyendumajumdar dibyendumajumdar added bug Something isn't working linearizer Component: Linearizer labels Nov 10, 2022
@dibyendumajumdar dibyendumajumdar self-assigned this Nov 10, 2022
dibyendumajumdar added a commit that referenced this issue Nov 10, 2022
@dibyendumajumdar dibyendumajumdar added the fixed Fix implemented label Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Fix implemented linearizer Component: Linearizer
Projects
None yet
Development

No branches or pull requests

1 participant