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

15 lines
384 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint[10][20][30] 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: (280-308): Assertion violation happens here