Skip to content

Commit

Permalink
Interpret instructions after printing, for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 committed Nov 28, 2023
1 parent 905e878 commit 26e9f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optimism/src/mips/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ impl<Fp: Field> Env<Fp> {
pub fn step(&mut self, config: VmConfiguration, metadata: &Meta, start: &Start) {
let instruction = self.decode_instruction();
println!("instruction: {:?}", instruction);
interpreter::interpret_instruction(self, instruction);

self.pp_info(config.info_at, metadata, start);

Expand All @@ -301,6 +300,8 @@ impl<Fp: Field> Env<Fp> {
self.halt = true;
return;
}

interpreter::interpret_instruction(self, instruction);
}

fn should_trigger_at(&self, at: StepFrequency) -> bool {
Expand Down

0 comments on commit 26e9f9b

Please sign in to comment.