From 7ea23d47f5b7842616a797dc23052edc170468b0 Mon Sep 17 00:00:00 2001 From: soham Date: Fri, 13 Dec 2024 14:23:02 +0530 Subject: [PATCH] Fix InsnKind in SLT (#750) Closes #746 --- ceno_zkvm/src/instructions/riscv/slt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceno_zkvm/src/instructions/riscv/slt.rs b/ceno_zkvm/src/instructions/riscv/slt.rs index 08ceff8b3..a3e477350 100644 --- a/ceno_zkvm/src/instructions/riscv/slt.rs +++ b/ceno_zkvm/src/instructions/riscv/slt.rs @@ -83,7 +83,7 @@ impl Instruction for SetLessThanInstruc let r_insn = RInstructionConfig::::construct_circuit( cb, - InsnKind::SLT, + I::INST_KIND, rs1_read.register_expr(), rs2_read.register_expr(), rd_written.register_expr(), @@ -159,7 +159,7 @@ mod test { .unwrap() .unwrap(); - let insn_code = encode_rv32(InsnKind::SLT, 2, 3, 4, 0); + let insn_code = encode_rv32(I::INST_KIND, 2, 3, 4, 0); let (raw_witin, lkm) = SetLessThanInstruction::<_, I>::assign_instances( &config, cb.cs.num_witin as usize,