zink-lang / zink

Rustic programming language that targets the Ethereum Virtual Machine
https://zink-lang.org
GNU General Public License v3.0
137 stars 12 forks source link

Refactor control stack to support complex control flow #287

Open clearloop opened 10 hours ago

clearloop commented 10 hours ago

when we have return logic which is not at the end of function, it could be trigged incorrectly since the jump target for the end of the control frame is not correctly calculated, see the details at https://github.com/zink-lang/zink/blob/main/examples/br_balance.rs#L17

this could be the last fragment to ERC20