Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_gas.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_GAS_ADDRESSING_GAS_READ";
18 static constexpr std::string_view RELATION_NAME = "gas";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_should_check_gas;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_addressing_gas;
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
26 };
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
28 ColumnAndShifts::precomputed_clk, ColumnAndShifts::precomputed_addressing_gas
29 };
30};
31
33template <typename FF_>
35
37
39 static constexpr std::string_view NAME = "LOOKUP_GAS_LIMIT_USED_L2_RANGE";
40 static constexpr std::string_view RELATION_NAME = "gas";
41 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
42 static constexpr Column SRC_SELECTOR = Column::execution_sel_should_check_gas;
43 static constexpr Column DST_SELECTOR = Column::range_check_sel;
44 static constexpr Column COUNTS = Column::lookup_gas_limit_used_l2_range_counts;
45 static constexpr Column INVERSES = Column::lookup_gas_limit_used_l2_range_inv;
46 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
47 ColumnAndShifts::execution_limit_used_l2_cmp_diff, ColumnAndShifts::execution_constant_64
48 };
49 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
50 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
51 };
52};
53
55template <typename FF_>
57
59
61 static constexpr std::string_view NAME = "LOOKUP_GAS_LIMIT_USED_DA_RANGE";
62 static constexpr std::string_view RELATION_NAME = "gas";
63 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
64 static constexpr Column SRC_SELECTOR = Column::execution_sel_should_check_gas;
65 static constexpr Column DST_SELECTOR = Column::range_check_sel;
66 static constexpr Column COUNTS = Column::lookup_gas_limit_used_da_range_counts;
67 static constexpr Column INVERSES = Column::lookup_gas_limit_used_da_range_inv;
68 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
69 ColumnAndShifts::execution_limit_used_da_cmp_diff, ColumnAndShifts::execution_constant_64
70 };
71 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
72 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
73 };
74};
75
77template <typename FF_>
79
80} // 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 > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS