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

14 lines
237 B
Solidity

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