Skip to content

Commit efa8f0b

Browse files
committed
remove debug flag
1 parent 5ba7f71 commit efa8f0b

File tree

1 file changed

+19
-24
lines changed
  • extensions/native/circuit/src/sumcheck

1 file changed

+19
-24
lines changed

extensions/native/circuit/src/sumcheck/air.rs

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -251,30 +251,25 @@ impl<AB: InteractionBuilder> Air<AB> for NativeSumcheckAir {
251251
start_timestamp + AB::F::from_canonical_usize(8),
252252
);
253253

254-
// _debug
255-
// // Prod row timestamp transition
256-
// // Equivalent to: when(prod_row): next_ts = ts + within_round_limit * (1 + is_writeback)
257-
// // Reformulated using prod_in_round_evaluation + prod_next_round_evaluation = prod_row * within_round_limit
258-
// // to stay within max constraint degree 3 while guarding against is_end boundary rows.
259-
// builder
260-
// .when_transition()
261-
// .when_ne(is_end, AB::Expr::ONE)
262-
// .assert_eq(
263-
// prod_row * (next.start_timestamp - start_timestamp),
264-
// (prod_in_round_evaluation + prod_next_round_evaluation)
265-
// * (AB::Expr::ONE + is_writeback),
266-
// );
267-
268-
// // Logup row timestamp transition
269-
// // Same reformulation using logup_in_round_evaluation + logup_next_round_evaluation = logup_row * within_round_limit
270-
// builder
271-
// .when_transition()
272-
// .when_ne(is_end, AB::Expr::ONE)
273-
// .assert_eq(
274-
// logup_row * (next.start_timestamp - start_timestamp),
275-
// (logup_in_round_evaluation + logup_next_round_evaluation)
276-
// * (AB::Expr::TWO + is_writeback),
277-
// );
254+
// Prod row timestamp transition
255+
builder
256+
.when_transition()
257+
.when_ne(is_end, AB::Expr::ONE)
258+
.assert_eq(
259+
prod_row * (next.start_timestamp - start_timestamp),
260+
(prod_in_round_evaluation + prod_next_round_evaluation)
261+
* (AB::Expr::ONE + is_writeback),
262+
);
263+
264+
// Logup row timestamp transition
265+
builder
266+
.when_transition()
267+
.when_ne(is_end, AB::Expr::ONE)
268+
.assert_eq(
269+
logup_row * (next.start_timestamp - start_timestamp),
270+
(logup_in_round_evaluation + logup_next_round_evaluation)
271+
* (AB::Expr::TWO + is_writeback),
272+
);
278273

279274
// Termination condition
280275
assert_array_eq(

0 commit comments

Comments
 (0)