Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_sstore.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_SSTORE_RECORD_WRITTEN_STORAGE_SLOT";
18 static constexpr std::string_view RELATION_NAME = "sstore";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 7;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_write_public_data;
21 static constexpr Column DST_SELECTOR = Column::written_public_data_slots_tree_check_sel;
22 static constexpr Column COUNTS = Column::lookup_sstore_record_written_storage_slot_counts;
23 static constexpr Column INVERSES = Column::lookup_sstore_record_written_storage_slot_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_contract_address,
26 ColumnAndShifts::execution_register_1_,
27 ColumnAndShifts::execution_sel_write_public_data,
28 ColumnAndShifts::execution_prev_written_public_data_slots_tree_root,
29 ColumnAndShifts::execution_prev_written_public_data_slots_tree_size,
30 ColumnAndShifts::execution_written_public_data_slots_tree_root,
31 ColumnAndShifts::execution_written_public_data_slots_tree_size
32 };
33 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
34 ColumnAndShifts::written_public_data_slots_tree_check_address,
35 ColumnAndShifts::written_public_data_slots_tree_check_slot,
36 ColumnAndShifts::written_public_data_slots_tree_check_write,
37 ColumnAndShifts::written_public_data_slots_tree_check_root,
38 ColumnAndShifts::written_public_data_slots_tree_check_tree_size_before_write,
39 ColumnAndShifts::written_public_data_slots_tree_check_write_root,
40 ColumnAndShifts::written_public_data_slots_tree_check_tree_size_after_write
41 };
42};
43
46template <typename FF_>
49
51
53 static constexpr std::string_view NAME = "LOOKUP_SSTORE_STORAGE_WRITE";
54 static constexpr std::string_view RELATION_NAME = "sstore";
55 static constexpr size_t LOOKUP_TUPLE_SIZE = 8;
56 static constexpr Column SRC_SELECTOR = Column::execution_sel_write_public_data;
57 static constexpr Column DST_SELECTOR = Column::public_data_check_sel;
58 static constexpr Column COUNTS = Column::lookup_sstore_storage_write_counts;
59 static constexpr Column INVERSES = Column::lookup_sstore_storage_write_inv;
60 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
61 ColumnAndShifts::execution_register_0_,
62 ColumnAndShifts::execution_contract_address,
63 ColumnAndShifts::execution_register_1_,
64 ColumnAndShifts::execution_prev_public_data_tree_root,
65 ColumnAndShifts::execution_prev_public_data_tree_size,
66 ColumnAndShifts::execution_public_data_tree_root,
67 ColumnAndShifts::execution_public_data_tree_size,
68 ColumnAndShifts::precomputed_clk
69 };
70 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
71 ColumnAndShifts::public_data_check_value,
72 ColumnAndShifts::public_data_check_address,
73 ColumnAndShifts::public_data_check_slot,
74 ColumnAndShifts::public_data_check_root,
75 ColumnAndShifts::public_data_check_tree_size_before_write,
76 ColumnAndShifts::public_data_check_write_root,
77 ColumnAndShifts::public_data_check_tree_size_after_write,
78 ColumnAndShifts::public_data_check_clk
79 };
80};
81
83template <typename FF_>
85
86} // 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 > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, LOOKUP_TUPLE_SIZE > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME