aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/functions/functions_identity_1_fail.sol
blob: a70aaf61d3c1637b369a58b1c21b28a27eb7dfde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pragma experimental SMTChecker;
contract C
{
    function h(uint x) public pure returns (uint) {
        return x;
    }
    function g() public pure {
        uint x;
        x = h(0);
        assert(x > 0);
    }
}

// ----
// Warning: (161-174): Assertion violation happens here