2021-03-04 13:23:41 +00:00
|
|
|
pragma abicoder v1;
|
|
|
|
struct Item {
|
|
|
|
uint x;
|
|
|
|
uint y;
|
|
|
|
}
|
|
|
|
|
|
|
|
contract D {
|
|
|
|
Item[] public items;
|
|
|
|
|
|
|
|
function test() public {
|
|
|
|
delete items;
|
|
|
|
items.push(Item(42, 43));
|
|
|
|
(uint a, uint b) = this.items(0);
|
|
|
|
assert(a == 42); // should hold
|
|
|
|
assert(b == 43); // should hold
|
|
|
|
assert(b == 0); // should fail
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2021-03-04 13:23:41 +00:00
|
|
|
// ----
|
2023-02-09 16:07:13 +00:00
|
|
|
// Warning 6328: (267-281): CHC: Assertion violation happens here.
|
|
|
|
// Info 1391: CHC: 2 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|