ethereum / ethereum/evmjit

Check that gas computation and other metering is removed from loops

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.