Skip to content

Commit 435b8ad

Browse files
committed
fix stale data
1 parent 7ae75f1 commit 435b8ad

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

crates/continuations/src/verifier/common/non_leaf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ impl<C: Config> NonLeafVerifierVariables<C> {
4848
let proof = builder.get(proofs, i);
4949
assert_required_air_for_agg_vm_present(builder, &proof);
5050
let proof_vm_pvs = self.verify_internal_or_leaf_verifier_proof(builder, &proof);
51-
5251
assert_single_segment_vm_exit_successfully(builder, &proof);
5352
builder.if_eq(i, RVar::zero()).then_or_else(
5453
|builder| {

crates/vm/src/arch/vm.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ where
474474
.map(|(&h, w)| (h as usize, w))
475475
.collect::<Vec<_>>();
476476
let ctx = PreflightCtx::new_with_capacity(&capacities, instret_end);
477-
478477
let system_config: &SystemConfig = self.config().as_ref();
479478
let adapter_offset = system_config.access_adapter_air_id_offset();
480479
// ATTENTION: this must agree with `num_memory_airs`
@@ -511,7 +510,6 @@ where
511510
.finalize::<Val<E::SC>>(system_config.continuation_enabled);
512511
#[cfg(feature = "perf-metrics")]
513512
crate::metrics::end_segment_metrics(&mut exec_state);
514-
515513
let instret = exec_state.vm_state.instret();
516514
let pc = exec_state.vm_state.pc();
517515
let memory = exec_state.vm_state.memory;
@@ -685,7 +683,6 @@ where
685683
PreflightExecutor<Val<E::SC>, VB::RecordArena>,
686684
{
687685
self.transport_init_memory_to_device(&state.memory);
688-
689686
let PreflightExecutionOutput {
690687
system_records,
691688
record_arenas,
@@ -696,7 +693,6 @@ where
696693
(system_records.exit_code == Some(ExitCode::Success as u32)).then_some(to_state.memory);
697694
let ctx = self.generate_proving_ctx(system_records, record_arenas)?;
698695
let proof = self.engine.prove(&self.pk, ctx);
699-
700696
Ok((proof, final_memory))
701697
}
702698

extensions/native/circuit/src/hint_space_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<F> HintSpaceProviderChip<F> {
8484

8585
impl<F: PrimeField32> HintSpaceProviderChip<F> {
8686
pub fn generate_trace(&self) -> RowMajorMatrix<F> {
87-
let data = self.data.lock().unwrap();
87+
let data = std::mem::take(&mut *self.data.lock().unwrap());
8888
let num_real_rows = data.len();
8989
let trace_height = num_real_rows.next_power_of_two().max(2);
9090

0 commit comments

Comments
 (0)