Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
BoolFuzzBase< Builder >::Instruction Class Reference

A class representing a single fuzzing instruction. More...

#include <bool.fuzzer.hpp>

Classes

union  ArgumentContents
 
struct  FourArgs
 
struct  ThreeArgs
 
struct  TwoArgs
 

Public Types

enum  OPCODE {
  CONSTANT , WITNESS , AND , OR ,
  XOR , NOT , ASSERT_EQUAL , SELECT_IF_EQ ,
  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 Instruction mutateInstruction (Instruction instruction, T &rng, HavocSettings &havoc_config)
 Mutate a single instruction.
 

Public Attributes

OPCODE id
 
ArgumentContents arguments
 

Detailed Description

template<typename Builder>
class BoolFuzzBase< Builder >::Instruction

A class representing a single fuzzing instruction.

Definition at line 43 of file bool.fuzzer.hpp.

Member Enumeration Documentation

◆ OPCODE

template<typename Builder >
enum BoolFuzzBase::Instruction::OPCODE
Enumerator
CONSTANT 
WITNESS 
AND 
OR 
XOR 
NOT 
ASSERT_EQUAL 
SELECT_IF_EQ 
SET 
RANDOMSEED 
_LAST 

Definition at line 45 of file bool.fuzzer.hpp.

Member Function Documentation

◆ generateRandom()

template<typename Builder >
template<typename T >
requires SimpleRng<T>
static Instruction BoolFuzzBase< Builder >::Instruction::generateRandom ( T &  rng)
inlinestatic

Generate a random instruction.

Template Parameters
TPRNG class type
Parameters
rngPRNG used
Returns
A random instruction

Definition at line 81 of file bool.fuzzer.hpp.

◆ mutateInstruction()

template<typename Builder >
template<typename T >
requires SimpleRng<T>
static Instruction BoolFuzzBase< Builder >::Instruction::mutateInstruction ( Instruction  instruction,
T &  rng,
HavocSettings havoc_config 
)
inlinestatic

Mutate a single instruction.

Template Parameters
TPRNG class
Parameters
instructionThe instruction
rngPRNG
havoc_configMutation configuration
Returns
Mutated instruction

Definition at line 139 of file bool.fuzzer.hpp.

Member Data Documentation

◆ arguments

template<typename Builder >
ArgumentContents BoolFuzzBase< Builder >::Instruction::arguments

Definition at line 72 of file bool.fuzzer.hpp.

◆ id

template<typename Builder >
OPCODE BoolFuzzBase< Builder >::Instruction::id

Definition at line 70 of file bool.fuzzer.hpp.


The documentation for this class was generated from the following file: