Skip to content

Commit

Permalink
fix(addi): Increase instruction pointer by two
Browse files Browse the repository at this point in the history
  • Loading branch information
aszepieniec committed Aug 7, 2024
1 parent 7ada437 commit 3eb6b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion triton-vm/src/table/processor_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ impl ExtProcessorTable {
vec![next_base_row(ST0) - curr_base_row(ST0) - curr_base_row(NIA)];
[
specific_constraints,
Self::instruction_group_step_1(circuit_builder),
Self::instruction_group_step_2(circuit_builder),
Self::instruction_group_op_stack_remains_except_top_n(circuit_builder, 1),
Self::instruction_group_no_ram(circuit_builder),
Self::instruction_group_no_io(circuit_builder),
Expand Down
2 changes: 1 addition & 1 deletion triton-vm/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ impl VMState {
fn addi(&mut self, field_element: BFieldElement) -> Result<Vec<CoProcessorCall>> {
let lhs = self.op_stack.pop()?;
self.op_stack.push(lhs + field_element);
self.instruction_pointer += 1;
self.instruction_pointer += 2;
Ok(vec![])
}

Expand Down

0 comments on commit 3eb6b39

Please sign in to comment.