solidity/test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol
2019-12-09 15:32:08 +01:00

12 lines
215 B
Solidity

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