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

Incorrect do-while CFG #97

Closed
krx opened this issue Dec 10, 2018 · 1 comment
Closed

Incorrect do-while CFG #97

krx opened this issue Dec 10, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@krx
Copy link

krx commented Dec 10, 2018

The following loop outputs the wrong CFG

function dowhile() public {
    uint8 i = 0;
    uint8 a;
    do {
        i++;
        a = 1;
        a = 2;
        a = 3;
    } while (i < 10);
}

out

Correct output would look like this:
out2

@montyly montyly added the bug Something isn't working label Dec 11, 2018
@montyly
Copy link
Member

montyly commented Dec 12, 2018

Fixed in master

@montyly montyly closed this as completed Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants