Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
memory_event.cpp
Go to the documentation of this file.
2
3namespace bb::avm2::simulation {
4
5static_assert(MemoryMode::READ < MemoryMode::WRITE, "MemoryMode::READ must be less than MemoryMode::WRITE");
6
7// Sorting order precedence is: space_id, addr, execution_clk, mode.
8bool MemoryEvent::operator<(MemoryEvent const& other) const
9{
10 return std::make_tuple(space_id, addr, execution_clk, mode) <
11 std::make_tuple(other.space_id, other.addr, other.execution_clk, other.mode);
12}
13
14} // namespace bb::avm2::simulation
bool operator<(MemoryEvent const &other) const
A comparator to be used by sorting algorithm (std::sort()). We sort first by ascending space_id,...