Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_bc_hashing.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_BC_HASHING_BYTECODE_LENGTH_BYTES";
18 static constexpr std::string_view RELATION_NAME = "bc_hashing";
19 static constexpr size_t COLUMNS_PER_SET = 3;
20 static constexpr Column SRC_SELECTOR = Column::bc_hashing_start;
21 static constexpr Column DST_SELECTOR = Column::bc_decomposition_start;
22 static constexpr Column INVERSES = Column::perm_bc_hashing_bytecode_length_bytes_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::precomputed_zero,
25 ColumnAndShifts::bc_hashing_bytecode_id,
26 ColumnAndShifts::bc_hashing_size_in_bytes
27 };
28 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
29 ColumnAndShifts::bc_decomposition_pc,
30 ColumnAndShifts::bc_decomposition_id,
31 ColumnAndShifts::bc_decomposition_bytes_remaining
32 };
33};
34
37template <typename FF_>
40
42
44 static constexpr std::string_view NAME = "PERM_BC_HASHING_GET_PACKED_FIELD_0";
45 static constexpr std::string_view RELATION_NAME = "bc_hashing";
46 static constexpr size_t COLUMNS_PER_SET = 3;
47 static constexpr Column SRC_SELECTOR = Column::bc_hashing_sel_not_start;
48 static constexpr Column DST_SELECTOR = Column::bc_decomposition_sel_packed_read_0_;
49 static constexpr Column INVERSES = Column::perm_bc_hashing_get_packed_field_0_inv;
50 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
51 ColumnAndShifts::bc_hashing_pc_index,
52 ColumnAndShifts::bc_hashing_bytecode_id,
53 ColumnAndShifts::bc_hashing_packed_fields_0
54 };
55 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
56 ColumnAndShifts::bc_decomposition_pc,
57 ColumnAndShifts::bc_decomposition_id,
58 ColumnAndShifts::bc_decomposition_packed_field
59 };
60};
61
63template <typename FF_>
66
68
70 static constexpr std::string_view NAME = "PERM_BC_HASHING_GET_PACKED_FIELD_1";
71 static constexpr std::string_view RELATION_NAME = "bc_hashing";
72 static constexpr size_t COLUMNS_PER_SET = 3;
73 static constexpr Column SRC_SELECTOR = Column::bc_hashing_sel_not_padding_1;
74 static constexpr Column DST_SELECTOR = Column::bc_decomposition_sel_packed_read_1_;
75 static constexpr Column INVERSES = Column::perm_bc_hashing_get_packed_field_1_inv;
76 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
77 ColumnAndShifts::bc_hashing_pc_index_1,
78 ColumnAndShifts::bc_hashing_bytecode_id,
79 ColumnAndShifts::bc_hashing_packed_fields_1
80 };
81 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
82 ColumnAndShifts::bc_decomposition_pc,
83 ColumnAndShifts::bc_decomposition_id,
84 ColumnAndShifts::bc_decomposition_packed_field
85 };
86};
87
89template <typename FF_>
92
94
96 static constexpr std::string_view NAME = "PERM_BC_HASHING_GET_PACKED_FIELD_2";
97 static constexpr std::string_view RELATION_NAME = "bc_hashing";
98 static constexpr size_t COLUMNS_PER_SET = 3;
99 static constexpr Column SRC_SELECTOR = Column::bc_hashing_sel_not_padding_2;
100 static constexpr Column DST_SELECTOR = Column::bc_decomposition_sel_packed_read_2_;
101 static constexpr Column INVERSES = Column::perm_bc_hashing_get_packed_field_2_inv;
102 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
103 ColumnAndShifts::bc_hashing_pc_index_2,
104 ColumnAndShifts::bc_hashing_bytecode_id,
105 ColumnAndShifts::bc_hashing_packed_fields_2
106 };
107 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
108 ColumnAndShifts::bc_decomposition_pc,
109 ColumnAndShifts::bc_decomposition_id,
110 ColumnAndShifts::bc_decomposition_packed_field
111 };
112};
113
115template <typename FF_>
118
119} // namespace bb::avm2
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::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
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::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS