diff --git a/o1vm/src/interpreters/riscv32im/constraints.rs b/o1vm/src/interpreters/riscv32im/constraints.rs index 313f87e486..087a388c38 100644 --- a/o1vm/src/interpreters/riscv32im/constraints.rs +++ b/o1vm/src/interpreters/riscv32im/constraints.rs @@ -380,19 +380,6 @@ impl InterpreterEnv for Env { self.variable(position) } - unsafe fn divmod( - &mut self, - _x: &Self::Variable, - _y: &Self::Variable, - position_quotient: Self::Position, - position_remainder: Self::Position, - ) -> (Self::Variable, Self::Variable) { - ( - self.variable(position_quotient), - self.variable(position_remainder), - ) - } - unsafe fn count_leading_zeros( &mut self, _x: &Self::Variable, diff --git a/o1vm/src/interpreters/riscv32im/interpreter.rs b/o1vm/src/interpreters/riscv32im/interpreter.rs index 338473277d..9f4f4106cc 100644 --- a/o1vm/src/interpreters/riscv32im/interpreter.rs +++ b/o1vm/src/interpreters/riscv32im/interpreter.rs @@ -1299,22 +1299,6 @@ pub trait InterpreterEnv { position: Self::Position, ) -> Self::Variable; - /// Returns `(x / y, x % y)`, storing the results in `position_quotient` and - /// `position_remainder` respectively. - /// - /// # Safety - /// - /// There are no constraints on the returned values; callers must manually add constraints to - /// ensure that the pair of returned values correspond to the given values `x` and `y`, and - /// that they fall within the desired range. - unsafe fn divmod( - &mut self, - x: &Self::Variable, - y: &Self::Variable, - position_quotient: Self::Position, - position_remainder: Self::Position, - ) -> (Self::Variable, Self::Variable); - /// Returns the number of leading 0s in `x`, storing the result in `position`. /// /// # Safety diff --git a/o1vm/src/interpreters/riscv32im/witness.rs b/o1vm/src/interpreters/riscv32im/witness.rs index 391d01a1e8..3d08cd6ee0 100644 --- a/o1vm/src/interpreters/riscv32im/witness.rs +++ b/o1vm/src/interpreters/riscv32im/witness.rs @@ -542,24 +542,6 @@ impl InterpreterEnv for Env { res } - unsafe fn divmod( - &mut self, - x: &Self::Variable, - y: &Self::Variable, - position_quotient: Self::Position, - position_remainder: Self::Position, - ) -> (Self::Variable, Self::Variable) { - let x: u32 = (*x).try_into().unwrap(); - let y: u32 = (*y).try_into().unwrap(); - let q = x / y; - let r = x % y; - let q = q as u64; - let r = r as u64; - self.write_column(position_quotient, q); - self.write_column(position_remainder, r); - (q, r) - } - unsafe fn count_leading_zeros( &mut self, x: &Self::Variable,