Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bitwise_event.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
7
8namespace bb::avm2::simulation {
9
10class BitwiseException : public std::runtime_error {
11 public:
12 BitwiseException(const std::string& msg)
13 : std::runtime_error("Bitwise Exception: " + msg)
14 {}
15};
16
22
23 // To be used with deduplicating event emitters.
25 Key get_key() const { return { operation, a, b }; }
26
27 bool operator==(const BitwiseEvent& other) const = default;
28};
29
30} // namespace bb::avm2::simulation
BitwiseException(const std::string &msg)
STL namespace.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
unsigned __int128 uint128_t
Definition serialize.hpp:44
std::tuple< BitwiseOperation, MemoryValue, MemoryValue > Key
bool operator==(const BitwiseEvent &other) const =default