Skip to content

Commit

Permalink
Add warning when the last MemAfter is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LindaGuiga committed Nov 1, 2024
1 parent e9a0cf0 commit 6d810fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions evm_arithmetization/src/generation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ pub fn generate_traces<F: RichField + Extendable<D>, const D: usize>(
)
);

let is_last_segment =
segment_data.registers_after.program_counter == KERNEL.global_labels["halt"];
if is_last_segment && final_len != 0 {
log::warn!("This is the last segment, but MemoryAfter is still not empty!");
}
if final_len == 0 && OPTIONAL_TABLE_INDICES.contains(&MemAfter) {
log::debug!("MemAfter table not in use");
table_in_use[*MemAfter] = false;
Expand Down

0 comments on commit 6d810fb

Please sign in to comment.