Skip to content

Commit

Permalink
chore: format PR #934 (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
erabinov authored Jun 14, 2024
1 parent 06eee4a commit 3983ca1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recursion/core/src/memory/air.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,25 @@ where
// padding rows.
// The first row should be an initialize row.
builder.when_first_row().assert_one(local.is_initialize);

// After an initialize row, we should either have a finalize row, or another initialize row.
builder
.when_transition()
.when(local.is_initialize)
.assert_one(next.is_initialize + next.is_finalize);

// After a finalize row, we should either have a finalize row, or a padding row.
builder
.when_transition()
.when(local.is_finalize)
.assert_one(next.is_finalize + (AB::Expr::one() - next.is_real));

// After a padding row, we should only have another padding row.
builder
.when_transition()
.when(AB::Expr::one() - local.is_real)
.assert_zero(next.is_real);

// The last row should be a padding row or a finalize row.
builder
.when_last_row()
Expand Down

0 comments on commit 3983ca1

Please sign in to comment.