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

11 lines
177 B
Solidity
Raw Normal View History

2019-02-20 15:41:54 +00:00
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] > 100);
}
}