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_IS_OUT_OF_GAS_L2";
40 static constexpr std::string_view RELATION_NAME = "gas";
41 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
42 static constexpr Column SRC_SELECTOR = Column::execution_sel_should_check_gas;
43 static constexpr Column DST_SELECTOR = Column::gt_sel_gas;
44 static constexpr Column COUNTS = Column::lookup_gas_is_out_of_gas_l2_counts;
45 static constexpr Column INVERSES = Column::lookup_gas_is_out_of_gas_l2_inv;
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
50 };
51 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::gt_input_a,
52 ColumnAndShifts::gt_input_b,
53 ColumnAndShifts::gt_res };
54};
55
57template <typename FF_>
59
61
63 static constexpr std::string_view NAME = "LOOKUP_GAS_IS_OUT_OF_GAS_DA";
64 static constexpr std::string_view RELATION_NAME = "gas";
65 static constexpr size_t LOOKUP_TUPLE_SIZE = 3;
66 static constexpr Column SRC_SELECTOR = Column::execution_sel_should_check_gas;
67 static constexpr Column DST_SELECTOR = Column::gt_sel_gas;
68 static constexpr Column COUNTS = Column::lookup_gas_is_out_of_gas_da_counts;
69 static constexpr Column INVERSES = Column::lookup_gas_is_out_of_gas_da_inv;
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
74 };
75 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = { ColumnAndShifts::gt_input_a,
76 ColumnAndShifts::gt_input_b,
77 ColumnAndShifts::gt_res };
78};
79
81template <typename FF_>
83
84} // 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 NAME
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 RELATION_NAME
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
static constexpr std::string_view NAME