Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::alu< FF > Class Template Reference

#include <alu.hpp>

Inheritance diagram for bb::avm2::alu< FF >:
bb::Relation< aluImpl< FF > > bb::avm2::aluImpl< FF >

Static Public Member Functions

static std::string get_subrelation_label (size_t index)
 
- Static Public Member Functions inherited from bb::avm2::aluImpl< FF >
static bool skip (const AllEntities &in)
 
static void accumulate (ContainerOverSubrelations &evals, const AllEntities &in, const RelationParameters< FF > &, const FF &scaling_factor)
 

Static Public Attributes

static constexpr const std::string_view NAME = "alu"
 
static constexpr size_t SR_DISPATCH_OPERATION = 13
 
static constexpr size_t SR_TAG_IS_FF = 16
 
static constexpr size_t SR_TAG_IS_U128 = 17
 
static constexpr size_t SR_ERR_CHECK = 20
 
static constexpr size_t SR_TAG_ERR_CHECK = 21
 
static constexpr size_t SR_AB_TAGS_CHECK = 22
 
static constexpr size_t SR_ONLY_RELEVANT_CHECK_AB_TAGS_ERROR = 23
 
static constexpr size_t SR_DIV_0_ERR = 24
 
static constexpr size_t SR_ONLY_RELEVANT_CHECK_DIV_0_ERR_ERROR = 25
 
static constexpr size_t SR_C_TAG_CHECK = 27
 
static constexpr size_t SR_A_DECOMPOSITION = 29
 
static constexpr size_t SR_B_DECOMPOSITION = 30
 
static constexpr size_t SR_A_LO_BITS = 32
 
static constexpr size_t SR_A_HI_BITS = 33
 
static constexpr size_t SR_ALU_ADD_SUB = 34
 
static constexpr size_t SR_ALU_MUL_NON_U128 = 35
 
static constexpr size_t SR_ALU_MUL_U128 = 36
 
static constexpr size_t SR_ALU_DIV_U128_CHECK = 40
 
static constexpr size_t SR_ALU_DIV_U128 = 41
 
static constexpr size_t SR_ALU_FDIV_DIV_NON_U128 = 42
 
static constexpr size_t SR_EQ_OP_MAIN = 43
 
static constexpr size_t SR_GT_INPUT_A = 46
 
static constexpr size_t SR_GT_INPUT_B = 47
 
static constexpr size_t SR_GT_ASSIGN_RESULT_C = 48
 
static constexpr size_t SR_NOT_OP_MAIN = 49
 
static constexpr size_t SR_SHL_TWO_POW_SHIFT = 50
 
static constexpr size_t SR_ALU_SHL = 51
 
static constexpr size_t SR_ALU_SHR = 52
 
static constexpr size_t SR_SHIFTS_LO_BITS = 55
 
static constexpr size_t SR_SEL_TRUNC_NON_TRIVIAL = 59
 
static constexpr size_t SR_SEL_TRUNCATE = 60
 
static constexpr size_t SR_TRUNC_TRIVIAL_CASE = 61
 
static constexpr size_t SR_SMALL_TRUNC_VAL_IS_LO = 62
 
static constexpr size_t SR_TRUNC_LO_128_DECOMPOSITION = 63
 
static constexpr size_t SR_TRUNC_MID_BITS = 64
 
- Static Public Attributes inherited from bb::Relation< aluImpl< FF > >
static constexpr size_t RELATION_LENGTH
 
- Static Public Attributes inherited from bb::avm2::aluImpl< FF >
static constexpr std::array< size_t, 65 > SUBRELATION_PARTIAL_LENGTHS
 

Additional Inherited Members

- Public Types inherited from bb::Relation< aluImpl< FF > >
using FF = typename RelationImpl::FF
 
using SumcheckTupleOfUnivariatesOverSubrelations = TupleOfUnivariates< FF, RelationImpl::SUBRELATION_PARTIAL_LENGTHS >
 
using SumcheckArrayOfValuesOverSubrelations = ArrayOfValues< FF, RelationImpl::SUBRELATION_PARTIAL_LENGTHS >
 
using UnivariateAccumulator0 = std::tuple_element_t< 0, SumcheckTupleOfUnivariatesOverSubrelations >
 
using ValueAccumulator0 = std::tuple_element_t< 0, SumcheckArrayOfValuesOverSubrelations >
 
- Public Types inherited from bb::avm2::aluImpl< FF >
using FF = FF
 

Detailed Description

template<typename FF>
class bb::avm2::alu< FF >

Definition at line 36 of file alu.hpp.

Member Function Documentation

◆ get_subrelation_label()

template<typename FF >
static std::string bb::avm2::alu< FF >::get_subrelation_label ( size_t  index)
inlinestatic

Definition at line 77 of file alu.hpp.

Member Data Documentation

◆ NAME

template<typename FF >
constexpr const std::string_view bb::avm2::alu< FF >::NAME = "alu"
staticconstexpr

Definition at line 38 of file alu.hpp.

◆ SR_A_DECOMPOSITION

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_A_DECOMPOSITION = 29
staticconstexpr

Definition at line 51 of file alu.hpp.

◆ SR_A_HI_BITS

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_A_HI_BITS = 33
staticconstexpr

Definition at line 54 of file alu.hpp.

◆ SR_A_LO_BITS

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_A_LO_BITS = 32
staticconstexpr

Definition at line 53 of file alu.hpp.

◆ SR_AB_TAGS_CHECK

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_AB_TAGS_CHECK = 22
staticconstexpr

Definition at line 46 of file alu.hpp.

◆ SR_ALU_ADD_SUB

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_ADD_SUB = 34
staticconstexpr

Definition at line 55 of file alu.hpp.

◆ SR_ALU_DIV_U128

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_DIV_U128 = 41
staticconstexpr

Definition at line 59 of file alu.hpp.

◆ SR_ALU_DIV_U128_CHECK

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_DIV_U128_CHECK = 40
staticconstexpr

Definition at line 58 of file alu.hpp.

◆ SR_ALU_FDIV_DIV_NON_U128

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_FDIV_DIV_NON_U128 = 42
staticconstexpr

Definition at line 60 of file alu.hpp.

◆ SR_ALU_MUL_NON_U128

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_MUL_NON_U128 = 35
staticconstexpr

Definition at line 56 of file alu.hpp.

◆ SR_ALU_MUL_U128

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_MUL_U128 = 36
staticconstexpr

Definition at line 57 of file alu.hpp.

◆ SR_ALU_SHL

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_SHL = 51
staticconstexpr

Definition at line 67 of file alu.hpp.

◆ SR_ALU_SHR

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ALU_SHR = 52
staticconstexpr

Definition at line 68 of file alu.hpp.

◆ SR_B_DECOMPOSITION

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_B_DECOMPOSITION = 30
staticconstexpr

Definition at line 52 of file alu.hpp.

◆ SR_C_TAG_CHECK

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_C_TAG_CHECK = 27
staticconstexpr

Definition at line 50 of file alu.hpp.

◆ SR_DISPATCH_OPERATION

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_DISPATCH_OPERATION = 13
staticconstexpr

Definition at line 41 of file alu.hpp.

◆ SR_DIV_0_ERR

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_DIV_0_ERR = 24
staticconstexpr

Definition at line 48 of file alu.hpp.

◆ SR_EQ_OP_MAIN

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_EQ_OP_MAIN = 43
staticconstexpr

Definition at line 61 of file alu.hpp.

◆ SR_ERR_CHECK

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ERR_CHECK = 20
staticconstexpr

Definition at line 44 of file alu.hpp.

◆ SR_GT_ASSIGN_RESULT_C

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_GT_ASSIGN_RESULT_C = 48
staticconstexpr

Definition at line 64 of file alu.hpp.

◆ SR_GT_INPUT_A

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_GT_INPUT_A = 46
staticconstexpr

Definition at line 62 of file alu.hpp.

◆ SR_GT_INPUT_B

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_GT_INPUT_B = 47
staticconstexpr

Definition at line 63 of file alu.hpp.

◆ SR_NOT_OP_MAIN

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_NOT_OP_MAIN = 49
staticconstexpr

Definition at line 65 of file alu.hpp.

◆ SR_ONLY_RELEVANT_CHECK_AB_TAGS_ERROR

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ONLY_RELEVANT_CHECK_AB_TAGS_ERROR = 23
staticconstexpr

Definition at line 47 of file alu.hpp.

◆ SR_ONLY_RELEVANT_CHECK_DIV_0_ERR_ERROR

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_ONLY_RELEVANT_CHECK_DIV_0_ERR_ERROR = 25
staticconstexpr

Definition at line 49 of file alu.hpp.

◆ SR_SEL_TRUNC_NON_TRIVIAL

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_SEL_TRUNC_NON_TRIVIAL = 59
staticconstexpr

Definition at line 70 of file alu.hpp.

◆ SR_SEL_TRUNCATE

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_SEL_TRUNCATE = 60
staticconstexpr

Definition at line 71 of file alu.hpp.

◆ SR_SHIFTS_LO_BITS

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_SHIFTS_LO_BITS = 55
staticconstexpr

Definition at line 69 of file alu.hpp.

◆ SR_SHL_TWO_POW_SHIFT

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_SHL_TWO_POW_SHIFT = 50
staticconstexpr

Definition at line 66 of file alu.hpp.

◆ SR_SMALL_TRUNC_VAL_IS_LO

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_SMALL_TRUNC_VAL_IS_LO = 62
staticconstexpr

Definition at line 73 of file alu.hpp.

◆ SR_TAG_ERR_CHECK

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_TAG_ERR_CHECK = 21
staticconstexpr

Definition at line 45 of file alu.hpp.

◆ SR_TAG_IS_FF

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_TAG_IS_FF = 16
staticconstexpr

Definition at line 42 of file alu.hpp.

◆ SR_TAG_IS_U128

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_TAG_IS_U128 = 17
staticconstexpr

Definition at line 43 of file alu.hpp.

◆ SR_TRUNC_LO_128_DECOMPOSITION

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_TRUNC_LO_128_DECOMPOSITION = 63
staticconstexpr

Definition at line 74 of file alu.hpp.

◆ SR_TRUNC_MID_BITS

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_TRUNC_MID_BITS = 64
staticconstexpr

Definition at line 75 of file alu.hpp.

◆ SR_TRUNC_TRIVIAL_CASE

template<typename FF >
constexpr size_t bb::avm2::alu< FF >::SR_TRUNC_TRIVIAL_CASE = 61
staticconstexpr

Definition at line 72 of file alu.hpp.


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