Barretenberg
The ZK-SNARK library at the core of Aztec
|
A class representing a single fuzzing instruction. More...
#include <bigfield.fuzzer.hpp>
Classes | |
union | ArgumentContents |
struct | Element |
struct | FiveArgs |
struct | FourArgs |
struct | MultAddArgs |
struct | MultOpArgs |
struct | SliceArgs |
struct | ThreeArgs |
struct | TwoArgs |
Public Types | |
enum | OPCODE { CONSTANT , WITNESS , CONSTANT_WITNESS , ADD , SUBTRACT , MULTIPLY , DIVIDE , ADD_TWO , MADD , MULT_MADD , SQR , SQR_ADD , ASSERT_EQUAL , ASSERT_NOT_EQUAL , MSUB_DIV , COND_NEGATE , COND_SELECT , SET , 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 bb::fq | mutateFieldElement (bb::fq 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 142 of file bigfield.fuzzer.hpp.
enum BigFieldBase::Instruction::OPCODE |
Enumerator | |
---|---|
CONSTANT | |
WITNESS | |
CONSTANT_WITNESS | |
ADD | |
SUBTRACT | |
MULTIPLY | |
DIVIDE | |
ADD_TWO | |
MADD | |
MULT_MADD | |
SQR | |
SQR_ADD | |
ASSERT_EQUAL | |
ASSERT_NOT_EQUAL | |
MSUB_DIV | |
COND_NEGATE | |
COND_SELECT | |
SET | |
RANDOMSEED | |
_LAST |
Definition at line 144 of file bigfield.fuzzer.hpp.
|
inlinestatic |
Generate a random instruction.
T | PRNG class type |
rng | PRNG used |
Definition at line 247 of file bigfield.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 363 of file bigfield.fuzzer.hpp.
|
inlinestatic |
Mutate a single instruction.
T | PRNG class |
instruction | The instruction |
rng | PRNG |
havoc_config | Mutation configuration |
Definition at line 461 of file bigfield.fuzzer.hpp.
ArgumentContents BigFieldBase< Builder >::Instruction::arguments |
Definition at line 237 of file bigfield.fuzzer.hpp.
OPCODE BigFieldBase< Builder >::Instruction::id |
Definition at line 235 of file bigfield.fuzzer.hpp.