|
barretenberg
|
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 , SLICE , RANDOMSEED , COND_NEGATE , COND_SELECT , SELECT_IF_ZERO , SELECT_IF_EQ , SET , INVERT , _LAST } |
| typedef barretenberg::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 barretenberg::fr | mutateFieldElement (barretenberg::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.
|
inlinestatic |
Generate a random instruction.
| T | PRNG class type |
| rng | PRNG used |
|
inlinestatic |
Mutate the value of a field element.
| T | PRNG class |
| e | Initial element value |
| rng | PRNG |
| havoc_config | Mutation configuration |
|
inlinestatic |
Mutate a single instruction.
| T | PRNG class |
| instruction | The instruction |
| rng | PRNG |
| havoc_config | Mutation configuration |