8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_SHA256_MEM_CHECK_STATE_ADDR_IN_RANGE";
22 static constexpr Column COUNTS = Column::lookup_sha256_mem_check_state_addr_in_range_counts;
23 static constexpr Column INVERSES = Column::lookup_sha256_mem_check_state_addr_in_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::sha256_max_state_addr,
26 ColumnAndShifts::sha256_max_mem_addr,
27 ColumnAndShifts::sha256_sel_state_out_of_range_err
29 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
30 ColumnAndShifts::gt_input_b,
31 ColumnAndShifts::gt_res };
36template <
typename FF_>
43 static constexpr std::string_view
NAME =
"LOOKUP_SHA256_MEM_CHECK_INPUT_ADDR_IN_RANGE";
48 static constexpr Column COUNTS = Column::lookup_sha256_mem_check_input_addr_in_range_counts;
49 static constexpr Column INVERSES = Column::lookup_sha256_mem_check_input_addr_in_range_inv;
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
51 ColumnAndShifts::sha256_max_input_addr,
52 ColumnAndShifts::sha256_max_mem_addr,
53 ColumnAndShifts::sha256_sel_input_out_of_range_err
55 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
56 ColumnAndShifts::gt_input_b,
57 ColumnAndShifts::gt_res };
62template <
typename FF_>
69 static constexpr std::string_view
NAME =
"LOOKUP_SHA256_MEM_CHECK_OUTPUT_ADDR_IN_RANGE";
74 static constexpr Column COUNTS = Column::lookup_sha256_mem_check_output_addr_in_range_counts;
75 static constexpr Column INVERSES = Column::lookup_sha256_mem_check_output_addr_in_range_inv;
76 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
77 ColumnAndShifts::sha256_max_output_addr,
78 ColumnAndShifts::sha256_max_mem_addr,
79 ColumnAndShifts::sha256_sel_output_out_of_range_err
81 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
82 ColumnAndShifts::gt_input_b,
83 ColumnAndShifts::gt_res };
88template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr std::string_view RELATION_NAME
static constexpr Column SRC_SELECTOR
static constexpr Column INVERSES
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column DST_SELECTOR
static constexpr Column COUNTS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr Column COUNTS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column SRC_SELECTOR
static constexpr Column DST_SELECTOR
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS