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
3
#include "
barretenberg/vm2/common/avm_inputs.hpp
"
4
#include "
barretenberg/vm2/simulation/events/events_container.hpp
"
5
6
namespace
bb::avm2
{
7
8
class
AvmSimulationHelper
{
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.
14
simulation::EventsContainer
simulate_for_witgen
(
const
ExecutionHints
& hints,
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
avm_inputs.hpp
bb::avm2::AvmSimulationHelper
Definition
simulation_helper.hpp:8
bb::avm2::AvmSimulationHelper::simulate_fast
void simulate_fast(const ExecutionHints &hints)
Definition
simulation_helper.cpp:296
bb::avm2::AvmSimulationHelper::simulate_for_witgen
simulation::EventsContainer simulate_for_witgen(const ExecutionHints &hints, std::vector< PublicDataWrite > public_data_writes)
Definition
simulation_helper.cpp:87
events_container.hpp
bb::avm2
Definition
flavor.hpp:581
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
bb::avm2::ExecutionHints
Definition
avm_inputs.hpp:332
bb::avm2::simulation::EventsContainer
Definition
events_container.hpp:39
src
barretenberg
vm2
simulation_helper.hpp
Generated by
1.9.8