|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
This class implements the execution of safeuint with an oracle to detect discrepancies. More...
#include <safe_uint.fuzzer.hpp>
Public Member Functions | |
| ExecutionHandler ()=default | |
| ExecutionHandler (uint512_t &r, suint_t &s) | |
| ExecutionHandler (uint512_t r, suint_t s) | |
| ExecutionHandler (suint_t s) | |
| ExecutionHandler | operator+ (const ExecutionHandler &other) |
| ExecutionHandler | subtract (const ExecutionHandler &other, size_t difference_bit_size) |
| ExecutionHandler | operator- (const ExecutionHandler &other) |
| ExecutionHandler | operator* (const ExecutionHandler &other) |
| ExecutionHandler | divide (const ExecutionHandler &other, size_t quotient_bit_size, size_t remainder_bit_size) |
| ExecutionHandler | operator/ (const ExecutionHandler &other) |
| ExecutionHandler | add_two (const ExecutionHandler &other1, const ExecutionHandler &other2) |
| ExecutionHandler | madd (const ExecutionHandler &other1, const ExecutionHandler &other2) |
| std::array< ExecutionHandler, 3 > | slice (uint8_t lsb, uint8_t msb) |
Static Public Member Functions | |
| static size_t | execute_CONSTANT (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the constant instruction (push constant safeuint to the stack) | |
| static size_t | execute_WITNESS (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the witness instruction (push witness safeuit to the stack) | |
| static size_t | execute_CONSTANT_WITNESS (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the constant_witness instruction (push a safeuint witness equal to the constant to the stack) | |
| static size_t | execute_MULTIPLY (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the multiply instruction. | |
| static size_t | execute_ADD (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the addition operator instruction. | |
| static size_t | execute_SUBTRACT (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the subtraction operator instruction. | |
| static size_t | execute_DIVIDE (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the division operator instruction. | |
| static size_t | execute_ADD_TWO (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the ADD_TWO instruction. | |
| static size_t | execute_MADD (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the MADD instruction. | |
| static size_t | execute_SUBTRACT_WITH_CONSTRAINT (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the SUBTRACT_WITH_CONSTRAINT instruction. | |
| static size_t | execute_DIVIDE_WITH_CONSTRAINTS (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| static size_t | execute_SLICE (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the slice instruction. | |
| static size_t | execute_RANDOMSEED (Builder *builder, std::vector< ExecutionHandler > &stack, Instruction &instruction) |
| Execute the RANDOMSEED instruction. | |
Public Attributes | |
| uint512_t | reference_value |
| suint_t | suint |
Private Member Functions | |
| suint_t | s () const |
This class implements the execution of safeuint with an oracle to detect discrepancies.
Definition at line 596 of file safe_uint.fuzzer.hpp.
|
default |
|
inline |
Definition at line 615 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 624 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 635 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 681 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 659 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the addition operator instruction.
| builder | |
| stack | |
| instruction |
Definition at line 848 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the ADD_TWO instruction.
| builder | |
| stack | |
| instruction |
Definition at line 1031 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the constant instruction (push constant safeuint to the stack)
| builder | |
| stack | |
| instruction |
Definition at line 721 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the constant_witness instruction (push a safeuint witness equal to the constant to the stack)
| builder | |
| stack | |
| instruction |
Definition at line 774 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the division operator instruction.
| builder | |
| stack | |
| instruction |
Definition at line 964 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
@brief Execute the DIVIDE_WITH_CONSTRAINTS instruction
@param builder
@param stack
@param instruction
@return if everything is ok, 1 if we should stop execution, since an expected error was
encountered
Definition at line 1201 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the MADD instruction.
| builder | |
| stack | |
| instruction |
Definition at line 1086 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the multiply instruction.
| builder | |
| stack | |
| instruction |
Definition at line 793 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the RANDOMSEED instruction.
| builder | |
| stack | |
| instruction |
Definition at line 1326 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the slice instruction.
| builder | |
| stack | |
| instruction |
Definition at line 1278 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the subtraction operator instruction.
| builder | |
| stack | |
| instruction |
Definition at line 894 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the SUBTRACT_WITH_CONSTRAINT instruction.
| builder | |
| stack | |
| instruction |
Definition at line 1143 of file safe_uint.fuzzer.hpp.
|
inlinestatic |
Execute the witness instruction (push witness safeuit to the stack)
| builder | |
| stack | |
| instruction |
Definition at line 742 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 688 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 655 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 639 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 651 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 672 of file safe_uint.fuzzer.hpp.
|
inlineprivate |
Definition at line 597 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 695 of file safe_uint.fuzzer.hpp.
|
inline |
Definition at line 643 of file safe_uint.fuzzer.hpp.
| uint512_t SafeUintFuzzBase< Builder >::ExecutionHandler::reference_value |
Definition at line 611 of file safe_uint.fuzzer.hpp.
| suint_t SafeUintFuzzBase< Builder >::ExecutionHandler::suint |
Definition at line 613 of file safe_uint.fuzzer.hpp.