solidity/test/cmdlineTests/model_checker_targets_error/input.sol
2021-04-08 21:03:39 +02:00

15 lines
260 B
Solidity

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract test {
uint[] arr;
function f(address payable a, uint x) public {
require(x >= 0);
--x;
x + type(uint).max;
2 / x;
a.transfer(x);
assert(x > 0);
arr.pop();
arr[x];
}
}