Skip to content

Commit

Permalink
o1vm/pickles: remove debugging code while building quotient poly
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Oct 4, 2024
1 parent e675ff1 commit 8e87244
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions o1vm/src/pickles/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,30 +191,6 @@ where
};

let quotient_poly: DensePolynomial<G::ScalarField> = {
let mut last_constraint_failed = None;
// Only for debugging purposes
for expr in constraints.iter() {
let fail_q_division =
ProverError::ConstraintNotSatisfied(format!("Unsatisfied expression: {:}", expr));
// Check this expression are witness satisfied
let (_, res) = expr
.evaluations(&column_env)
.interpolate_by_ref()
.divide_by_vanishing_poly(domain.d1)
.ok_or(fail_q_division.clone())?;
if !res.is_zero() {
eprintln!("Unsatisfied expression: {}", expr);
//return Err(fail_q_division);
last_constraint_failed = Some(expr.clone());
}
}
if let Some(expr) = last_constraint_failed {
return Err(ProverError::ConstraintNotSatisfied(format!(
"Unsatisfied expression: {:}",
expr
)));
}

// Compute ∑ α^i constraint_i as an expression
let combined_expr =
E::combine_constraints(0..(constraints.len() as u32), (constraints).to_vec());
Expand Down

0 comments on commit 8e87244

Please sign in to comment.