Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ template <typename Flavor> class SumcheckProverRound {
if constexpr (Flavor::USE_SHORT_MONOMIALS) {
extended_edge = edge;
} else {
extended_edge = edge.template extend_to<MAX_PARTIAL_RELATION_LENGTH>();
if (multivariate.end_index() < edge_idx) {
static const auto zero_univariate = bb::Univariate<FF, MAX_PARTIAL_RELATION_LENGTH>::zero();
extended_edge = zero_univariate;
} else {
extended_edge = edge.template extend_to<MAX_PARTIAL_RELATION_LENGTH>();
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion bb-pilcom/bb-pil-backend/templates/flavor.cpp.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ AvmFlavor::PartiallyEvaluatedMultivariates::PartiallyEvaluatedMultivariates(cons
{
for (auto [poly, full_poly] : zip_view(get_all(), full_polynomials.get_all())) {
// After the initial sumcheck round, the new size is CEIL(size/2).
size_t desired_size = std::min(full_poly.end_index() / 2 + full_poly.end_index() % 2, circuit_size / 2);
size_t desired_size = full_poly.end_index() / 2 + full_poly.end_index() % 2;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was a change which was forgotten in a previous PR.

poly = Polynomial(desired_size, circuit_size / 2);
}
}
Expand Down