You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -24,7 +24,7 @@ If `myArray` uses `calldata` instead of `memory`, both versions produce the same
Given that the EVM only supports `LT` and `GT` but not `LTE` or `GTE`, solc implements `x<=y` as `!(x>y)`. However, given a constant `MAX`, since solc resolves `MAX + 1` at compile time, `< MAX + 1` saves one `ISZERO` opcode.
## consider using `eagerAnd` and `eagerOr` over short-curcuiting`&&` and `||`
## consider using `eagerAnd` and `eagerOr` over short-circuiting`&&` and `||`
Short-circuiting `lhs && rhs` requires _at least_ the insertion of: