Barretenberg
The ZK-SNARK library at the core of Aztec
|
A class representing a single fuzzing instruction. More...
#include <safe_uint.fuzzer.hpp>
Classes | |
union | ArgumentContents |
struct | Element |
struct | FiveArgs |
struct | FourArgs |
struct | SliceArgs |
struct | ThreeArgs |
Public Types | |
enum | OPCODE { CONSTANT , WITNESS , CONSTANT_WITNESS , ADD , SUBTRACT , MULTIPLY , DIVIDE , ADD_TWO , MADD , SUBTRACT_WITH_CONSTRAINT , DIVIDE_WITH_CONSTRAINTS , SLICE , RANDOMSEED , _LAST } |
Static Public Member Functions | |
template<typename T > requires SimpleRng<T> | |
static Instruction | generateRandom (T &rng) |
Generate a random instruction. | |
template<typename T > requires SimpleRng<T> | |
static fr | mutateFieldElement (fr e, T &rng, HavocSettings &havoc_config) |
Mutate the value of a field 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 |
A class representing a single fuzzing instruction.
Definition at line 130 of file safe_uint.fuzzer.hpp.
enum SafeUintFuzzBase::Instruction::OPCODE |
Enumerator | |
---|---|
CONSTANT | |
WITNESS | |
CONSTANT_WITNESS | |
ADD | |
SUBTRACT | |
MULTIPLY | |
DIVIDE | |
ADD_TWO | |
MADD | |
SUBTRACT_WITH_CONSTRAINT | |
DIVIDE_WITH_CONSTRAINTS | |
SLICE | |
RANDOMSEED | |
_LAST |
Definition at line 132 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Generate a random instruction.
T | PRNG class type |
rng | PRNG used |
Definition at line 199 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Mutate the value of a field element.
T | PRNG class |
e | Initial element value |
rng | PRNG |
havoc_config | Mutation configuration |
Definition at line 295 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Mutate a single instruction.
T | PRNG class |
instruction | The instruction |
rng | PRNG |
havoc_config | Mutation configuration |
Definition at line 390 of file safe_uint.fuzzer.hpp.
ArgumentContents SafeUintFuzzBase< Builder >::Instruction::arguments |
Definition at line 190 of file safe_uint.fuzzer.hpp.
OPCODE SafeUintFuzzBase< Builder >::Instruction::id |
Definition at line 188 of file safe_uint.fuzzer.hpp.