Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_range_check.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_RANGE_CHECK_DYN_RNG_CHK_POW_2";
18 static constexpr std::string_view RELATION_NAME = "range_check";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
20 static constexpr Column SRC_SELECTOR = Column::range_check_sel;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_8;
22 static constexpr Column COUNTS = Column::lookup_range_check_dyn_rng_chk_pow_2_counts;
23 static constexpr Column INVERSES = Column::lookup_range_check_dyn_rng_chk_pow_2_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::range_check_dyn_rng_chk_bits, ColumnAndShifts::range_check_dyn_rng_chk_pow_2
26 };
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
28 ColumnAndShifts::precomputed_clk, ColumnAndShifts::precomputed_power_of_2
29 };
30};
31
33template <typename FF_>
36
38
40 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_DYN_DIFF_IS_U16";
41 static constexpr std::string_view RELATION_NAME = "range_check";
42 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
43 static constexpr Column SRC_SELECTOR = Column::range_check_sel;
44 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
45 static constexpr Column COUNTS = Column::lookup_range_check_dyn_diff_is_u16_counts;
46 static constexpr Column INVERSES = Column::lookup_range_check_dyn_diff_is_u16_inv;
47 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
48 ColumnAndShifts::range_check_dyn_diff
49 };
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
51};
52
54template <typename FF_>
57
59
61 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R0_IS_U16";
62 static constexpr std::string_view RELATION_NAME = "range_check";
63 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
64 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r0_16_bit_rng_lookup;
65 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
66 static constexpr Column COUNTS = Column::lookup_range_check_r0_is_u16_counts;
67 static constexpr Column INVERSES = Column::lookup_range_check_r0_is_u16_inv;
68 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
69 ColumnAndShifts::range_check_u16_r0
70 };
71 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
72};
73
75template <typename FF_>
77
79
81 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R1_IS_U16";
82 static constexpr std::string_view RELATION_NAME = "range_check";
83 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
84 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r1_16_bit_rng_lookup;
85 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
86 static constexpr Column COUNTS = Column::lookup_range_check_r1_is_u16_counts;
87 static constexpr Column INVERSES = Column::lookup_range_check_r1_is_u16_inv;
88 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
89 ColumnAndShifts::range_check_u16_r1
90 };
91 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
92};
93
95template <typename FF_>
97
99
101 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R2_IS_U16";
102 static constexpr std::string_view RELATION_NAME = "range_check";
103 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
104 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r2_16_bit_rng_lookup;
105 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
106 static constexpr Column COUNTS = Column::lookup_range_check_r2_is_u16_counts;
107 static constexpr Column INVERSES = Column::lookup_range_check_r2_is_u16_inv;
108 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
109 ColumnAndShifts::range_check_u16_r2
110 };
111 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
112};
113
115template <typename FF_>
117
119
121 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R3_IS_U16";
122 static constexpr std::string_view RELATION_NAME = "range_check";
123 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
124 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r3_16_bit_rng_lookup;
125 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
126 static constexpr Column COUNTS = Column::lookup_range_check_r3_is_u16_counts;
127 static constexpr Column INVERSES = Column::lookup_range_check_r3_is_u16_inv;
128 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
129 ColumnAndShifts::range_check_u16_r3
130 };
131 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
132};
133
135template <typename FF_>
137
139
141 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R4_IS_U16";
142 static constexpr std::string_view RELATION_NAME = "range_check";
143 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
144 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r4_16_bit_rng_lookup;
145 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
146 static constexpr Column COUNTS = Column::lookup_range_check_r4_is_u16_counts;
147 static constexpr Column INVERSES = Column::lookup_range_check_r4_is_u16_inv;
148 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
149 ColumnAndShifts::range_check_u16_r4
150 };
151 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
152};
153
155template <typename FF_>
157
159
161 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R5_IS_U16";
162 static constexpr std::string_view RELATION_NAME = "range_check";
163 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
164 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r5_16_bit_rng_lookup;
165 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
166 static constexpr Column COUNTS = Column::lookup_range_check_r5_is_u16_counts;
167 static constexpr Column INVERSES = Column::lookup_range_check_r5_is_u16_inv;
168 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
169 ColumnAndShifts::range_check_u16_r5
170 };
171 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
172};
173
175template <typename FF_>
177
179
181 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R6_IS_U16";
182 static constexpr std::string_view RELATION_NAME = "range_check";
183 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
184 static constexpr Column SRC_SELECTOR = Column::range_check_sel_r6_16_bit_rng_lookup;
185 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
186 static constexpr Column COUNTS = Column::lookup_range_check_r6_is_u16_counts;
187 static constexpr Column INVERSES = Column::lookup_range_check_r6_is_u16_inv;
188 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
189 ColumnAndShifts::range_check_u16_r6
190 };
191 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
192};
193
195template <typename FF_>
197
199
201 static constexpr std::string_view NAME = "LOOKUP_RANGE_CHECK_R7_IS_U16";
202 static constexpr std::string_view RELATION_NAME = "range_check";
203 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
204 static constexpr Column SRC_SELECTOR = Column::range_check_sel;
205 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
206 static constexpr Column COUNTS = Column::lookup_range_check_r7_is_u16_counts;
207 static constexpr Column INVERSES = Column::lookup_range_check_r7_is_u16_inv;
208 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
209 ColumnAndShifts::range_check_u16_r7
210 };
211 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
212};
213
215template <typename FF_>
217
218} // 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 > 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 > 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 > 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