Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_get_env_var.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_GET_ENV_VAR_PRECOMPUTED_INFO";
18 static constexpr std::string_view RELATION_NAME = "get_env_var";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 12;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_execute_get_env_var;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_8;
22 static constexpr Column COUNTS = Column::lookup_get_env_var_precomputed_info_counts;
23 static constexpr Column INVERSES = Column::lookup_get_env_var_precomputed_info_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_rop_1_,
26 ColumnAndShifts::execution_sel_opcode_error,
27 ColumnAndShifts::execution_sel_envvar_pi_lookup_col0,
28 ColumnAndShifts::execution_sel_envvar_pi_lookup_col1,
29 ColumnAndShifts::execution_envvar_pi_row_idx,
30 ColumnAndShifts::execution_is_address,
31 ColumnAndShifts::execution_is_sender,
32 ColumnAndShifts::execution_is_transactionfee,
33 ColumnAndShifts::execution_is_isstaticcall,
34 ColumnAndShifts::execution_is_l2gasleft,
35 ColumnAndShifts::execution_is_dagasleft,
36 ColumnAndShifts::execution_mem_tag_reg_0_
37 };
38 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
39 ColumnAndShifts::precomputed_clk,
40 ColumnAndShifts::precomputed_invalid_envvar_enum,
41 ColumnAndShifts::precomputed_sel_envvar_pi_lookup_col0,
42 ColumnAndShifts::precomputed_sel_envvar_pi_lookup_col1,
43 ColumnAndShifts::precomputed_envvar_pi_row_idx,
44 ColumnAndShifts::precomputed_is_address,
45 ColumnAndShifts::precomputed_is_sender,
46 ColumnAndShifts::precomputed_is_transactionfee,
47 ColumnAndShifts::precomputed_is_isstaticcall,
48 ColumnAndShifts::precomputed_is_l2gasleft,
49 ColumnAndShifts::precomputed_is_dagasleft,
50 ColumnAndShifts::precomputed_out_tag
51 };
52};
53
55template <typename FF_>
58
60
62 static constexpr std::string_view NAME = "LOOKUP_GET_ENV_VAR_READ_FROM_PUBLIC_INPUTS_COL0";
63 static constexpr std::string_view RELATION_NAME = "get_env_var";
64 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
65 static constexpr Column SRC_SELECTOR = Column::execution_sel_envvar_pi_lookup_col0;
66 static constexpr Column DST_SELECTOR = Column::public_inputs_sel;
67 static constexpr Column COUNTS = Column::lookup_get_env_var_read_from_public_inputs_col0_counts;
68 static constexpr Column INVERSES = Column::lookup_get_env_var_read_from_public_inputs_col0_inv;
69 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
70 ColumnAndShifts::execution_envvar_pi_row_idx, ColumnAndShifts::execution_value_from_pi
71 };
72 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
73 ColumnAndShifts::precomputed_clk, ColumnAndShifts::public_inputs_cols_0_
74 };
75};
76
79template <typename FF_>
82
84
86 static constexpr std::string_view NAME = "LOOKUP_GET_ENV_VAR_READ_FROM_PUBLIC_INPUTS_COL1";
87 static constexpr std::string_view RELATION_NAME = "get_env_var";
88 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
89 static constexpr Column SRC_SELECTOR = Column::execution_sel_envvar_pi_lookup_col1;
90 static constexpr Column DST_SELECTOR = Column::public_inputs_sel;
91 static constexpr Column COUNTS = Column::lookup_get_env_var_read_from_public_inputs_col1_counts;
92 static constexpr Column INVERSES = Column::lookup_get_env_var_read_from_public_inputs_col1_inv;
93 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
94 ColumnAndShifts::execution_envvar_pi_row_idx, ColumnAndShifts::execution_value_from_pi
95 };
96 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
97 ColumnAndShifts::precomputed_clk, ColumnAndShifts::public_inputs_cols_1_
98 };
99};
100
103template <typename FF_>
106
107} // 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 > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > DST_COLUMNS