Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_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 = "PERM_REGISTERS_MEM_OP_0";
18 static constexpr std::string_view RELATION_NAME = "registers";
19 static constexpr size_t COLUMNS_PER_SET = 6;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_0_;
21 static constexpr Column DST_SELECTOR = Column::memory_sel_register_op_0_;
22 static constexpr Column INVERSES = Column::perm_registers_mem_op_0_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::execution_clk,
25 ColumnAndShifts::execution_context_id,
26 ColumnAndShifts::execution_rop_0_,
27 ColumnAndShifts::execution_register_0_,
28 ColumnAndShifts::execution_mem_tag_reg_0_,
29 ColumnAndShifts::execution_rw_reg_0_
30 };
31 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
32 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
33 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
34 };
35};
36
38template <typename FF_>
40
42
44 static constexpr std::string_view NAME = "PERM_REGISTERS_MEM_OP_1";
45 static constexpr std::string_view RELATION_NAME = "registers";
46 static constexpr size_t COLUMNS_PER_SET = 6;
47 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_1_;
48 static constexpr Column DST_SELECTOR = Column::memory_sel_register_op_1_;
49 static constexpr Column INVERSES = Column::perm_registers_mem_op_1_inv;
50 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
51 ColumnAndShifts::execution_clk,
52 ColumnAndShifts::execution_context_id,
53 ColumnAndShifts::execution_rop_1_,
54 ColumnAndShifts::execution_register_1_,
55 ColumnAndShifts::execution_mem_tag_reg_1_,
56 ColumnAndShifts::execution_rw_reg_1_
57 };
58 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
59 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
60 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
61 };
62};
63
65template <typename FF_>
67
69
71 static constexpr std::string_view NAME = "PERM_REGISTERS_MEM_OP_2";
72 static constexpr std::string_view RELATION_NAME = "registers";
73 static constexpr size_t COLUMNS_PER_SET = 6;
74 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_2_;
75 static constexpr Column DST_SELECTOR = Column::memory_sel_register_op_2_;
76 static constexpr Column INVERSES = Column::perm_registers_mem_op_2_inv;
77 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
78 ColumnAndShifts::execution_clk,
79 ColumnAndShifts::execution_context_id,
80 ColumnAndShifts::execution_rop_2_,
81 ColumnAndShifts::execution_register_2_,
82 ColumnAndShifts::execution_mem_tag_reg_2_,
83 ColumnAndShifts::execution_rw_reg_2_
84 };
85 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
86 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
87 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
88 };
89};
90
92template <typename FF_>
94
96
98 static constexpr std::string_view NAME = "PERM_REGISTERS_MEM_OP_3";
99 static constexpr std::string_view RELATION_NAME = "registers";
100 static constexpr size_t COLUMNS_PER_SET = 6;
101 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_3_;
102 static constexpr Column DST_SELECTOR = Column::memory_sel_register_op_3_;
103 static constexpr Column INVERSES = Column::perm_registers_mem_op_3_inv;
104 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
105 ColumnAndShifts::execution_clk,
106 ColumnAndShifts::execution_context_id,
107 ColumnAndShifts::execution_rop_3_,
108 ColumnAndShifts::execution_register_3_,
109 ColumnAndShifts::execution_mem_tag_reg_3_,
110 ColumnAndShifts::execution_rw_reg_3_
111 };
112 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
113 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
114 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
115 };
116};
117
119template <typename FF_>
121
123
125 static constexpr std::string_view NAME = "PERM_REGISTERS_MEM_OP_4";
126 static constexpr std::string_view RELATION_NAME = "registers";
127 static constexpr size_t COLUMNS_PER_SET = 6;
128 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_4_;
129 static constexpr Column DST_SELECTOR = Column::memory_sel_register_op_4_;
130 static constexpr Column INVERSES = Column::perm_registers_mem_op_4_inv;
131 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
132 ColumnAndShifts::execution_clk,
133 ColumnAndShifts::execution_context_id,
134 ColumnAndShifts::execution_rop_4_,
135 ColumnAndShifts::execution_register_4_,
136 ColumnAndShifts::execution_mem_tag_reg_4_,
137 ColumnAndShifts::execution_rw_reg_4_
138 };
139 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
140 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
141 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
142 };
143};
144
146template <typename FF_>
148
150
152 static constexpr std::string_view NAME = "PERM_REGISTERS_MEM_OP_5";
153 static constexpr std::string_view RELATION_NAME = "registers";
154 static constexpr size_t COLUMNS_PER_SET = 6;
155 static constexpr Column SRC_SELECTOR = Column::execution_sel_op_reg_effective_5_;
156 static constexpr Column DST_SELECTOR = Column::memory_sel_register_op_5_;
157 static constexpr Column INVERSES = Column::perm_registers_mem_op_5_inv;
158 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
159 ColumnAndShifts::execution_clk,
160 ColumnAndShifts::execution_context_id,
161 ColumnAndShifts::execution_rop_5_,
162 ColumnAndShifts::execution_register_5_,
163 ColumnAndShifts::execution_mem_tag_reg_5_,
164 ColumnAndShifts::execution_rw_reg_5_
165 };
166 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
167 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
168 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
169 };
170};
171
173template <typename FF_>
175
176} // namespace bb::avm2
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS