|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
A class representing a single fuzzing instruction. More...
#include <field.fuzzer.hpp>
Classes | |
| union | ArgumentContents |
| struct | FiveArgs |
| struct | FourArgs |
| struct | MultAddArgs |
| struct | MultOpArgs |
| struct | SingleArg |
| struct | SliceArgs |
| struct | ThreeArgs |
| struct | TwoArgs |
Public Types | |
| enum | OPCODE { CONSTANT , WITNESS , CONSTANT_WITNESS , ADD , SUBTRACT , MULTIPLY , DIVIDE , ADD_TWO , MADD , SQR , ASSERT_EQUAL , ASSERT_NOT_EQUAL , ASSERT_ZERO , ASSERT_NOT_ZERO , RANDOMSEED , COND_NEGATE , COND_SELECT , SELECT_IF_ZERO , SELECT_IF_EQ , SET , INVERT , _LAST } |
| typedef bb::fr | Element |
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::fr | mutateFieldElement (bb::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 128 of file field.fuzzer.hpp.
Definition at line 157 of file field.fuzzer.hpp.
| enum FieldBase::Instruction::OPCODE |
Definition at line 130 of file field.fuzzer.hpp.
|
inlinestatic |
Generate a random instruction.
| T | PRNG class type |
| rng | PRNG used |
Definition at line 225 of file field.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 312 of file field.fuzzer.hpp.
|
inlinestatic |
Mutate a single instruction.
| T | PRNG class |
| instruction | The instruction |
| rng | PRNG |
| havoc_config | Mutation configuration |
Definition at line 410 of file field.fuzzer.hpp.
| ArgumentContents FieldBase< Builder >::Instruction::arguments |
Definition at line 215 of file field.fuzzer.hpp.
Definition at line 213 of file field.fuzzer.hpp.