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

14 lines
287 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint[10][20] array;
function f(uint x, uint y, uint z, uint t) public view {
require(array[x][y] < 200);
require(x == z && y == t);
assert(array[z][t] > 300);
}
}
// ----
// Warning 6328: (186-211): Assertion violation happens here