2020-11-12 14:29:08 +00:00
|
|
|
contract c {
|
|
|
|
uint spacer1;
|
|
|
|
uint spacer2;
|
|
|
|
uint[20] data;
|
|
|
|
function fill() public {
|
|
|
|
for (uint i = 0; i < data.length; ++i) data[i] = i+1;
|
|
|
|
}
|
|
|
|
function clear() public { delete data; }
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-02-12 12:45:15 +00:00
|
|
|
// compileViaYul: also
|
2020-11-12 14:29:08 +00:00
|
|
|
// ----
|
|
|
|
// storage: empty
|
|
|
|
// fill() ->
|
2021-04-08 12:57:18 +00:00
|
|
|
// gas irOptimized: 423878
|
2021-02-12 12:45:15 +00:00
|
|
|
// gas legacy: 429460
|
|
|
|
// gas legacyOptimized: 425520
|
2020-11-12 14:29:08 +00:00
|
|
|
// storage: nonempty
|
|
|
|
// clear() ->
|
|
|
|
// storage: empty
|