Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fake_bitwise.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
barretenberg/vm2/simulation/bitwise.hpp
"
4
5
#include "
barretenberg/vm2/common/tagged_value.hpp
"
6
7
namespace
bb::avm2::simulation
{
8
9
class
FakeBitwise
:
public
BitwiseInterface
{
10
public
:
11
FakeBitwise
() =
default
;
12
~FakeBitwise
()
override
=
default
;
13
14
MemoryValue
and_op
(
const
MemoryValue
&
a
,
const
MemoryValue
&
b
)
override
;
15
MemoryValue
or_op
(
const
MemoryValue
&
a
,
const
MemoryValue
&
b
)
override
;
16
MemoryValue
xor_op
(
const
MemoryValue
&
a
,
const
MemoryValue
&
b
)
override
;
17
};
18
19
}
// namespace bb::avm2::simulation
bb::avm2::TaggedValue
Definition
tagged_value.hpp:70
bb::avm2::simulation::BitwiseInterface
Definition
bitwise.hpp:11
bb::avm2::simulation::FakeBitwise
Definition
fake_bitwise.hpp:9
bb::avm2::simulation::FakeBitwise::~FakeBitwise
~FakeBitwise() override=default
bb::avm2::simulation::FakeBitwise::and_op
MemoryValue and_op(const MemoryValue &a, const MemoryValue &b) override
Definition
fake_bitwise.cpp:10
bb::avm2::simulation::FakeBitwise::xor_op
MemoryValue xor_op(const MemoryValue &a, const MemoryValue &b) override
Definition
fake_bitwise.cpp:18
bb::avm2::simulation::FakeBitwise::FakeBitwise
FakeBitwise()=default
bb::avm2::simulation::FakeBitwise::or_op
MemoryValue or_op(const MemoryValue &a, const MemoryValue &b) override
Definition
fake_bitwise.cpp:14
a
FF a
Definition
field_gt.test.cpp:51
b
FF b
Definition
field_gt.test.cpp:52
bb::avm2::simulation
Definition
address_derivation.cpp:8
bitwise.hpp
tagged_value.hpp
src
barretenberg
vm2
simulation
testing
fakes
fake_bitwise.hpp
Generated by
1.9.8