Skip to content

Commit 494bc48

Browse files
committed
Move output assert before drop(result)
1 parent 20cd6e8 commit 494bc48

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

prover/src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ pub fn prove_with_options_and_inputs(
615615
#[cfg(feature = "disk-spill")]
616616
storage_mode,
617617
)?;
618+
debug_assert_eq!(
619+
traces.public_output_bytes, result.return_values.memory_values,
620+
"public output diverged between executor view and trace reconstruction"
621+
);
618622
drop(result);
619623

620624
#[cfg(feature = "instruments")]
@@ -673,11 +677,6 @@ pub fn prove_with_options_and_inputs(
673677
.filter(|c| c.is_private_input)
674678
.count();
675679

676-
debug_assert_eq!(
677-
traces.public_output_bytes, result.return_values.memory_values,
678-
"public output diverged between executor view and trace reconstruction"
679-
);
680-
681680
Ok(VmProof {
682681
proof,
683682
runtime_page_ranges,

0 commit comments

Comments
 (0)