Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lookups_internal_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_INTERNAL_CALL_UNWIND_CALL_STACK";
18 static constexpr std::string_view RELATION_NAME = "internal_call";
19 static constexpr size_t LOOKUP_TUPLE_SIZE = 5;
20 static constexpr Column SRC_SELECTOR = Column::execution_sel_read_unwind_call_stack;
21 static constexpr Column DST_SELECTOR = Column::internal_call_stack_sel;
22 static constexpr Column COUNTS = Column::lookup_internal_call_unwind_call_stack_counts;
23 static constexpr Column INVERSES = Column::lookup_internal_call_unwind_call_stack_inv;
24 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> SRC_COLUMNS = {
25 ColumnAndShifts::execution_context_id,
26 ColumnAndShifts::execution_internal_call_id,
27 ColumnAndShifts::execution_internal_call_id_shift,
28 ColumnAndShifts::execution_internal_call_return_id_shift,
29 ColumnAndShifts::execution_pc_shift
30 };
31 static constexpr std::array<ColumnAndShifts, LOOKUP_TUPLE_SIZE> DST_COLUMNS = {
32 ColumnAndShifts::internal_call_stack_context_id,
33 ColumnAndShifts::internal_call_stack_entered_call_id,
34 ColumnAndShifts::internal_call_stack_id,
35 ColumnAndShifts::internal_call_stack_return_id,
36 ColumnAndShifts::internal_call_stack_return_pc
37 };
38};
39
42template <typename FF_>
45
46} // 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