Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_registers.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_REGISTERS_MEM_OP_0";
18 static constexpr std::string_view RELATION_NAME = "registers";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_0_;
21 static constexpr Column DST_SELECTOR = Column::memory_sel;
22 static constexpr Column COUNTS = Column::lookup_registers_mem_op_0_counts;
23 static constexpr Column INVERSES = Column::lookup_registers_mem_op_0_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_rop_0_, ColumnAndShifts::execution_register_0_,
26 ColumnAndShifts::execution_mem_tag_reg_0_, ColumnAndShifts::execution_rw_reg_0_,
27 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
28 };
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
30 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
31 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
32 };
33};
34
36template <typename FF_>
38
40
42 static constexpr std::string_view NAME = "LOOKUP_REGISTERS_MEM_OP_1";
43 static constexpr std::string_view RELATION_NAME = "registers";
44 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
45 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_1_;
46 static constexpr Column DST_SELECTOR = Column::memory_sel;
47 static constexpr Column COUNTS = Column::lookup_registers_mem_op_1_counts;
48 static constexpr Column INVERSES = Column::lookup_registers_mem_op_1_inv;
49 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
50 ColumnAndShifts::execution_rop_1_, ColumnAndShifts::execution_register_1_,
51 ColumnAndShifts::execution_mem_tag_reg_1_, ColumnAndShifts::execution_rw_reg_1_,
52 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
53 };
54 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
55 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
56 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
57 };
58};
59
61template <typename FF_>
63
65
67 static constexpr std::string_view NAME = "LOOKUP_REGISTERS_MEM_OP_2";
68 static constexpr std::string_view RELATION_NAME = "registers";
69 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
70 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_2_;
71 static constexpr Column DST_SELECTOR = Column::memory_sel;
72 static constexpr Column COUNTS = Column::lookup_registers_mem_op_2_counts;
73 static constexpr Column INVERSES = Column::lookup_registers_mem_op_2_inv;
74 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
75 ColumnAndShifts::execution_rop_2_, ColumnAndShifts::execution_register_2_,
76 ColumnAndShifts::execution_mem_tag_reg_2_, ColumnAndShifts::execution_rw_reg_2_,
77 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
78 };
79 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
80 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
81 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
82 };
83};
84
86template <typename FF_>
88
90
92 static constexpr std::string_view NAME = "LOOKUP_REGISTERS_MEM_OP_3";
93 static constexpr std::string_view RELATION_NAME = "registers";
94 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
95 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_3_;
96 static constexpr Column DST_SELECTOR = Column::memory_sel;
97 static constexpr Column COUNTS = Column::lookup_registers_mem_op_3_counts;
98 static constexpr Column INVERSES = Column::lookup_registers_mem_op_3_inv;
99 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
100 ColumnAndShifts::execution_rop_3_, ColumnAndShifts::execution_register_3_,
101 ColumnAndShifts::execution_mem_tag_reg_3_, ColumnAndShifts::execution_rw_reg_3_,
102 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
103 };
104 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
105 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
106 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
107 };
108};
109
111template <typename FF_>
113
115
117 static constexpr std::string_view NAME = "LOOKUP_REGISTERS_MEM_OP_4";
118 static constexpr std::string_view RELATION_NAME = "registers";
119 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
120 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_4_;
121 static constexpr Column DST_SELECTOR = Column::memory_sel;
122 static constexpr Column COUNTS = Column::lookup_registers_mem_op_4_counts;
123 static constexpr Column INVERSES = Column::lookup_registers_mem_op_4_inv;
124 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
125 ColumnAndShifts::execution_rop_4_, ColumnAndShifts::execution_register_4_,
126 ColumnAndShifts::execution_mem_tag_reg_4_, ColumnAndShifts::execution_rw_reg_4_,
127 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
128 };
129 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
130 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
131 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
132 };
133};
134
136template <typename FF_>
138
140
142 static constexpr std::string_view NAME = "LOOKUP_REGISTERS_MEM_OP_5";
143 static constexpr std::string_view RELATION_NAME = "registers";
144 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
145 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_5_;
146 static constexpr Column DST_SELECTOR = Column::memory_sel;
147 static constexpr Column COUNTS = Column::lookup_registers_mem_op_5_counts;
148 static constexpr Column INVERSES = Column::lookup_registers_mem_op_5_inv;
149 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
150 ColumnAndShifts::execution_rop_5_, ColumnAndShifts::execution_register_5_,
151 ColumnAndShifts::execution_mem_tag_reg_5_, ColumnAndShifts::execution_rw_reg_5_,
152 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
153 };
154 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
155 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
156 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
157 };
158};
159
161template <typename FF_>
163
165
167 static constexpr std::string_view NAME = "LOOKUP_REGISTERS_MEM_OP_6";
168 static constexpr std::string_view RELATION_NAME = "registers";
169 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
170 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_6_;
171 static constexpr Column DST_SELECTOR = Column::memory_sel;
172 static constexpr Column COUNTS = Column::lookup_registers_mem_op_6_counts;
173 static constexpr Column INVERSES = Column::lookup_registers_mem_op_6_inv;
174 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
175 ColumnAndShifts::execution_rop_6_, ColumnAndShifts::execution_register_6_,
176 ColumnAndShifts::execution_mem_tag_reg_6_, ColumnAndShifts::execution_rw_reg_6_,
177 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id
178 };
179 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
180 ColumnAndShifts::memory_address, ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag,
181 ColumnAndShifts::memory_rw, ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id
182 };
183};
184
186template <typename FF_>
188
189} // 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::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view RELATION_NAME
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::string_view RELATION_NAME
static constexpr std::string_view RELATION_NAME
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::string_view RELATION_NAME
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::string_view RELATION_NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS