Skip to content

[Bug]: incorrect cfg when more than one arguments of a function call are ternary expressions #1851

Open
@Troublor

Description

@Troublor

Describe the issue:

When more than one arguments of a function call are ternary expressions, only one of the ternary expression are included in CFG.

Code example to reproduce the issue:

contract A {
    function f(uint x) public {
        g(x > 0 ? 1 : 2, x > 1 ? 3 : 4);
    }
    function g(uint x, uint y) private {
    }
}

Version:

0.9.3

Relevant log output:

See the CFG below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcfg

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions