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

15 lines
378 B
Solidity

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