Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_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 = "PERM_GET_CONTRACT_INSTANCE_MEM_WRITE_CONTRACT_INSTANCE_EXISTS";
18 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
19 static constexpr size_t COLUMNS_PER_SET = 6;
20 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_member_enum;
21 static constexpr Column DST_SELECTOR = Column::memory_sel_get_contract_instance_exists_write;
22 static constexpr Column INVERSES = Column::perm_get_contract_instance_mem_write_contract_instance_exists_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::get_contract_instance_clk, ColumnAndShifts::get_contract_instance_space_id,
25 ColumnAndShifts::get_contract_instance_dst_offset, ColumnAndShifts::get_contract_instance_instance_exists,
26 ColumnAndShifts::get_contract_instance_exists_tag, ColumnAndShifts::get_contract_instance_is_valid_member_enum
27 };
28 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
29 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
30 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
31 };
32};
33
36template <typename FF_>
39
41
43 static constexpr std::string_view NAME = "PERM_GET_CONTRACT_INSTANCE_MEM_WRITE_CONTRACT_INSTANCE_MEMBER";
44 static constexpr std::string_view RELATION_NAME = "get_contract_instance";
45 static constexpr size_t COLUMNS_PER_SET = 6;
46 static constexpr Column SRC_SELECTOR = Column::get_contract_instance_is_valid_member_enum;
47 static constexpr Column DST_SELECTOR = Column::memory_sel_get_contract_instance_member_write;
48 static constexpr Column INVERSES = Column::perm_get_contract_instance_mem_write_contract_instance_member_inv;
49 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
50 ColumnAndShifts::get_contract_instance_clk,
51 ColumnAndShifts::get_contract_instance_space_id,
52 ColumnAndShifts::get_contract_instance_member_write_offset,
53 ColumnAndShifts::get_contract_instance_selected_member,
54 ColumnAndShifts::get_contract_instance_member_tag,
55 ColumnAndShifts::get_contract_instance_is_valid_member_enum
56 };
57 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
58 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
59 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
60 };
61};
62
65template <typename FF_>
68
69} // namespace bb::avm2
This file contains the template for the generic permutation that can be specialized to enforce variou...
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS