Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bitwise.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
9
10namespace bb::avm2::simulation {
11
12class Bitwise : public BitwiseInterface {
13 public:
17
18 MemoryValue and_op(const MemoryValue& a, const MemoryValue& b) override;
19 MemoryValue or_op(const MemoryValue& a, const MemoryValue& b) override;
20 MemoryValue xor_op(const MemoryValue& a, const MemoryValue& b) override;
21
22 private:
23 // TODO: Use deduplicating events + consider (see bottom paragraph of bitwise.pil) a further deduplication
24 // when some inputs are prefixes of another ones (with a bigger tag).
26};
27
28} // namespace bb::avm2::simulation
MemoryValue and_op(const MemoryValue &a, const MemoryValue &b) override
Definition bitwise.cpp:11
Bitwise(EventEmitterInterface< BitwiseEvent > &event_emitter)
Definition bitwise.hpp:14
EventEmitterInterface< BitwiseEvent > & events
Definition bitwise.hpp:25
MemoryValue or_op(const MemoryValue &a, const MemoryValue &b) override
Definition bitwise.cpp:24
MemoryValue xor_op(const MemoryValue &a, const MemoryValue &b) override
Definition bitwise.cpp:37
EventEmitter< DataCopyEvent > event_emitter
FF a
FF b