Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
simulation_helper.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace bb::avm2 {
7
9 public:
10 // Full simulation with event collection.
11 // public_data_writes are required to generate some ff_gt events at the end of the simulation in order to
12 // constrain that leaf slots of public data writes are sorted in ascending order.
13 // This is needed to perform squashing of public data writes.
15 std::vector<PublicDataWrite> public_data_writes);
16
17 // Fast simulation without event collection.
18 // FIXME(fcarreiro): This should eventually only take the Tx, Globals and not much more.
19 void simulate_fast(const ExecutionHints& hints);
20};
21
22} // namespace bb::avm2
void simulate_fast(const ExecutionHints &hints)
simulation::EventsContainer simulate_for_witgen(const ExecutionHints &hints, std::vector< PublicDataWrite > public_data_writes)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13