Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mega_execution_trace_generated.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE — do not edit. Regenerate via:
2// node barretenberg/cpp/scripts/flavor-codegen/dist/main.js
3//
4// Source: barretenberg/cpp/scripts/flavor-codegen/src/flavors/mega.ts
5#pragma once
6
7#include <array>
8#include <cstddef>
9#include <string_view>
10#include <vector>
11
16
17namespace bb {
18
20
23
38
39 static constexpr size_t NUM_BLOCKS = 10;
40
42 {
43 return {
44 "ecc_op", "pub_inputs", "lookup", "arithmetic", "delta_range",
45 "elliptic", "memory", "nnf", "busread", "poseidon2",
46 };
47 }
48
49 auto get()
50 {
52 &ecc_op,
54 &lookup,
57 &elliptic,
58 &memory,
59 &nnf,
60 &busread,
61 &poseidon2,
62 });
63 }
64
65 auto get() const
66 {
68 &ecc_op,
70 &lookup,
73 &elliptic,
74 &memory,
75 &nnf,
76 &busread,
77 &poseidon2,
78 });
79 }
80
81 void summarize() const
82 {
83 info("Gate blocks summary:");
84 info("ecc_op : ", this->ecc_op.size());
85 info("pub_inputs : ", this->pub_inputs.size());
86 info("lookup : ", this->lookup.size());
87 info("arithmetic : ", this->arithmetic.size());
88 info("delta_range : ", this->delta_range.size());
89 info("elliptic : ", this->elliptic.size());
90 info("memory : ", this->memory.size());
91 info("nnf : ", this->nnf.size());
92 info("busread : ", this->busread.size());
93 info("poseidon2 : ", this->poseidon2.size());
94 }
95
96 bool operator==(const MegaTraceBlockData& other) const = default;
97};
98
99} // namespace bb
A template class for a reference array. Behaves as if std::array<T&, N> was possible.
Definition ref_array.hpp:23
Native Poseidon2 hash function implementation.
Definition poseidon2.hpp:22
#define info(...)
Definition log.hpp:93
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
ExecutionTraceBlock< fr, 4 > MegaTraceBlock
@ Poseidon2QuadIntTerminal
@ Poseidon2TransitionEntry
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
bool operator==(const MegaTraceBlockData &other) const =default
std::vector< std::string_view > get_labels() const