solidity/test/libsolidity/smtCheckerTests/types/array_dynamic_parameter_1_fail.sol

13 lines
246 B
Solidity

pragma experimental SMTChecker;
contract C
{
function f(uint[] memory array, uint x, uint y) public pure {
array[x] = 200;
require(x == y);
assert(array[y] > 300);
}
}
// ----
// Warning 4661: (148-170): Assertion violation happens here