Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Cycle Group Fuzzer #12154

Merged
merged 5 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions barretenberg/cpp/src/barretenberg/common/fuzzer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct HavocSettings {
// value mutations
size_t VAL_MUT_SMALL_ADDITION_PROBABILITY; // The probability of performing small additions
size_t VAL_MUT_SPECIAL_VALUE_PROBABILITY; // The probability of assigning special values (0,1, p-1, p-2, p-1/2)
size_t VAL_MUT_PROJECTIVE_COORDS_PROBABILITY; // The probablity of random scaling of the projective coordinates
std::vector<size_t> structural_mutation_distribution; // Holds the values to quickly select a structural mutation
// based on chosen probabilities
std::vector<size_t> value_mutation_distribution; // Holds the values to quickly select a value mutation based on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ cycle_group<Builder> cycle_group<Builder>::dbl(const std::optional<AffineElement

context->create_ecc_dbl_gate(bb::ecc_dbl_gate_<FF>{
.x1 = x.get_witness_index(),
.y1 = modified_y.normalize().get_witness_index(),
.y1 = modified_y.get_normalized_witness_index(),
.x3 = result.x.get_witness_index(),
.y3 = result.y.get_witness_index(),
});
Expand Down Expand Up @@ -981,7 +981,7 @@ cycle_group<Builder>::straus_scalar_slice::straus_scalar_slice(Builder* context,

if constexpr (IS_ULTRA) {
const auto slice_indices =
context->decompose_into_default_range(scalar.normalize().get_witness_index(),
context->decompose_into_default_range(scalar.get_normalized_witness_index(),
num_bits,
table_bits,
"straus_scalar_slice decompose_into_default_range");
Expand Down
Loading
Loading