Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <cycle_group.fuzzer.hpp>
Classes | |
struct | ArgumentContents |
struct | BatchMulArgs |
struct | Element |
struct | FourArgs |
struct | MulArgs |
struct | ThreeArgs |
struct | TwoArgs |
Public Types | |
enum | OPCODE { CONSTANT , WITNESS , CONSTANT_WITNESS , ASSERT_EQUAL , COND_ASSIGN , SET , SET_INF , ADD , SUBTRACT , NEG , DBL , MULTIPLY , BATCH_MUL , RANDOMSEED , _LAST } |
Static Public Member Functions | |
template<typename T > requires SimpleRng<T> | |
static Instruction | generateRandom (T &rng) |
Generates a random instruction. | |
template<typename T > requires SimpleRng<T> | |
static Element | mutateGroupElement (Element e, T &rng, HavocSettings &havoc_config) |
Mutate the value of a group element. | |
template<typename T > requires SimpleRng<T> | |
static ScalarField | mutateScalarElement (ScalarField e, T &rng, HavocSettings &havoc_config) |
Mutate the value of a scalar element. | |
template<typename T > requires SimpleRng<T> | |
static Instruction | mutateInstruction (Instruction instruction, T &rng, HavocSettings &havoc_config) |
Mutate a single instruction. | |
Public Attributes | |
OPCODE | id |
ArgumentContents | arguments |
Definition at line 79 of file cycle_group.fuzzer.hpp.
enum CycleGroupBase::Instruction::OPCODE |
Enumerator | |
---|---|
CONSTANT | |
WITNESS | |
CONSTANT_WITNESS | |
ASSERT_EQUAL | |
COND_ASSIGN | |
SET | |
SET_INF | |
ADD | |
SUBTRACT | |
NEG | |
DBL | |
MULTIPLY | |
BATCH_MUL | |
RANDOMSEED | |
_LAST |
Definition at line 81 of file cycle_group.fuzzer.hpp.
|
inlinestatic |
Generates a random instruction.
T | PRNG class type |
rng | PRNG used |
Definition at line 168 of file cycle_group.fuzzer.hpp.
|
inlinestatic |
Mutate the value of a group element.
T | PRNG class |
e | Initial element value |
rng | PRNG |
havoc_config | Mutation configuration |
Definition at line 260 of file cycle_group.fuzzer.hpp.
|
inlinestatic |
Mutate a single instruction.
T | PRNG class |
instruction | The instruction |
rng | PRNG |
havoc_config | Mutation configuration |
Definition at line 488 of file cycle_group.fuzzer.hpp.
|
inlinestatic |
Mutate the value of a scalar element.
T | PRNG class |
e | Initial scalar value |
rng | PRNG |
havoc_config | Mutation configuration |
Definition at line 382 of file cycle_group.fuzzer.hpp.
ArgumentContents CycleGroupBase< Builder >::Instruction::arguments |
Definition at line 158 of file cycle_group.fuzzer.hpp.
OPCODE CycleGroupBase< Builder >::Instruction::id |
Definition at line 155 of file cycle_group.fuzzer.hpp.