foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
308 stars 150 forks source link

Flatten recursive functions during function level trace building #2133

Closed piotmag769 closed 4 months ago

piotmag769 commented 4 months ago

Which components does the task require to be changed? (think hard pls)

cairo-profiler

Description

Currently it is done during function index to name translation. It will make the MAX_TRACE_DEPTH not take the the loop functions into account. It can be done for regular recursive functions as well.