8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_MEMORY_RANGE_CHECK_LIMB_0";
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 };
29template <
typename FF_>
35 static constexpr std::string_view
NAME =
"LOOKUP_MEMORY_RANGE_CHECK_LIMB_1";
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 };
47template <
typename FF_>
53 static constexpr std::string_view
NAME =
"LOOKUP_MEMORY_RANGE_CHECK_LIMB_2";
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 };
65template <
typename FF_>
71 static constexpr std::string_view
NAME =
"LOOKUP_MEMORY_TAG_MAX_BITS";
76 static constexpr Column COUNTS = Column::lookup_memory_tag_max_bits_counts;
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
86template <
typename FF_>
92 static constexpr std::string_view
NAME =
"LOOKUP_MEMORY_RANGE_CHECK_WRITE_TAGGED_VALUE";
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
108template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::string_view NAME
static constexpr Column DST_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column INVERSES
static constexpr Column COUNTS
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr Column INVERSES
static constexpr std::string_view NAME
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column DST_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column COUNTS
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column COUNTS
static constexpr std::string_view RELATION_NAME
static constexpr Column INVERSES
static constexpr Column DST_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column COUNTS
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr Column DST_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column SRC_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr Column INVERSES
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
static constexpr Column SRC_SELECTOR
static constexpr Column INVERSES
static constexpr Column COUNTS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column DST_SELECTOR