mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
272 B
Solidity
19 lines
272 B
Solidity
contract C
|
|
{
|
|
uint256[] y;
|
|
|
|
function f() public view {
|
|
uint256 x = 0;
|
|
while (x < y.length) {
|
|
x = 1;
|
|
}
|
|
// tests that constant condition warning is not reported
|
|
require(x != 0);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: bmc
|
|
// SMTSolvers: z3
|
|
// BMCLoopIterations: 1
|
|
// ----
|