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

14 lines
203 B
Solidity
Raw Normal View History

contract C
{
function f(uint x) public pure {
for (x = 0; x < 10; ++x)
break;
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: (69-72): Unreachable code.