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

16 lines
231 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f(uint x) public pure {
x = 0;
while (x < 10)
break;
assert(x == 0);
}
}
// ====
// SMTSolvers: z3
// ----
// Warning 6838: (98-104): BMC: Condition is always true.