solidity/test/libsolidity/smtCheckerTests/types/array_dynamic_2_fail.sol
2020-07-23 18:49:03 +02:00

15 lines
344 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint[][] array;
function f(uint x, uint y, uint z, uint t) public view {
// TODO change to = 200 when 2d assignments are supported.
require(array[x][y] < 200);
require(x == z && y == t);
assert(array[z][t] > 300);
}
}
// ----
// Warning 6328: (243-268): Assertion violation happens here