-
Notifications
You must be signed in to change notification settings - Fork 105
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
fix: check_circuit bug fix #510
Conversation
@@ -917,7 +917,7 @@ TYPED_TEST(SRSIO, PippengerUnsafeShortInputs) | |||
|
|||
Fr* scalars = (Fr*)aligned_alloc(32, sizeof(Fr) * num_points); | |||
|
|||
AffineElement* points = (AffineElement*)aligned_alloc(32, sizeof(AffineElement) * num_points * 2 + 1); |
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.
Any reason this can't just be a points = new AffineElement[num_points * 2 + 1]?
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.
We need them aligned. From what I understand by default new doesn't do that and we absolutely need that for pippenger
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.
LGTM
@@ -334,6 +334,9 @@ void ProverPlookupWidget<num_roots_cut_out_of_vanishing_polynomial>::compute_gra | |||
// Compute and add monomial form of z_lookup to the polynomial store | |||
z_lookup.ifft(key->small_domain); | |||
key->polynomial_store.put("z_lookup", std::move(z_lookup)); | |||
for (size_t k = 1; k < 4; ++k) { | |||
free(accumulators[k]); | |||
} |
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.
Good catch
7f45eb9
to
d9be8d9
Compare
Description
Check circuit had an off-by-one error
Checklist:
/markdown/specs
have been updated.@brief
describing the intended functionality.