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

14 lines
287 B
Solidity
Raw Normal View History

2019-02-20 15:41:54 +00:00
pragma experimental SMTChecker;
contract C
{
uint[10][20] array;
function f(uint x, uint y, uint z, uint t) public view {
2019-08-22 13:44:30 +00:00
require(array[x][y] < 200);
2019-02-20 15:41:54 +00:00
require(x == z && y == t);
assert(array[z][t] > 300);
}
}
// ----
// Warning 4661: (186-211): Assertion violation happens here