Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_addressing.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <cstddef>
5#include <string_view>
6#include <tuple>
7
8#include "../columns.hpp"
11
12namespace bb::avm2 {
13
15
17 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_0";
18 static constexpr std::string_view RELATION_NAME = "addressing";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_0_;
21 static constexpr Column DST_SELECTOR = Column::range_check_sel;
22 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_0_counts;
23 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_0_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_overflow_range_check_result_0_, ColumnAndShifts::execution_constant_32
26 };
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
28 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
29 };
30};
31
34template <typename FF_>
37
39
41 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_1";
42 static constexpr std::string_view RELATION_NAME = "addressing";
43 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
44 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_1_;
45 static constexpr Column DST_SELECTOR = Column::range_check_sel;
46 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_1_counts;
47 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_1_inv;
48 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
49 ColumnAndShifts::execution_overflow_range_check_result_1_, ColumnAndShifts::execution_constant_32
50 };
51 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
52 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
53 };
54};
55
58template <typename FF_>
61
63
65 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_2";
66 static constexpr std::string_view RELATION_NAME = "addressing";
67 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
68 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_2_;
69 static constexpr Column DST_SELECTOR = Column::range_check_sel;
70 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_2_counts;
71 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_2_inv;
72 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
73 ColumnAndShifts::execution_overflow_range_check_result_2_, ColumnAndShifts::execution_constant_32
74 };
75 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
76 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
77 };
78};
79
82template <typename FF_>
85
87
89 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_3";
90 static constexpr std::string_view RELATION_NAME = "addressing";
91 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
92 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_3_;
93 static constexpr Column DST_SELECTOR = Column::range_check_sel;
94 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_3_counts;
95 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_3_inv;
96 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
97 ColumnAndShifts::execution_overflow_range_check_result_3_, ColumnAndShifts::execution_constant_32
98 };
99 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
100 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
101 };
102};
103
106template <typename FF_>
109
111
113 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_4";
114 static constexpr std::string_view RELATION_NAME = "addressing";
115 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
116 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_4_;
117 static constexpr Column DST_SELECTOR = Column::range_check_sel;
118 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_4_counts;
119 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_4_inv;
120 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
121 ColumnAndShifts::execution_overflow_range_check_result_4_, ColumnAndShifts::execution_constant_32
122 };
123 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
124 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
125 };
126};
127
130template <typename FF_>
133
135
137 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_5";
138 static constexpr std::string_view RELATION_NAME = "addressing";
139 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
140 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_5_;
141 static constexpr Column DST_SELECTOR = Column::range_check_sel;
142 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_5_counts;
143 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_5_inv;
144 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
145 ColumnAndShifts::execution_overflow_range_check_result_5_, ColumnAndShifts::execution_constant_32
146 };
147 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
148 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
149 };
150};
151
154template <typename FF_>
157
159
161 static constexpr std::string_view NAME = "LOOKUP_ADDRESSING_RELATIVE_OVERFLOW_RANGE_6";
162 static constexpr std::string_view RELATION_NAME = "addressing";
163 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
164 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_is_relative_effective_6_;
165 static constexpr Column DST_SELECTOR = Column::range_check_sel;
166 static constexpr Column COUNTS = Column::lookup_addressing_relative_overflow_range_6_counts;
167 static constexpr Column INVERSES = Column::lookup_addressing_relative_overflow_range_6_inv;
168 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
169 ColumnAndShifts::execution_overflow_range_check_result_6_, ColumnAndShifts::execution_constant_32
170 };
171 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
172 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
173 };
174};
175
178template <typename FF_>
181
182} // namespace bb::avm2
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS