Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
execution.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4#include <stdexcept>
5#include <string>
6
10
11namespace bb::avm2::simulation {
12
13// Forward declarations
14class ContextInterface;
15
23
25 public:
26 virtual ~ExecutionInterface() = default;
27 // Returns the top-level execution result. TODO: This should only be top level enqueud calls
29};
30
31class RegisterValidationException : public std::runtime_error {
32 public:
33 RegisterValidationException(const std::string& message)
34 : std::runtime_error(message)
35 {}
36};
37
38class OpcodeExecutionException : public std::runtime_error {
39 public:
40 OpcodeExecutionException(const std::string& message)
41 : std::runtime_error(message)
42 {}
43};
44
45} // namespace bb::avm2::simulation
virtual ExecutionResult execute(std::unique_ptr< ContextInterface > context)=0
OpcodeExecutionException(const std::string &message)
Definition execution.hpp:40
RegisterValidationException(const std::string &message)
Definition execution.hpp:33
uint32_t MemoryAddress
STL namespace.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13