solidity/test/libsolidity/smtCheckerTests/array_members/array_pop_length_3.sol
2022-04-01 23:41:18 -05:00

13 lines
426 B
Solidity

contract C {
uint[] a;
function f() public {
a.pop();
a.pop();
}
}
// ====
// SMTEngine: all
// ----
// Warning 2529: (49-56='a.pop()'): CHC: Empty array "pop" happens here.\nCounterexample:\na = []\n\nTransaction trace:\nC.constructor()\nState: a = []\nC.f()
// Warning 2529: (60-67='a.pop()'): CHC: Empty array "pop" happens here.\nCounterexample:\na = []\n\nTransaction trace:\nC.constructor()\nState: a = []\nC.f()