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
AvmSimulationHelper
(
ExecutionHints
hints
)
11
:
hints
(
std
::move(
hints
))
12
{}
13
14
// Full simulation with event collection.
15
simulation::EventsContainer
simulate
();
16
17
// Fast simulation without event collection.
18
void
simulate_fast
();
19
20
private
:
21
template
<
typename
S>
simulation::EventsContainer
simulate_with_settings
();
22
23
ExecutionHints
hints
;
24
};
25
26
}
// namespace bb::avm2
avm_inputs.hpp
bb::avm2::AvmSimulationHelper
Definition
simulation_helper.hpp:8
bb::avm2::AvmSimulationHelper::simulate_with_settings
simulation::EventsContainer simulate_with_settings()
bb::avm2::AvmSimulationHelper::AvmSimulationHelper
AvmSimulationHelper(ExecutionHints hints)
Definition
simulation_helper.hpp:10
bb::avm2::AvmSimulationHelper::simulate_fast
void simulate_fast()
Definition
simulation_helper.cpp:278
bb::avm2::AvmSimulationHelper::hints
ExecutionHints hints
Definition
simulation_helper.hpp:23
bb::avm2::AvmSimulationHelper::simulate
simulation::EventsContainer simulate()
Definition
simulation_helper.cpp:273
events_container.hpp
bb::avm2
Definition
flavor.hpp:472
std
STL namespace.
bb::avm2::ExecutionHints
Definition
avm_inputs.hpp:328
bb::avm2::simulation::EventsContainer
Definition
events_container.hpp:38
src
barretenberg
vm2
simulation_helper.hpp
Generated by
1.9.8