-
Notifications
You must be signed in to change notification settings - Fork 298
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
Change padding rule for CPU #1234
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.
This approach looks good—it's basically the same as mine. A few details can be simplified; I've noted those in comments.
Two missing constraints:
- Make sure that
lv.null
is mutually exclusive with the op flags. - We must ensure that the prover can only start emitting
null
rows after we've jumped tohalt
. The prover should not be able to stop execution midway through.
Thanks for the review @nbgl! I've applied your comments. I just have a few questions regarding your main comment:
That was indeed an overlook on my side. I've added this constraint implicitely through constraining the first row to NOT be a padding row. On Regarding your comment on adding |
Exactly. There's no point continuing to process instructions once we've jumped to |
great! Let me know if there is anything else bugging you. |
The CI error is unrelated and happened on other branches as well, opening #1236 to fix clippy. |
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.
Looks good!!
A few comments:
- One small, subtle bug,
- Two redundant constraints,
- Two organization notes (not very important, consider them optional/it's your call to make).
Apologies for the back and forth. Now I think all your comments have been addressed. |
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!! Looks great :)
I assumed it would be simpler to just open a PR for it, so that you can share your comments directly on the code @nbgl. Feel free to override the PR if you have a better/simpler/more efficient approach!