Skip to content

Commit

Permalink
Merge pull request #2947 from o1-labs/fix/stop-generating-new-scratch…
Browse files Browse the repository at this point in the history
…-states-for-halts

Stop generating new scratch state for halt addresses
  • Loading branch information
mrmr1993 authored Jan 13, 2025
2 parents c7f78ba + 6f4cc51 commit 6633122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion o1vm/src/interpreters/mips/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ impl<Fp: Field, PreImageOracle: PreImageOracleT> Env<Fp, PreImageOracle> {
self.instruction_counter = self.next_instruction_counter();

config.halt_address.iter().for_each(|halt_address: &u32| {
if self.get_instruction_pointer() == (*halt_address as u64) {
if self.registers.current_instruction_pointer == *halt_address {
debug!("Program jumped to halt address: {:#X}", halt_address);
self.halt = true;
}
Expand Down

0 comments on commit 6633122

Please sign in to comment.