vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.81k stars 788 forks source link

fix[venom]: move loop invariant assertion to entry block #4098

Closed charles-cooper closed 3 weeks ago

charles-cooper commented 4 weeks ago

What I did

How I did it

How to verify it

Commit message

loop invariant bound check was in the body of the loop, not the entry
block. move it up to the entry so we don't re-check the same assertion
every loop iteration.

Description for the changelog

Cute Animal Picture

![Put a link to a cute animal picture inside the parenthesis-->]()