foundry-rs / compilers

Utilities for working with native solc and compiling projects.
Apache License 2.0
71 stars 41 forks source link

Missing Optimization Field (simpleCounterForLoopUncheckedIncrement) in Foundry Configuration #99

Closed ZhangZhuoSJTU closed 5 months ago

ZhangZhuoSJTU commented 5 months ago

In the Solidity JSON input, a compilation optimization flag simpleCounterForLoopUncheckedIncrement is added to indicate using unchecked arithmetic when incrementing the counter of for loops under certain circumstances. However, in the current codebase, this field is missing.

This issue is also related to the PR mentioned in https://github.com/foundry-rs/foundry/pull/7576#discussion_r1562365875.