Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_external_call.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_EXTERNAL_CALL_CALL_ALLOCATED_LEFT_L2_RANGE";
18 static constexpr std::string_view RELATION_NAME = "external_call";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_enter_call;
21 static constexpr Column DST_SELECTOR = Column::range_check_sel;
22 static constexpr Column COUNTS = Column::lookup_external_call_call_allocated_left_l2_range_counts;
23 static constexpr Column INVERSES = Column::lookup_external_call_call_allocated_left_l2_range_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_call_allocated_left_l2_cmp_diff, ColumnAndShifts::execution_constant_32
26 };
27 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
28 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
29 };
30};
31
34template <typename FF_>
37
39
41 static constexpr std::string_view NAME = "LOOKUP_EXTERNAL_CALL_CALL_ALLOCATED_LEFT_DA_RANGE";
42 static constexpr std::string_view RELATION_NAME = "external_call";
43 static constexpr size_t LOOKUP_TUPLE_SIZE = 2;
44 static constexpr Column SRC_SELECTOR = Column::execution_sel_enter_call;
45 static constexpr Column DST_SELECTOR = Column::range_check_sel;
46 static constexpr Column COUNTS = Column::lookup_external_call_call_allocated_left_da_range_counts;
47 static constexpr Column INVERSES = Column::lookup_external_call_call_allocated_left_da_range_inv;
48 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
49 ColumnAndShifts::execution_call_allocated_left_da_cmp_diff, ColumnAndShifts::execution_constant_32
50 };
51 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
52 ColumnAndShifts::range_check_value, ColumnAndShifts::range_check_rng_chk_bits
53 };
54};
55
58template <typename FF_>
61
62} // 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