aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/loops/for_loop_6.sol
blob: 90c4c3287d84ac12273a1378fa0713c2e5a578f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
pragma experimental SMTChecker;
contract C {
    function f(uint x) public pure {
        uint y;
        for (y = 2; x < 10; ) {
            y = 3;
        }
        assert(y == 2);
    }
}
// ----
// Warning: (167-181): Assertion violation happens here\nNote that some information is erased after the execution of loops.\nYou can re-introduce information using require().