solidity/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol

10 lines
189 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
// Check that condition is assumed.
contract C {
function f(uint x) public pure {
while (x == 2) {
assert(x == 2);
}
}
}