Check that gas computation and other metering is removed from loops
Open
- Dominant language
- C++
- Stars
- 169
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
If a loop iteration consumes constant gas (`g`) and the number of iterations is "known" (`n`) in advance, the optimizer should convert the out-of-gas checks into a single `if (gas <= n * g) throw` before entering the loop.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.