Skip to content
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

range32 checking for added to mips #2733

Open
wants to merge 2 commits into
base: sai/add-range32-check
Choose a base branch
from

Conversation

svv232
Copy link
Member

@svv232 svv232 commented Oct 26, 2024

I have yet to add the contraints for this PR, I am currently unsure what to constrain as 32 and 64 bits.

@svv232 svv232 requested a review from mrmr1993 October 26, 2024 03:16
Copy link

codecov bot commented Oct 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 72.47%. Comparing base (a531b16) to head (b67df9a).

Files with missing lines Patch % Lines
o1vm/src/interpreters/mips/interpreter.rs 0.00% 9 Missing ⚠️
o1vm/src/interpreters/mips/constraints.rs 0.00% 3 Missing ⚠️
o1vm/src/interpreters/mips/witness.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##           sai/add-range32-check    #2733      +/-   ##
=========================================================
- Coverage                  72.49%   72.47%   -0.02%     
=========================================================
  Files                        247      247              
  Lines                      57734    57741       +7     
=========================================================
- Hits                       41852    41849       -3     
- Misses                     15882    15892      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -168,6 +168,10 @@ impl<Fp: Field> InterpreterEnv for Env<Fp> {
Self::Variable::constant(Operations::from(Literal(Fp::from(x))))
}

fn constant64(x: u64) -> Self::Variable {
Self::Variable::constant(Operations::from(Literal(Fp::from(x))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that you can always use Self::Variable::from(x as u64).

Copy link
Member

@dannywillems dannywillems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong. The SRS is not big enough, in particular.

@dannywillems
Copy link
Member

See #2732 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants