Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
accumulated_data.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <random>
4
8
9namespace bb::avm2::fuzzer {
10
19
21
29});
30
31template <typename T>
33 std::mt19937_64& rng,
34 std::function<void(T&, std::mt19937_64&)> mutate_element_function,
35 std::function<T(std::mt19937_64&)> generate_random_element_function,
36 const VecMutationConfig& config,
37 size_t vec_limit)
38{
39 mutate_vec<T>(vec, rng, mutate_element_function, generate_random_element_function, config);
40 if (vec.size() > vec_limit) {
41 vec.resize(vec_limit);
42 }
43}
44
47
50
51} // namespace bb::avm2::fuzzer
const std::vector< MemoryValue > data
AccumulatedData generate_non_revertible_accumulated_data(std::mt19937_64 &rng)
void mutate_non_revertible_accumulated_data(AccumulatedData &data, std::mt19937_64 &rng)
constexpr AccumulatedDataMutationConfig ACCUMULATED_DATA_MUTATION_CONFIGURATION
void mutate_vec_with_limit(std::vector< T > &vec, std::mt19937_64 &rng, std::function< void(T &, std::mt19937_64 &)> mutate_element_function, std::function< T(std::mt19937_64 &)> generate_random_element_function, const VecMutationConfig &config, size_t vec_limit)
AccumulatedData generate_revertible_accumulated_data(std::mt19937_64 &rng)
WeightedSelectionConfig< AccumulatedDataMutationOptions, 6 > AccumulatedDataMutationConfig
void mutate_revertible_accumulated_data(AccumulatedData &data, std::mt19937_64 &rng)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13