8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_EMIT_UNENCRYPTED_LOG_CHECK_MEMORY_OUT_OF_BOUNDS";
18 static constexpr std::string_view
RELATION_NAME =
"emit_unencrypted_log";
22 static constexpr Column COUNTS = Column::lookup_emit_unencrypted_log_check_memory_out_of_bounds_counts;
23 static constexpr Column INVERSES = Column::lookup_emit_unencrypted_log_check_memory_out_of_bounds_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::emit_unencrypted_log_end_log_address,
26 ColumnAndShifts::emit_unencrypted_log_max_mem_addr,
27 ColumnAndShifts::emit_unencrypted_log_error_out_of_bounds
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_EMIT_UNENCRYPTED_LOG_CHECK_LOG_FIELDS_COUNT";
44 static constexpr std::string_view
RELATION_NAME =
"emit_unencrypted_log";
48 static constexpr Column COUNTS = Column::lookup_emit_unencrypted_log_check_log_fields_count_counts;
49 static constexpr Column INVERSES = Column::lookup_emit_unencrypted_log_check_log_fields_count_inv;
50 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
51 ColumnAndShifts::emit_unencrypted_log_expected_next_log_fields,
52 ColumnAndShifts::emit_unencrypted_log_public_logs_payload_length,
53 ColumnAndShifts::emit_unencrypted_log_error_too_many_log_fields
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_EMIT_UNENCRYPTED_LOG_WRITE_DATA_TO_PUBLIC_INPUTS";
70 static constexpr std::string_view
RELATION_NAME =
"emit_unencrypted_log";
72 static constexpr Column SRC_SELECTOR = Column::emit_unencrypted_log_sel_should_write_to_public_inputs;
74 static constexpr Column COUNTS = Column::lookup_emit_unencrypted_log_write_data_to_public_inputs_counts;
75 static constexpr Column INVERSES = Column::lookup_emit_unencrypted_log_write_data_to_public_inputs_inv;
76 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
77 ColumnAndShifts::emit_unencrypted_log_public_inputs_index,
78 ColumnAndShifts::emit_unencrypted_log_public_inputs_value
80 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
81 ColumnAndShifts::precomputed_clk, ColumnAndShifts::public_inputs_cols_0_
87template <
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 INVERSES
static constexpr Column DST_SELECTOR
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 Column COUNTS
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 COUNTS
static constexpr Column DST_SELECTOR
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column SRC_SELECTOR
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr Column INVERSES
static constexpr size_t LOOKUP_TUPLE_SIZE