solidity/test/libsolidity/smtCheckerTests/array_members/push_overflow_1_safe.sol

12 lines
170 B
Solidity
Raw Normal View History

2020-05-17 18:20:17 +00:00
contract C {
uint256[] x;
2020-06-23 12:14:24 +00:00
constructor() { x.push(42); }
2020-05-17 18:20:17 +00:00
function f() public {
x.push(23);
assert(x[0] == 42 || x[0] == 23);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----