-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(os hint): load compiled classes
- Loading branch information
Showing
10 changed files
with
126 additions
and
28 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
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
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,17 @@ | ||
%builtins output | ||
|
||
func main(output_ptr: felt*) -> (output_ptr: felt*) { | ||
alloc_locals; | ||
local compiled_class_facts; | ||
local n_compiled_class_facts; | ||
%{ | ||
ids.compiled_class_facts = segments.add() | ||
ids.n_compiled_class_facts = len(os_input.compiled_classes) | ||
vm_enter_scope({ | ||
'compiled_class_facts': iter(os_input.compiled_classes.items()), | ||
}) | ||
%} | ||
// When entering a scope we need to exit it afterwards otherwise the vm panics. | ||
%{ vm_exit_scope() %} | ||
return(output_ptr = output_ptr); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%builtins output | ||
|
||
func main(output_ptr: felt*) -> (output_ptr: felt*) { | ||
alloc_locals; | ||
local compiled_class_facts; | ||
local n_compiled_class_facts; | ||
%{ | ||
ids.compiled_class_facts = segments.add() | ||
ids.n_compiled_class_facts = len(os_input.compiled_classes) | ||
vm_enter_scope({ | ||
'compiled_class_facts': iter(os_input.compiled_classes.items()), | ||
}) | ||
%} | ||
// When entering a scope we need to exit it afterwards otherwise the vm panics. | ||
%{ vm_exit_scope() %} | ||
return(output_ptr = output_ptr); | ||
} |
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