-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Reorganized builtins to be in the top of stack at the end of run. #1686
feat: Reorganized builtins to be in the top of stack at the end of run. #1686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR, @orizi !
I've noticed that this change introduces some issues when running programs in cairo-1 with --proof_mode. When we execute a Cairo 1 program with proof_mode, the execution never completes. Do you have any insights on why this might be happening?
cd cairo1-run
cp ../cairo_programs/cairo-1-programs/fibonacci.cairo ./
cargo run \
fibonacci.cairo \
--layout=small \
--air_public_input=fibonacci_public_input.json \
--air_private_input=fibonacci_private_input.json \
--trace_file=fibonacci_trace.json \
--memory_file=fibonacci_memory.json \
--print_output \
--proof_mode
Found the culprit and fixed as well. |
d60fda4
to
f3f6dfd
Compare
Great @orizi ! |
Hello! We noticed some problems when running with proof_mode and when serializing outputs that makes tests fail, I sent a PR to your branch with fixes for these issues orizi#1 |
225df3d
to
b5eb95b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1686 +/- ##
==========================================
- Coverage 96.56% 96.55% -0.02%
==========================================
Files 95 95
Lines 38380 38406 +26
==========================================
+ Hits 37062 37081 +19
- Misses 1318 1325 +7 ☔ View full report in Codecov by Sentry. |
add changelog change
Builtins on top of stack at the end of cairo1 runs.
Description
Removed the extra wrapping function call, and make a single wrapping entrypoint code, that also copies data into the output_ptr if required, and then rewrites all the builtins (used and unused to top of stack).
This hopefully will make the running of the proof more usable.