aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/loops/while_1_fail.sol
blob: 6964f7c87af97b915c8102a16c88b1066653a1f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pragma experimental SMTChecker;

contract C
{
    function f(uint x) public pure {
        require(x < 100);
        while (x < 10) {
            x = x + 1;
        }
        assert(x < 14);
    }
}
// ----
// Warning: (139-153): Assertion violation happens here