Skip to content

Commit

Permalink
fixed emission
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-barrett committed Nov 12, 2024
1 parent 9484199 commit 77e9475
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/cli/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ impl<F: PrimeField32, C1: Chipset<F>, C2: Chipset<F>> Repl<F, C1, C2> {
bytes: Default::default(),
emitted: Default::default(),
debug_data: Default::default(),
provable: false,
}
}

Expand Down
8 changes: 6 additions & 2 deletions src/lair/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pub struct QueryRecord<F: PrimeField32> {
pub(crate) bytes: BytesRecord,
pub(crate) emitted: Vec<List<F>>,
pub(crate) debug_data: DebugData,
pub(crate) provable: bool,
}

#[derive(Default, Clone, Debug, Eq, PartialEq)]
Expand Down Expand Up @@ -287,6 +288,7 @@ impl<F: PrimeField32> QueryRecord<F> {
bytes: BytesRecord::default(),
emitted: vec![],
debug_data: DebugData::default(),
provable: true,
}
}

Expand Down Expand Up @@ -463,8 +465,10 @@ impl<F: PrimeField32, C1: Chipset<F>, C2: Chipset<F>> Toplevel<F, C1, C2> {
public_values.extend(depth.to_le_bytes().map(F::from_canonical_u8));
}
queries.public_values = Some(public_values);
let map = queries.nonce_map(self);
queries.fix_nonces(&map);
if queries.provable {
let map = queries.nonce_map(self);
queries.fix_nonces(&map);
}
Ok(out)
}

Expand Down

0 comments on commit 77e9475

Please sign in to comment.