Skip to content

Commit

Permalink
Merge pull request #1950 from zhiqiangxu/fix_check_output
Browse files Browse the repository at this point in the history
Fix mutability of `check_output` and `check_instruction_opcode`
  • Loading branch information
howardwu authored Sep 1, 2023
2 parents bba855f + 25a61cf commit b87eb05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion algorithms/src/fft/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub struct EvaluationDomain<F: FftField> {
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,
}

Expand Down
4 changes: 2 additions & 2 deletions synthesizer/process/src/stack/register_types/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl<N: Network> RegisterTypes<N> {
/// Ensure the given output register is well-formed.
#[inline]
fn check_output(
&mut self,
&self,
stack: &(impl StackMatches<N> + StackProgram<N>),
operand: &Operand<N>,
register_type: &RegisterType<N>,
Expand Down Expand Up @@ -312,7 +312,7 @@ impl<N: Network> RegisterTypes<N> {
/// 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<N> + StackProgram<N>),
closure_or_function_name: &Identifier<N>,
instruction: &Instruction<N>,
Expand Down

1 comment on commit b87eb05

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'snarkVM Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.

Benchmark suite Current: b87eb05 Previous: b9d521c Ratio
bls12_377: fq2_add_assign 49 ns/iter (± 0) 28 ns/iter (± 0) 1.75
bls12_377: fq2_sub_assign 31 ns/iter (± 0) 17 ns/iter (± 0) 1.82
bls12_377: fq2_double 42 ns/iter (± 0) 24 ns/iter (± 0) 1.75

This comment was automatically generated by workflow using github-action-benchmark.

CC: @raychu86

Please sign in to comment.