Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
pure_execution_components.cpp
Go to the documentation of this file.
1
#include "
barretenberg/vm2/simulation/standalone/pure_execution_components.hpp
"
2
3
#include <memory>
4
5
#include "
barretenberg/vm2/simulation/events/addressing_event.hpp
"
6
#include "
barretenberg/vm2/simulation/events/event_emitter.hpp
"
7
#include "
barretenberg/vm2/simulation/gadgets/gas_tracker.hpp
"
8
#include "
barretenberg/vm2/simulation/standalone/pure_addressing.hpp
"
9
10
namespace
bb::avm2::simulation
{
11
12
std::unique_ptr<AddressingInterface>
PureExecutionComponentsProvider::make_addressing
(
AddressingEvent
&)
13
{
14
return
std::make_unique<PureAddressing>
(
instruction_info_db
);
15
}
16
17
std::unique_ptr<GasTrackerInterface>
PureExecutionComponentsProvider::make_gas_tracker
(
GasEvent
&
gas_event
,
18
const
Instruction
&
instruction
,
19
ContextInterface
&
context
)
20
{
21
return
std::make_unique<GasTracker>
(
gas_event
,
instruction
,
instruction_info_db
,
context
,
greater_than
);
22
}
23
24
}
// namespace bb::avm2::simulation
addressing_event.hpp
bb::avm2::context
Definition
context.hpp:37
bb::avm2::simulation::ContextInterface
Definition
context.hpp:19
bb::avm2::simulation::PureExecutionComponentsProvider::make_gas_tracker
std::unique_ptr< GasTrackerInterface > make_gas_tracker(GasEvent &gas_event, const Instruction &instruction, ContextInterface &context) override
Definition
pure_execution_components.cpp:17
bb::avm2::simulation::PureExecutionComponentsProvider::instruction_info_db
const InstructionInfoDBInterface & instruction_info_db
Definition
pure_execution_components.hpp:28
bb::avm2::simulation::PureExecutionComponentsProvider::greater_than
GreaterThanInterface & greater_than
Definition
pure_execution_components.hpp:27
bb::avm2::simulation::PureExecutionComponentsProvider::make_addressing
std::unique_ptr< AddressingInterface > make_addressing(AddressingEvent &event) override
Definition
pure_execution_components.cpp:12
event_emitter.hpp
gas_tracker.hpp
gas_event
GasEvent gas_event
Definition
gas_tracker.test.cpp:34
instruction
Instruction instruction
Definition
gas_tracker.test.cpp:33
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
pure_addressing.hpp
pure_execution_components.hpp
bb::avm2::simulation::AddressingEvent
Definition
addressing_event.hpp:52
bb::avm2::simulation::GasEvent
Definition
gas_event.hpp:22
bb::avm2::simulation::Instruction
Definition
serialization.hpp:30
src
barretenberg
vm2
simulation
standalone
pure_execution_components.cpp
Generated by
1.9.8