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

15 lines
225 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint[][] c;
function f(bool b) public {
c[0][0] = 0;
if (b)
c[0][0] = 1;
assert(c[0][0] > 0);
}
}
// ----
// Warning 4661: (130-149): Assertion violation happens here