mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
341 B
Solidity
15 lines
341 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C {
|
|
uint[][] a;
|
|
function f(uint[] memory x, uint y) public {
|
|
a.push(x);
|
|
a[0].push(y);
|
|
a[0].pop();
|
|
assert(a[0][a[0].length - 1] == y);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 4144: (162-177): Underflow (resulting value less than 0) happens here
|
|
// Warning 4661: (150-184): Assertion violation happens here
|