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

15 lines
344 B
Solidity
Raw Normal View History

2019-02-20 15:41:54 +00:00
pragma experimental SMTChecker;
contract C
{
uint[][] array;
function f(uint x, uint y, uint z, uint t) public view {
2019-08-22 13:44:30 +00:00
// TODO change to = 200 when 2d assignments are supported.
require(array[x][y] < 200);
2019-02-20 15:41:54 +00:00
require(x == z && y == t);
assert(array[z][t] > 300);
}
}
// ----
2020-07-13 18:48:00 +00:00
// Warning 6328: (243-268): Assertion violation happens here