8#include "../columns.hpp"
17 static constexpr std::string_view
NAME =
"LOOKUP_GAS_ADDRESSING_GAS_READ";
22 static constexpr Column COUNTS = Column::lookup_gas_addressing_gas_read_counts;
23 static constexpr Column INVERSES = Column::lookup_gas_addressing_gas_read_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
25 ColumnAndShifts::execution_indirect, ColumnAndShifts::execution_addressing_gas
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = {
28 ColumnAndShifts::precomputed_clk, ColumnAndShifts::precomputed_addressing_gas
33template <
typename FF_>
39 static constexpr std::string_view
NAME =
"LOOKUP_GAS_IS_OUT_OF_GAS_L2";
44 static constexpr Column COUNTS = Column::lookup_gas_is_out_of_gas_l2_counts;
46 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
47 ColumnAndShifts::execution_total_gas_l2,
48 ColumnAndShifts::execution_l2_gas_limit,
49 ColumnAndShifts::execution_out_of_gas_l2
51 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
52 ColumnAndShifts::gt_input_b,
53 ColumnAndShifts::gt_res };
57template <
typename FF_>
63 static constexpr std::string_view
NAME =
"LOOKUP_GAS_IS_OUT_OF_GAS_DA";
68 static constexpr Column COUNTS = Column::lookup_gas_is_out_of_gas_da_counts;
70 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
SRC_COLUMNS = {
71 ColumnAndShifts::execution_total_gas_da,
72 ColumnAndShifts::execution_da_gas_limit,
73 ColumnAndShifts::execution_out_of_gas_da
75 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE>
DST_COLUMNS = { ColumnAndShifts::gt_input_a,
76 ColumnAndShifts::gt_input_b,
77 ColumnAndShifts::gt_res };
81template <
typename FF_>
This file contains the template for the generic lookup that can be specialized to enforce various loo...
static constexpr Column COUNTS
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr Column SRC_SELECTOR
static constexpr std::string_view NAME
static constexpr size_t LOOKUP_TUPLE_SIZE
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr Column DST_SELECTOR
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 > SRC_COLUMNS
static constexpr Column SRC_SELECTOR
static constexpr Column INVERSES
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr Column COUNTS
static constexpr Column SRC_SELECTOR
static constexpr Column COUNTS
static constexpr std::string_view RELATION_NAME
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 size_t LOOKUP_TUPLE_SIZE
static constexpr Column DST_SELECTOR