-
Notifications
You must be signed in to change notification settings - Fork 16
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
SRAI #463
SRAI #463
Changes from 13 commits
f8d6225
bf8e157
a93b505
c5b2b20
618a13c
41b4c32
764ea38
8a831d7
4ad95ae
867ce46
7e9911f
ee4737c
de1c98f
2ecb01a
e881bb5
4fdbee1
5214ebe
fe39ba4
d1bdc66
fab50fa
2f8fa7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -757,7 +757,9 @@ pub mod fmt { | |
) -> String { | ||
match expression { | ||
Expression::WitIn(wit_in) => { | ||
wtns.push(*wit_in); | ||
if !wtns.contains(wit_in) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this change have to do with SRAI? Seems like an unrelated improvement? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not related to SRAI. If Wtns(x) appears multiple times in the expression, then it is duplicated. This change can be in other PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm happy to review that extracted PR fast. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Putting unrelated changes in their own PR is best; but as a second best alternative you can also expand the PR description for this PR to include the additional unrelated changes. |
||
wtns.push(*wit_in); | ||
} | ||
format!("WitIn({})", wit_in) | ||
} | ||
Expression::Challenge(id, pow, scaler, offset) => { | ||
|
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.
What does this change have to do with SRAI?
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 is not related to SRAI. This is for MockProver accurate error description. The way MockProver infers assert equal is by destructuring
LHS,RHS = Sum(LHS, RHS)
. After the monomial PR, Mock Prover is not able to infer require equal correctly becauseto_monomial_form
is performed onSum(LHS, RHS)
the result doesn't correctly destructure to what it should be.This change can be in other PR.