Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
internal_call_stack_trace.cpp
Go to the documentation of this file.
2
3#include <cstdint>
4
6
7namespace bb::avm2::tracegen {
8
17 TraceContainer& trace)
18{
19 using C = Column;
20 uint32_t row = 0;
21
22 for (const auto& event : events) {
23 trace.set(row,
24 { {
25 { C::internal_call_stack_sel, 1 },
26 { C::internal_call_stack_context_id, event.context_id },
27 { C::internal_call_stack_entered_call_id, event.entered_call_id },
28 { C::internal_call_stack_call_id, event.call_id },
29 { C::internal_call_stack_return_call_id, event.return_call_id },
30 { C::internal_call_stack_return_pc, event.return_pc },
31 } });
32 row++;
33 }
34}
35
36} // namespace bb::avm2::tracegen
void process(const simulation::EventEmitterInterface< simulation::InternalCallStackEvent >::Container &events, TraceContainer &trace)
Process the internal call stack events and populate columns for the internal call stack sub-trace.
TestTraceContainer trace
simulation::PublicDataTreeReadWriteEvent event