From c58f4cb686970daa6f421d1498b484729908861f Mon Sep 17 00:00:00 2001 From: Georg Wiese Date: Fri, 20 Dec 2024 19:08:09 +0100 Subject: [PATCH] Bug fix --- executor/src/witgen/jit/function_cache.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/executor/src/witgen/jit/function_cache.rs b/executor/src/witgen/jit/function_cache.rs index 0b1b285ff..4bc7f4928 100644 --- a/executor/src/witgen/jit/function_cache.rs +++ b/executor/src/witgen/jit/function_cache.rs @@ -109,7 +109,10 @@ impl<'a, T: FieldElement> FunctionCache<'a, T> { Variable::Cell(cell) => Some(cell.row_offset), _ => None, }) - .all(|row_offset| row_offset >= 0 || row_offset < self.block_size as i32); + .all(|row_offset| row_offset >= 0 && row_offset < self.block_size as i32); + if !is_rectangular { + log::debug!("Filtering out code for non-rectangular block shape"); + } is_rectangular.then_some(code) }) .map(|code| {