Skip to content

Commit

Permalink
feat: remove unnecessary expr
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-sun committed Jan 19, 2025
1 parent 1641da4 commit a5ffd35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/native/recursion/src/fri/two_adic_pcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ pub fn verify_two_adic_pcs<C: Config>(
if builder.flags.static_only {
let n: Ext<C::F, C::EF> = builder.constant(C::EF::ZERO);
builder.range(0, ps_at_z.len()).for_each(|t, builder| {
let reverse_idx =
builder.eval_expr(ps_at_z.len() - RVar::from(1) - t);
let reverse_idx = RVar::from(ps_at_z.len().value() - 1 - t.value());
let p_at_x = builder.get(&mat_opening, reverse_idx);
let p_at_z = builder.get(&ps_at_z, reverse_idx);

Expand Down

0 comments on commit a5ffd35

Please sign in to comment.