From 7628a26a89cdc699439ccfe2457f05962b6841cb Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Fri, 13 May 2022 02:44:04 -0400 Subject: [PATCH] minor naming bugfix --- poly-iop/src/sum_check/prover.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poly-iop/src/sum_check/prover.rs b/poly-iop/src/sum_check/prover.rs index 8eb3472..291dbc9 100644 --- a/poly-iop/src/sum_check/prover.rs +++ b/poly-iop/src/sum_check/prover.rs @@ -76,7 +76,6 @@ impl SumCheckProver for ProverState { .iter() .map(|x| x.as_ref().clone()) .collect(); - let products = self.poly.products.clone(); if let Some(chal) = challenge { if self.round == 0 { @@ -113,6 +112,7 @@ impl SumCheckProver for ProverState { )); } + let products_list = self.poly.products.clone(); let i = self.round; let nv = self.poly.domain_info.num_variables; let degree = self.poly.domain_info.max_degree; // the degree of univariate polynomial sent by prover at this round @@ -126,7 +126,7 @@ impl SumCheckProver for ProverState { products_sum.par_iter_mut().enumerate().for_each(|(t, e)| { for b in 0..1 << (nv - i) { // evaluate P_round(t) - for (coefficient, products) in products.iter() { + for (coefficient, products) in products_list.iter() { let num_multiplicands = products.len(); let mut product = *coefficient; for &f in products.iter().take(num_multiplicands) { @@ -147,7 +147,7 @@ impl SumCheckProver for ProverState { .enumerate() .for_each(|(t, e)| { // evaluate P_round(t) - for (coefficient, products) in products.iter() { + for (coefficient, products) in products_list.iter() { let num_multiplicands = products.len(); let mut product = *coefficient; for &f in products.iter().take(num_multiplicands) {