Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
configuration.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6
7constexpr uint8_t MAX_MUTATION_NUM = 20;
8
10
12
18});
19
20// Generic uint mutation options (used by all uint types)
22
23// Type aliases for backward compatibility
29
35
41});
42
48});
49
55});
56
62});
63
69});
70
72
74
80});
81
82enum class MemoryTagOptions { U1, U8, U16, U32, U64, U128, FF };
83
85
94});
95
97
106});
107
116});
117
125});
126
128
130
135 });
136
138
140
146 });
147
149
151
156});
157
159
161
166});
167
169
171
176});
177
179
181
186});
187
189
191
197});
198
200
202
207});
208
210
212
217});
218
220 ADD_8,
221 SUB_8,
222 MUL_8,
223 DIV_8,
224 FDIV_8,
225 EQ_8,
226 LT_8,
227 LTE_8,
228 AND_8,
229 OR_8,
230 XOR_8,
231 NOT_8,
232 SHL_8,
233 SHR_8,
234 SET_8,
235 SET_16,
236 SET_32,
237 SET_64,
238 SET_128,
239 SET_FF,
240 MOV_8,
241 MOV_16,
242 ADD_16,
243 SUB_16,
244 MUL_16,
245 DIV_16,
246 FDIV_16,
247 EQ_16,
248 LT_16,
249 LTE_16,
250 AND_16,
251 OR_16,
252 XOR_16,
253 NOT_16,
254 SHL_16,
255 SHR_16,
256 CAST_8,
257 CAST_16,
258 SSTORE,
259 SLOAD,
260 GETENVVAR,
269 CALL,
273 ECADD,
277 TORADIXBE,
278};
279
281
341});
342
345
350});
351
354
359});
360
363
367});
368
371
376});
377
380
385});
386
389
393});
394
397
403});
404
407
414});
415
418
424});
425
428
433 });
434
445
454});
455
459
465 });
466
469
475 });
476
479
482});
483
493
501});
502
504
506
511});
512
519
521
527});
528
535
540});
541
553
555
567 });
568
571
576});
Set32MutationOptions
WeightedSelectionConfig< Set128MutationOptions, 4 > Set128MutationConfig
WeightedSelectionConfig< VariableRefMutationOptions, 5 > VariableRefMutationConfig
constexpr Set128MutationConfig BASIC_SET_128_MUTATION_CONFIGURATION
WeightedSelectionConfig< JumpIfMutationOptions, 3 > JumpIfMutationConfig
constexpr AddressRefMutationConfig BASIC_ADDRESS_REF_MUTATION_CONFIGURATION
Set64MutationOptions
VecMutationOptions
constexpr ReturnOptionsMutationConfig BASIC_RETURN_OPTIONS_MUTATION_CONFIGURATION
constexpr JumpIfMutationConfig BASIC_JUMP_IF_MUTATION_CONFIGURATION
constexpr SLoadMutationConfig BASIC_SLOAD_MUTATION_CONFIGURATION
constexpr GetEnvVarMutationConfig BASIC_GETENVVAR_MUTATION_CONFIGURATION
constexpr Set16MutationConfig BASIC_SET_16_MUTATION_CONFIGURATION
L1ToL2MsgExistsMutationOptions
constexpr NoteHashExistsMutationConfig BASIC_NOTEHASHEXISTS_MUTATION_CONFIGURATION
WeightedSelectionConfig< ToRadixBEMutationOptions, 6 > ToRadixBEMutationConfig
NoteHashExistsMutationOptions
constexpr ToRadixBEMutationConfig BASIC_TORADIXBE_MUTATION_CONFIGURATION
JumpIfToBlockMutationOptions
WeightedSelectionConfig< SetFFMutationOptions, 3 > SetFFMutationConfig
constexpr Set64MutationConfig BASIC_SET_64_MUTATION_CONFIGURATION
WeightedSelectionConfig< ReturnMutationOptions, 3 > ReturnMutationConfig
EmitNoteHashMutationOptions
CallMutationOptions
WeightedSelectionConfig< NullifierExistsMutationOptions, 3 > NullifierExistsMutationConfig
SetFFMutationOptions
WeightedSelectionConfig< FieldMutationOptions, 5 > FieldMutationConfig
WeightedSelectionConfig< EmitNoteHashMutationOptions, 2 > EmitNoteHashMutationConfig
constexpr MemoryTagGenerationConfig BASIC_MEMORY_TAG_GENERATION_CONFIGURATION
WeightedSelectionConfig< Set64MutationOptions, 3 > Set64MutationConfig
constexpr uint8_t MAX_MUTATION_NUM
constexpr ReturndatasizeWithReturndatacopyMutationConfig BASIC_RETURNDATASIZE_WITH_RETURNDATACOPY_MUTATION_CONFIGURATION
SuccessCopyMutationOptions
WeightedSelectionConfig< VecMutationOptions, 5 > VecMutationConfig
WeightedSelectionConfig< UintMutationOptions, 5 > Uint16MutationConfig
constexpr Uint64MutationConfig BASIC_UINT64_T_MUTATION_CONFIGURATION
WeightedSelectionConfig< UintMutationOptions, 5 > Uint64MutationConfig
Set8MutationOptions
WeightedSelectionConfig< SuccessCopyMutationOptions, 1 > SuccessCopyMutationConfig
WeightedSelectionConfig< SendL2ToL1MsgMutationOptions, 4 > SendL2ToL1MsgMutationConfig
Set16MutationOptions
constexpr FuzzerDataMutationConfig BASIC_FUZZER_DATA_MUTATION_CONFIGURATION
constexpr CalldataCopyMutationConfig BASIC_CALLDATACOPY_MUTATION_CONFIGURATION
constexpr GetContractInstanceMutationConfig BASIC_GETCONTRACTINSTANCE_MUTATION_CONFIGURATION
WeightedSelectionConfig< GetEnvVarMutationOptions, 2 > GetEnvVarMutationConfig
CFGInstructionGenerationOptions
WeightedSelectionConfig< InstructionGenerationOptions, 58 > InstructionGenerationConfig
WeightedSelectionConfig< ReturndatasizeWithReturndatacopyMutationOptions, 3 > ReturndatasizeWithReturndatacopyMutationConfig
WeightedSelectionConfig< UintMutationOptions, 5 > Uint32MutationConfig
FuzzerDataMutationOptions
WeightedSelectionConfig< SStoreMutationOptions, 3 > SStoreMutationConfig
WeightedSelectionConfig< AddressRefMutationOptions, 5 > AddressRefMutationConfig
InstructionGenerationOptions
constexpr L1ToL2MsgExistsMutationConfig BASIC_L1TOL2MSGEXISTS_MUTATION_CONFIGURATION
constexpr Uint32MutationConfig BASIC_UINT32_T_MUTATION_CONFIGURATION
constexpr UnaryInstruction8MutationConfig BASIC_UNARY_INSTRUCTION_8_MUTATION_CONFIGURATION
ReturndatasizeWithReturndatacopyMutationOptions
WeightedSelectionConfig< CFGInstructionGenerationOptions, 9 > CFGInstructionGenerationConfig
SStoreMutationOptions
constexpr SetFFMutationConfig BASIC_SET_FF_MUTATION_CONFIGURATION
constexpr Set32MutationConfig BASIC_SET_32_MUTATION_CONFIGURATION
WeightedSelectionConfig< NoteHashExistsMutationOptions, 4 > NoteHashExistsMutationConfig
constexpr FieldMutationConfig BASIC_FIELD_MUTATION_CONFIGURATION
UnaryInstruction8MutationOptions
constexpr BinaryInstruction8MutationConfig BASIC_BINARY_INSTRUCTION_8_MUTATION_CONFIGURATION
UintMutationOptions
WeightedSelectionConfig< GetContractInstanceMutationOptions, 3 > GetContractInstanceMutationConfig
constexpr Uint128MutationConfig BASIC_UINT128_T_MUTATION_CONFIGURATION
constexpr Uint16MutationConfig BASIC_UINT16_T_MUTATION_CONFIGURATION
constexpr SStoreMutationConfig BASIC_SSTORE_MUTATION_CONFIGURATION
CalldataCopyMutationOptions
EmitUnencryptedLogMutationOptions
JumpIfMutationOptions
@ else_program_block_instruction_block_idx
@ then_program_block_instruction_block_idx
constexpr NullifierExistsMutationConfig BASIC_NULLIFIER_EXISTS_MUTATION_CONFIGURATION
FieldMutationOptions
constexpr EmitUnencryptedLogMutationConfig BASIC_EMITUNENCRYPTEDLOG_MUTATION_CONFIGURATION
MemoryTagOptions
constexpr CallMutationConfig BASIC_CALL_MUTATION_CONFIGURATION
constexpr SendL2ToL1MsgMutationConfig BASIC_SENDL2TOL1MSG_MUTATION_CONFIGURATION
WeightedSelectionConfig< Set32MutationOptions, 3 > Set32MutationConfig
constexpr VariableRefMutationConfig BASIC_VARIABLE_REF_MUTATION_CONFIGURATION
WeightedSelectionConfig< JumpIfToBlockMutationOptions, 3 > JumpIfToBlockMutationConfig
Set128MutationOptions
WeightedSelectionConfig< SLoadMutationOptions, 3 > SLoadMutationConfig
constexpr EmitNoteHashMutationConfig BASIC_EMITNOTEHASH_MUTATION_CONFIGURATION
ToRadixBEMutationOptions
WeightedSelectionConfig< BinaryInstruction8MutationOptions, 3 > BinaryInstruction8MutationConfig
ReturnOptionsMutationOptions
ReturnMutationOptions
WeightedSelectionConfig< MemoryTagOptions, 7 > MemoryTagMutationConfig
WeightedSelectionConfig< EmitUnencryptedLogMutationOptions, 2 > EmitUnencryptedLogMutationConfig
constexpr MemoryTagMutationConfig BASIC_MEMORY_TAG_MUTATION_CONFIGURATION
WeightedSelectionConfig< UintMutationOptions, 5 > Uint8MutationConfig
SLoadMutationOptions
WeightedSelectionConfig< ReturnOptionsMutationOptions, 3 > ReturnOptionsMutationConfig
WeightedSelectionConfig< FuzzerDataMutationOptions, 4 > FuzzerDataMutationConfig
constexpr Uint8MutationConfig BASIC_UINT8_T_MUTATION_CONFIGURATION
VariableRefMutationOptions
constexpr InstructionGenerationConfig BASIC_INSTRUCTION_GENERATION_CONFIGURATION
constexpr SuccessCopyMutationConfig BASIC_SUCCESSCOPY_MUTATION_CONFIGURATION
constexpr VecMutationConfig BASIC_VEC_MUTATION_CONFIGURATION
WeightedSelectionConfig< UnaryInstruction8MutationOptions, 2 > UnaryInstruction8MutationConfig
WeightedSelectionConfig< CalldataCopyMutationOptions, 5 > CalldataCopyMutationConfig
WeightedSelectionConfig< Set8MutationOptions, 3 > Set8MutationConfig
GetContractInstanceMutationOptions
GetEnvVarMutationOptions
constexpr JumpIfToBlockMutationConfig BASIC_JUMP_IF_TO_BLOCK_MUTATION_CONFIGURATION
AddressRefMutationOptions
WeightedSelectionConfig< L1ToL2MsgExistsMutationOptions, 3 > L1ToL2MsgExistsMutationConfig
BinaryInstruction8MutationOptions
constexpr ReturnMutationConfig BASIC_RETURN_MUTATION_CONFIGURATION
constexpr CFGInstructionGenerationConfig BASIC_CFG_INSTRUCTION_GENERATION_CONFIGURATION
SendL2ToL1MsgMutationOptions
constexpr Set8MutationConfig BASIC_SET_8_MUTATION_CONFIGURATION
WeightedSelectionConfig< UintMutationOptions, 5 > Uint128MutationConfig
NullifierExistsMutationOptions
WeightedSelectionConfig< Set16MutationOptions, 3 > Set16MutationConfig
WeightedSelectionConfig< CallMutationOptions, 7 > CallMutationConfig
WeightedSelectionConfig< MemoryTagOptions, 7 > MemoryTagGenerationConfig
Add a random value.
Definition field.cpp:50