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

Node API: add true/false branchs for if statement #449

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

montyly
Copy link
Member

@montyly montyly commented Apr 17, 2020

And show true/false arrows in cfg export

Close #433

Example:

contract C{

    function f(bool b, bool c, bool d) public returns(uint){
        if(b){
            return 0;
        }
        else if(c){
            return 1;
        }
        else{

            if(d){
                return 3;
            }

            return 2;
        }
    }

}

image

Note: this does not include IFLOOP statement

@montyly montyly merged commit 453e7a1 into dev Apr 17, 2020
@montyly montyly deleted the dev-true-false-branch branch April 17, 2020 15:41
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.

1 participant