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

16 lines
187 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
uint[][] c;
function f(bool b) public {
c[0][0] = 0;
if (b)
c[0][0] = 1;
else
c[0][0] = 2;
assert(c[0][0] > 0);
}
}
// ----