-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize segments + layout flags (plain, small, starknet_with_keccak) (…
…#432) * Add finalize method, calculation of builtin segment size, builtins parameters * Add end_run method and helper methods, modify the builtins values to match layout small * Fixed usage of constants in builtins, added checking range check limits * remove vm traces * Linter errors * Debug finalization * Debug range check limits calculation * Fix builtins test errors * Debug output segment finalisation, add annotations to what should be moved to the layout * Modify mock integration test, add annotations to the functions * Add annotations * Add new annotations * Add layouts * Temporarily modify integration testsuite * Fix layout problems * removed unused layout plain * Layout flag with layouts: plain, small, all_cairo (#435) * Create layout flag with layouts plain and small * Fix error handling * Fix error handling * Add layout flag to Nethermind vm in the integration tests * Fix unit tests * Fix builtins integration tests, add layouts to builtins tests, remove failing "slices" package * Refactor code, remove unnecessary comments * Replace unsupported "all_cairo" layout with "starknet_with_keccak" * Lint the project * Add builtin metadata and GetAllocatedSize to PoseidonBuiltin * Add Poseidon Builtin to starknet_with_keccak layout * Fix integration tests for poseidon builtin * Address first batch of comments * use correct constant for poseidon builtin * Add starknet builtin detection without type assertion * Add comments for layout struct fields * Address comments from PR, move calculating allocated size to separate functionality * Address comment regarding backward iteration on range check usage method * Add starknet_with_keccak to the integration tests in the python VM run --------- Co-authored-by: Harikrishnan Shaji <[email protected]> Co-authored-by: Tristan <[email protected]> Co-authored-by: cicr99 <[email protected]>
- Loading branch information
1 parent
00d2ab3
commit c9d6cf7
Showing
27 changed files
with
413 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
integration_tests/cairo_files/test.starknet_with_keccak.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
func main() { | ||
return (); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.