Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
georgwiese committed Dec 20, 2024
1 parent 71f0570 commit a70d9f8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions executor/src/witgen/jit/block_machine_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ impl<'a, T: FieldElement> BlockMachineProcessor<'a, T> {
.collect::<Vec<_>>();
// Because we process rows -1..block_size+1, it is fine to have two incomplete machine calls,
// as long as <block_size> consecutive rows are complete.
let is_consecutive = complete_rows.iter().max().unwrap()
- complete_rows.iter().min().unwrap()
== complete_rows.len() as i32 - 1;
if is_consecutive && complete_rows.len() >= self.block_size {
// All good
vec![]
} else {
complete_rows
.iter()
.map(|row| (call, *row))
.collect::<Vec<_>>()
if complete_rows.len() >= self.block_size {
let is_consecutive = complete_rows.iter().max().unwrap()
- complete_rows.iter().min().unwrap()
== complete_rows.len() as i32 - 1;
if is_consecutive {
return vec![];
}
}
complete_rows
.iter()
.map(|row| (call, *row))
.collect::<Vec<_>>()
})
.collect::<Vec<_>>();

Expand Down

0 comments on commit a70d9f8

Please sign in to comment.