NethermindEth / cairo-vm-go

A virtual machine for Cairo written in Go
MIT License
79 stars 49 forks source link

feat: `SquashDictInnerSkipLoop` hint #407

Closed TAdev0 closed 3 months ago

TAdev0 commented 3 months ago

Resolves #297

This PR implements SquashDictInnerSkipLoop hint, very similar to SquashDictInnerContinueLoop hint.

we don't manipulate LoopTemps struct here but will instead set should_skip_loop Cairo local variable to 0 or 1, depending on whether current_access_indices array still contains elements or not.

Note i didnt respect the logic location of this hint in dict hint files, to avoid confllicts with SquashDictInnerContinueLoop current PR

TAdev0 commented 3 months ago

@har777 comments addressed!