Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_memory.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_MEMORY_RANGE_CHECK_LIMB_0";
18 static constexpr std::string_view RELATION_NAME = "memory";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
20 static constexpr Column SRC_SELECTOR = Column::memory_sel_rng_chk;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
22 static constexpr Column COUNTS = Column::lookup_memory_range_check_limb_0_counts;
23 static constexpr Column INVERSES = Column::lookup_memory_range_check_limb_0_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = { ColumnAndShifts::memory_limb_0_ };
25 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
26};
27
29template <typename FF_>
31
33
35 static constexpr std::string_view NAME = "LOOKUP_MEMORY_RANGE_CHECK_LIMB_1";
36 static constexpr std::string_view RELATION_NAME = "memory";
37 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
38 static constexpr Column SRC_SELECTOR = Column::memory_sel_rng_chk;
39 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
40 static constexpr Column COUNTS = Column::lookup_memory_range_check_limb_1_counts;
41 static constexpr Column INVERSES = Column::lookup_memory_range_check_limb_1_inv;
42 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = { ColumnAndShifts::memory_limb_1_ };
43 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
44};
45
47template <typename FF_>
49
51
53 static constexpr std::string_view NAME = "LOOKUP_MEMORY_RANGE_CHECK_LIMB_2";
54 static constexpr std::string_view RELATION_NAME = "memory";
55 static constexpr size_t LOOKUP_TUPLE_SIZE = 1;
56 static constexpr Column SRC_SELECTOR = Column::memory_sel_rng_chk;
57 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_16;
58 static constexpr Column COUNTS = Column::lookup_memory_range_check_limb_2_counts;
59 static constexpr Column INVERSES = Column::lookup_memory_range_check_limb_2_inv;
60 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = { ColumnAndShifts::memory_limb_2_ };
61 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::precomputed_clk };
62};
63
65template <typename FF_>
67
69
71 static constexpr std::string_view NAME = "LOOKUP_MEMORY_TAG_MAX_BITS";
72 static constexpr std::string_view RELATION_NAME = "memory";
73 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
74 static constexpr Column SRC_SELECTOR = Column::memory_sel_rng_write;
75 static constexpr Column DST_SELECTOR = Column::precomputed_sel_tag_parameters;
76 static constexpr Column COUNTS = Column::lookup_memory_tag_max_bits_counts;
77 static constexpr Column INVERSES = Column::lookup_memory_tag_max_bits_inv;
78 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = { ColumnAndShifts::memory_tag,
79 ColumnAndShifts::memory_max_bits };
80 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
81 ColumnAndShifts::precomputed_clk, ColumnAndShifts::precomputed_tag_max_bits
82 };
83};
84
86template <typename FF_>
88
90
92 static constexpr std::string_view NAME = "LOOKUP_MEMORY_RANGE_CHECK_WRITE_TAGGED_VALUE";
93 static constexpr std::string_view RELATION_NAME = "memory";
94 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
95 static constexpr Column SRC_SELECTOR = Column::memory_sel_rng_write;
96 static constexpr Column DST_SELECTOR = Column::range_check_sel_memory;
97 static constexpr Column COUNTS = Column::lookup_memory_range_check_write_tagged_value_counts;
98 static constexpr Column INVERSES = Column::lookup_memory_range_check_write_tagged_value_inv;
99 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = { ColumnAndShifts::memory_value,
100 ColumnAndShifts::memory_max_bits };
101 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
102 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
103 };
104};
105
108template <typename FF_>
111
112} // 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::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::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
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::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME