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

19 lines
339 B
Solidity

contract C
{
function f() public pure {
uint x;
do {
if (x >= 2)
++x;
++x;
} while (x < 3);
assert(x == 4);
}
}
// ====
// SMTEngine: bmc
// SMTSolvers: z3
// BMCLoopIterations: 5
// ----
// Info 6002: BMC: 3 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.