Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
execution_event.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <vector>
5
12
13namespace bb::avm2::simulation {
14
15// Possible mutually exclusive execution errors.
25
29
30 // Inputs and Outputs for a gadget/subtrace used when allocating registers in the execution trace.
33
34 // Context Id for the next context.
35 uint32_t next_context_id = 0;
36
37 // Sub-events.
41
43
44 // function to determine whether the event was a context "failure"
45 bool is_failure() const
46 {
47 // WARNING: it is important that we check for error first here because
48 // if instruction fetching fails, we cannot do `wire_instruction.get_exec_opcode()`
50 }
51
52 // function to determine whether the event represents a context "exit"
54};
55
56} // namespace bb::avm2::simulation
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
std::vector< MemoryValue > inputs
ExecutionOpCode get_exec_opcode() const