aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/functions/functions_identity_2_fail.sol
blob: 9baeb935176bb15a04ee300d382716a253207e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pragma experimental SMTChecker;
contract C
{
    function h(uint x) public pure returns (uint) {
        return k(x);
    }

    function k(uint x) public pure returns (uint) {
        return x;
    }
    function g() public pure {
        uint x;
        x = h(0);
        assert(x > 0);
    }
}

// ----
// Warning: (229-242): Assertion violation happens here