Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_get_contract_instance.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_CONTRACT_INSTANCE_PRECOMPUTED_INFO";
18 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
20 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_writes_in_bounds;
21 static constexpr Column DST_SELECTOR = Column::precomputed_sel_range_8;
22 static constexpr Column COUNTS = Column::lookup_get_contract_instance_precomputed_info_counts;
23 static constexpr Column INVERSES = Column::lookup_get_contract_instance_precomputed_info_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::get_contract_instance_member_enum,
26 ColumnAndShifts::get_contract_instance_is_valid_member_enum,
27 ColumnAndShifts::get_contract_instance_is_deployer,
28 ColumnAndShifts::get_contract_instance_is_class_id,
29 ColumnAndShifts::get_contract_instance_is_init_hash
30 };
31 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
32 ColumnAndShifts::precomputed_clk,
33 ColumnAndShifts::precomputed_is_valid_member_enum,
34 ColumnAndShifts::precomputed_is_deployer,
35 ColumnAndShifts::precomputed_is_class_id,
36 ColumnAndShifts::precomputed_is_init_hash
37 };
38};
39
42template <typename FF_>
45
47
49 static constexpr std::string_view NAME = "LOOKUP_GET_CONTRACT_INSTANCE_CONTRACT_INSTANCE_RETRIEVAL";
50 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
51 static constexpr size_t LOOKUP_TUPLE_SIZE = 7;
52 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_member_enum;
53 static constexpr Column DST_SELECTOR = Column::contract_instance_retrieval_sel;
54 static constexpr Column COUNTS = Column::lookup_get_contract_instance_contract_instance_retrieval_counts;
55 static constexpr Column INVERSES = Column::lookup_get_contract_instance_contract_instance_retrieval_inv;
56 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
57 ColumnAndShifts::get_contract_instance_contract_address,
58 ColumnAndShifts::get_contract_instance_nullifier_tree_root,
59 ColumnAndShifts::get_contract_instance_public_data_tree_root,
60 ColumnAndShifts::get_contract_instance_instance_exists,
61 ColumnAndShifts::get_contract_instance_retrieved_deployer_addr,
62 ColumnAndShifts::get_contract_instance_retrieved_class_id,
63 ColumnAndShifts::get_contract_instance_retrieved_init_hash
64 };
65 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
66 ColumnAndShifts::contract_instance_retrieval_address,
67 ColumnAndShifts::contract_instance_retrieval_nullifier_tree_root,
68 ColumnAndShifts::contract_instance_retrieval_public_data_tree_root,
69 ColumnAndShifts::contract_instance_retrieval_exists,
70 ColumnAndShifts::contract_instance_retrieval_deployer_addr,
71 ColumnAndShifts::contract_instance_retrieval_current_class_id,
72 ColumnAndShifts::contract_instance_retrieval_init_hash
73 };
74};
75
78template <typename FF_>
81
83
85 static constexpr std::string_view NAME = "LOOKUP_GET_CONTRACT_INSTANCE_MEM_WRITE_CONTRACT_INSTANCE_EXISTS";
86 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
87 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
88 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_member_enum;
89 static constexpr Column DST_SELECTOR = Column::memory_sel;
90 static constexpr Column COUNTS = Column::lookup_get_contract_instance_mem_write_contract_instance_exists_counts;
91 static constexpr Column INVERSES = Column::lookup_get_contract_instance_mem_write_contract_instance_exists_inv;
92 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
93 ColumnAndShifts::get_contract_instance_clk,
94 ColumnAndShifts::get_contract_instance_dst_offset,
95 ColumnAndShifts::get_contract_instance_instance_exists,
96 ColumnAndShifts::get_contract_instance_exists_tag,
97 ColumnAndShifts::get_contract_instance_is_valid_member_enum,
98 ColumnAndShifts::get_contract_instance_space_id
99 };
100 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
101 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_address, ColumnAndShifts::memory_value,
102 ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw, ColumnAndShifts::memory_space_id
103 };
104};
105
108template <typename FF_>
111
113
115 static constexpr std::string_view NAME = "LOOKUP_GET_CONTRACT_INSTANCE_MEM_WRITE_CONTRACT_INSTANCE_MEMBER";
116 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
117 static constexpr size_t LOOKUP_TUPLE_SIZE = 6;
118 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_member_enum;
119 static constexpr Column DST_SELECTOR = Column::memory_sel;
120 static constexpr Column COUNTS = Column::lookup_get_contract_instance_mem_write_contract_instance_member_counts;
121 static constexpr Column INVERSES = Column::lookup_get_contract_instance_mem_write_contract_instance_member_inv;
122 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
123 ColumnAndShifts::get_contract_instance_clk,
124 ColumnAndShifts::get_contract_instance_member_write_offset,
125 ColumnAndShifts::get_contract_instance_selected_member,
126 ColumnAndShifts::get_contract_instance_member_tag,
127 ColumnAndShifts::get_contract_instance_is_valid_member_enum,
128 ColumnAndShifts::get_contract_instance_space_id
129 };
130 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
131 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_address, ColumnAndShifts::memory_value,
132 ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw, ColumnAndShifts::memory_space_id
133 };
134};
135
138template <typename FF_>
141
142} // 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::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 > SRC_COLUMNS