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

14 lines
235 B
Solidity

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