Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_ecc_mem.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_ECC_MEM_DISPATCH_EXEC_ECC_ADD";
18 static constexpr std::string_view RELATION_NAME = "ecc_mem";
19 static constexpr size_t COLUMNS_PER_SET = 10;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_execute_ecc_add;
21 static constexpr Column DST_SELECTOR = Column::ecc_add_mem_sel;
22 static constexpr Column INVERSES = Column::perm_ecc_mem_dispatch_exec_ecc_add_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::precomputed_clk, ColumnAndShifts::execution_context_id,
25 ColumnAndShifts::execution_register_0_, ColumnAndShifts::execution_register_1_,
26 ColumnAndShifts::execution_register_2_, ColumnAndShifts::execution_register_3_,
27 ColumnAndShifts::execution_register_4_, ColumnAndShifts::execution_register_5_,
28 ColumnAndShifts::execution_rop_6_, ColumnAndShifts::execution_sel_opcode_error
29 };
30 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
31 ColumnAndShifts::ecc_add_mem_execution_clk, ColumnAndShifts::ecc_add_mem_space_id,
32 ColumnAndShifts::ecc_add_mem_p_x, ColumnAndShifts::ecc_add_mem_p_y,
33 ColumnAndShifts::ecc_add_mem_p_is_inf, ColumnAndShifts::ecc_add_mem_q_x,
34 ColumnAndShifts::ecc_add_mem_q_y, ColumnAndShifts::ecc_add_mem_q_is_inf,
35 ColumnAndShifts::ecc_add_mem_dst_addr_0_, ColumnAndShifts::ecc_add_mem_err
36 };
37};
38
40template <typename FF_>
43
44} // namespace bb::avm2
This file contains the template for the generic permutation that can be specialized to enforce variou...
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS