Move AND with constant inside OR.

This commit is contained in:
chriseth
2021-03-09 15:26:19 +01:00
parent 1d95f95635
commit 40c27ccc22
7 changed files with 152 additions and 0 deletions
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;
contract OptimizeFullSlotWrite {
uint64[4] nums;
function f() public {
nums[0] = 11111;
nums[1] = 22222;
nums[2] = 33333;
nums[3] = 44444;
}
}