From f3514b783345ea9d24748c14ae2cb7b8c375cfc9 Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Thu, 31 Aug 2023 21:20:19 +0800 Subject: [PATCH 1/3] check_output is not mut --- synthesizer/process/src/stack/register_types/initialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synthesizer/process/src/stack/register_types/initialize.rs b/synthesizer/process/src/stack/register_types/initialize.rs index abf3363130..41bfa46848 100644 --- a/synthesizer/process/src/stack/register_types/initialize.rs +++ b/synthesizer/process/src/stack/register_types/initialize.rs @@ -222,7 +222,7 @@ impl RegisterTypes { /// Ensure the given output register is well-formed. #[inline] fn check_output( - &mut self, + &self, stack: &(impl StackMatches + StackProgram), operand: &Operand, register_type: &RegisterType, From 2949b4fce248f92fedb539c7600da7802f9c1c5f Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Thu, 31 Aug 2023 21:27:40 +0800 Subject: [PATCH 2/3] check_instruction_opcode is not mut --- synthesizer/process/src/stack/register_types/initialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synthesizer/process/src/stack/register_types/initialize.rs b/synthesizer/process/src/stack/register_types/initialize.rs index 41bfa46848..39b1dcb52b 100644 --- a/synthesizer/process/src/stack/register_types/initialize.rs +++ b/synthesizer/process/src/stack/register_types/initialize.rs @@ -312,7 +312,7 @@ impl RegisterTypes { /// This method is called when adding a new closure or function to the program. #[inline] fn check_instruction_opcode( - &mut self, + &self, stack: &(impl StackMatches + StackProgram), closure_or_function_name: &Identifier, instruction: &Instruction, From 25a61cf7d613c5873530a5cb1aa982edf7f6e39a Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Fri, 1 Sep 2023 00:46:51 +0800 Subject: [PATCH 3/3] fix comment --- algorithms/src/fft/domain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithms/src/fft/domain.rs b/algorithms/src/fft/domain.rs index a101f56aaf..93e7d1ed12 100644 --- a/algorithms/src/fft/domain.rs +++ b/algorithms/src/fft/domain.rs @@ -92,7 +92,7 @@ pub struct EvaluationDomain { pub group_gen: F, /// Inverse of the generator of the subgroup. pub group_gen_inv: F, - /// Multiplicative generator of the finite field. + /// Inverse of the multiplicative generator of the finite field. pub generator_inv: F, }