aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol
blob: 92a3f0fed1d6ffe7adb25c5d32561a02ba610683 (plain) (blame)
1
2
3
4
5
6
7
8
9
pragma experimental SMTChecker;
// Check that condition is assumed.
contract C {
    function f(uint x) public pure {
        while (x == 2) {
            assert(x == 2);
        }
    }
}