Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_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 = "LOOKUP_BC_HASHING_GET_PACKED_FIELD";
18 static constexpr std::string_view RELATION_NAME = "bc_hashing";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
20 static constexpr Column SRC_SELECTOR = Column::bc_hashing_sel;
21 static constexpr Column DST_SELECTOR = Column::bc_decomposition_sel_packed;
22 static constexpr Column COUNTS = Column::lookup_bc_hashing_get_packed_field_counts;
23 static constexpr Column INVERSES = Column::lookup_bc_hashing_get_packed_field_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::bc_hashing_pc_index,
26 ColumnAndShifts::bc_hashing_bytecode_id,
27 ColumnAndShifts::bc_hashing_packed_field
28 };
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
30 ColumnAndShifts::bc_decomposition_pc,
31 ColumnAndShifts::bc_decomposition_id,
32 ColumnAndShifts::bc_decomposition_packed_field
33 };
34};
35
37template <typename FF_>
40
42
44 static constexpr std::string_view NAME = "LOOKUP_BC_HASHING_IV_IS_LEN";
45 static constexpr std::string_view RELATION_NAME = "bc_hashing";
46 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
47 static constexpr Column SRC_SELECTOR = Column::bc_hashing_start;
48 static constexpr Column DST_SELECTOR = Column::bc_decomposition_sel_packed;
49 static constexpr Column COUNTS = Column::lookup_bc_hashing_iv_is_len_counts;
50 static constexpr Column INVERSES = Column::lookup_bc_hashing_iv_is_len_inv;
51 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
52 ColumnAndShifts::bc_hashing_pc_index,
53 ColumnAndShifts::bc_hashing_bytecode_id,
54 ColumnAndShifts::bc_hashing_incremental_hash
55 };
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
57 ColumnAndShifts::bc_decomposition_pc,
58 ColumnAndShifts::bc_decomposition_id,
59 ColumnAndShifts::bc_decomposition_bytes_remaining
60 };
61};
62
64template <typename FF_>
66
67} // 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::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS