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

#include <cycle_group.fuzzer.hpp>

Classes

struct  ArgumentContents
 
struct  BatchMulArgs
 
struct  Element
 
struct  FourArgs
 
struct  MulArgs
 
struct  ThreeArgs
 
struct  TwoArgs
 

Public Types

enum  OPCODE {
  CONSTANT , WITNESS , CONSTANT_WITNESS , ASSERT_EQUAL ,
  COND_ASSIGN , SET , SET_INF , ADD ,
  SUBTRACT , NEG , DBL , MULTIPLY ,
  BATCH_MUL , RANDOMSEED , _LAST
}
 

Static Public Member Functions

template<typename T >
requires SimpleRng<T>
static Instruction generateRandom (T &rng)
 Generates a random instruction.
 
template<typename T >
requires SimpleRng<T>
static Element mutateGroupElement (Element e, T &rng, HavocSettings &havoc_config)
 Mutate the value of a group element.
 
template<typename T >
requires SimpleRng<T>
static ScalarField mutateScalarElement (ScalarField e, T &rng, HavocSettings &havoc_config)
 Mutate the value of a scalar 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
 

Detailed Description

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

Definition at line 79 of file cycle_group.fuzzer.hpp.

Member Enumeration Documentation

◆ OPCODE

template<typename Builder >
enum CycleGroupBase::Instruction::OPCODE
Enumerator
CONSTANT 
WITNESS 
CONSTANT_WITNESS 
ASSERT_EQUAL 
COND_ASSIGN 
SET 
SET_INF 
ADD 
SUBTRACT 
NEG 
DBL 
MULTIPLY 
BATCH_MUL 
RANDOMSEED 
_LAST 

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

Member Function Documentation

◆ generateRandom()

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

Generates a random instruction.

Template Parameters
TPRNG class type
Parameters
rngPRNG used
Returns
Instruction

Definition at line 168 of file cycle_group.fuzzer.hpp.

◆ mutateGroupElement()

template<typename Builder >
template<typename T >
requires SimpleRng<T>
static Element CycleGroupBase< Builder >::Instruction::mutateGroupElement ( Element  e,
T &  rng,
HavocSettings havoc_config 
)
inlinestatic

Mutate the value of a group element.

Template Parameters
TPRNG class
Parameters
eInitial element value
rngPRNG
havoc_configMutation configuration
Returns
Mutated element

Definition at line 260 of file cycle_group.fuzzer.hpp.

◆ mutateInstruction()

template<typename Builder >
template<typename T >
requires SimpleRng<T>
static Instruction CycleGroupBase< 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 488 of file cycle_group.fuzzer.hpp.

◆ mutateScalarElement()

template<typename Builder >
template<typename T >
requires SimpleRng<T>
static ScalarField CycleGroupBase< Builder >::Instruction::mutateScalarElement ( ScalarField  e,
T &  rng,
HavocSettings havoc_config 
)
inlinestatic

Mutate the value of a scalar element.

Template Parameters
TPRNG class
Parameters
eInitial scalar value
rngPRNG
havoc_configMutation configuration
Returns
Mutated element

Definition at line 382 of file cycle_group.fuzzer.hpp.

Member Data Documentation

◆ arguments

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

Definition at line 158 of file cycle_group.fuzzer.hpp.

◆ id

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

Definition at line 155 of file cycle_group.fuzzer.hpp.


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