Skip to content

Commit

Permalink
chore: remove duplicate instructions (#2029)
Browse files Browse the repository at this point in the history
remove duplicate instructions (STOP, ADD) from instruction table
  • Loading branch information
shafu0x authored Jan 27, 2025
1 parent 773b909 commit 4c77354
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/interpreter/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ pub const fn instruction_table<WIRE: InterpreterTypes, H: Host + ?Sized>(
let mut table = [control::unknown as crate::table::Instruction<WIRE, H>; 256];

table[STOP as usize] = control::stop;
table[ADD as usize] = arithmetic::add;
table[STOP as usize] = control::stop;

table[ADD as usize] = arithmetic::add;
table[MUL as usize] = arithmetic::mul;
table[SUB as usize] = arithmetic::sub;
Expand Down

0 comments on commit 4c77354

Please sign in to comment.