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

15 lines
373 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, uint w, uint v) public view {
2019-08-22 13:44:30 +00:00
// TODO change to = 200 when 3d assignments are supported.
require(array[x][y][z] < 200);
2019-02-20 15:41:54 +00:00
require(x == t && y == w && z == v);
assert(array[t][w][v] > 300);
}
}
// ----
2019-08-22 13:44:30 +00:00
// Warning: (274-302): Assertion violation happens here