mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
23 lines
405 B
Solidity
23 lines
405 B
Solidity
contract C
|
|
{
|
|
function f(uint z) public pure {
|
|
uint x = 0;
|
|
require(z == 0);
|
|
do {
|
|
uint y = 0;
|
|
do {
|
|
++z;
|
|
++y;
|
|
} while (y < 2);
|
|
++x;
|
|
} while (x < 2);
|
|
assert(z == 4);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: bmc
|
|
// SMTSolvers: z3
|
|
// BMCLoopIterations: 3
|
|
// ----
|
|
// Info 6002: BMC: 4 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|