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

11 lines
256 B
Solidity

contract C {
uint[] a;
function f() public {
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()