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

16 lines
220 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
uint x;
do {
continue;
x = 1;
} while (x == 0);
assert(x == 0);
}
}
// ====
2021-03-31 15:11:54 +00:00
// SMTEngine: all
// SMTSolvers: z3
// ----
2021-03-31 15:11:54 +00:00
// Warning 5740: (74-79): Unreachable code.