solidity/test/libsolidity/smtCheckerTests/array_members/push_overflow_1_safe.sol
2021-10-26 11:30:30 +02:00

13 lines
191 B
Solidity

contract C {
uint256[] x;
constructor() { x.push(42); }
function f() public {
x.push(23);
assert(x[0] == 42 || x[0] == 23);
}
}
// ====
// SMTEngine: all
// SMTIgnoreInv: yes
// ----