diff --git a/code_producers/src/c_elements/common/circom.hpp b/code_producers/src/c_elements/common/circom.hpp index eabc686f6..271e57950 100644 --- a/code_producers/src/c_elements/common/circom.hpp +++ b/code_producers/src/c_elements/common/circom.hpp @@ -65,7 +65,7 @@ For every template instantiation create two functions: Every name_run or circom_function has: ===================================== -//array of PFrElements for auxiliars in expression computation (known size); +//array of PFrElements for auxiliarys in expression computation (known size); PFrElements expaux[]; //array of PFrElements for local vars (known size) diff --git a/compiler/src/circuit_design/function.rs b/compiler/src/circuit_design/function.rs index 305a000dd..e5a2fa395 100644 --- a/compiler/src/circuit_design/function.rs +++ b/compiler/src/circuit_design/function.rs @@ -52,7 +52,7 @@ impl WriteWasm for FunctionCodeInfo { instructions.push(format!("(local {} i32)", producer.get_call_lvar_tag())); instructions.push(format!(" (local {} i32)", producer.get_merror_tag())); let local_info_size_u32 = producer.get_local_info_size_u32(); - //set lvar (start of auxiliar memory for vars) + //set lvar (start of auxiliary memory for vars) instructions.push(set_constant("0")); instructions.push(load32(None)); // current stack size let var_start = local_info_size_u32 * 4; // starts after local info @@ -61,7 +61,7 @@ impl WriteWasm for FunctionCodeInfo { instructions.push(add32()); } instructions.push(set_local(producer.get_lvar_tag())); - //set expaux (start of auxiliar memory for expressions) + //set expaux (start of auxiliary memory for expressions) instructions.push(get_local(producer.get_lvar_tag())); let var_stack_size = self.max_number_of_vars * 4 * (producer.get_size_32_bits_in_memory()); // starts after vars instructions.push(set_constant(&var_stack_size.to_string())); diff --git a/compiler/src/circuit_design/template.rs b/compiler/src/circuit_design/template.rs index 399ca43e8..75b169604 100644 --- a/compiler/src/circuit_design/template.rs +++ b/compiler/src/circuit_design/template.rs @@ -100,7 +100,7 @@ impl WriteWasm for TemplateCodeInfo { instructions.push(format!(" (local {} i32)", producer.get_create_loop_counter_tag())); instructions.push(format!(" (local {} i32)", producer.get_merror_tag())); let local_info_size_u32 = producer.get_local_info_size_u32(); // in the future we can add some info like pointer to run father or text father - //set lvar (start of auxiliar memory for vars) + //set lvar (start of auxiliary memory for vars) instructions.push(set_constant("0")); instructions.push(load32(None)); let var_start = local_info_size_u32 * 4; // starts after local info @@ -109,7 +109,7 @@ impl WriteWasm for TemplateCodeInfo { instructions.push(add32()); } instructions.push(set_local(producer.get_lvar_tag())); - //set expaux (start of auxiliar memory for expressions) + //set expaux (start of auxiliary memory for expressions) instructions.push(get_local(producer.get_lvar_tag())); let var_stack_size = self.var_stack_depth * 4 * (producer.get_size_32_bit() + 2); // starts after vars instructions.push(set_constant(&var_stack_size.to_string())); diff --git a/compiler/src/intermediate_representation/store_bucket.rs b/compiler/src/intermediate_representation/store_bucket.rs index 25111ddf1..e9bb9a2d5 100644 --- a/compiler/src/intermediate_representation/store_bucket.rs +++ b/compiler/src/intermediate_representation/store_bucket.rs @@ -355,7 +355,7 @@ impl WriteC for StoreBucket { format!("&{}->signalValues[{} + {}]", CIRCOM_CALC_WIT, sub_cmp_start, dest_index.clone()) } }; - //keep dest_index in an auxiliar if parallel and out put + //keep dest_index in an auxiliary if parallel and out put if let AddressType::Signal = &self.dest_address_type { if parallel.unwrap() && self.dest_is_output { prologue.push(format!("{{")); diff --git a/compiler/src/intermediate_representation/translate.rs b/compiler/src/intermediate_representation/translate.rs index 04309bb23..6fd0d0100 100644 --- a/compiler/src/intermediate_representation/translate.rs +++ b/compiler/src/intermediate_representation/translate.rs @@ -1411,7 +1411,7 @@ pub fn translate_code(body: Statement, code_info: CodeInfo) -> CodeOutput { ir_processing::build_inputs_info(&mut state.code); let mut code = ir_processing::reduce_intermediate_operations(state.code); - let expression_depth = ir_processing::build_auxiliary_stack(&mut code); + let expression_depth = ir_processing::build_auxiliaryy_stack(&mut code); CodeOutput { diff --git a/compiler/src/ir_processing/mod.rs b/compiler/src/ir_processing/mod.rs index 4dee18a91..d6cf04bf7 100644 --- a/compiler/src/ir_processing/mod.rs +++ b/compiler/src/ir_processing/mod.rs @@ -9,7 +9,7 @@ pub fn reduce_intermediate_operations(code: InstructionList) -> InstructionList reduce_stack::reduce_list(code) } -pub fn build_auxiliary_stack(code: &mut InstructionList) -> usize { +pub fn build_auxiliaryy_stack(code: &mut InstructionList) -> usize { build_stack::build_list(code, 0) } diff --git a/constraint_generation/src/execute.rs b/constraint_generation/src/execute.rs index ebb712296..39119046e 100644 --- a/constraint_generation/src/execute.rs +++ b/constraint_generation/src/execute.rs @@ -315,7 +315,7 @@ fn execute_statement( } if !needs_double_arrow.is_empty() && flags.inspect{ - // in case we can subsitute the complete expression to ==> + // in case we can substitute the complete expression to ==> if needs_double_arrow.len() == AExpressionSlice::get_number_of_cells(&constrained.right){ let err : Result<(),ExecutionWarning> = Result::Err(ExecutionWarning::CanBeQuadraticConstraintSingle());