Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
context_stack.test.cpp
Go to the documentation of this file.
1
#include <gmock/gmock.h>
2
#include <gtest/gtest.h>
3
4
#include <cstdint>
5
6
#include "
barretenberg/vm2/constraining/flavor_settings.hpp
"
7
#include "
barretenberg/vm2/constraining/testing/check_relation.hpp
"
8
#include "
barretenberg/vm2/generated/relations/execution.hpp
"
9
#include "
barretenberg/vm2/testing/macros.hpp
"
10
#include "
barretenberg/vm2/tracegen/test_trace_container.hpp
"
11
12
namespace
bb::avm2::constraining
{
13
namespace
{
14
15
using
tracegen::TestTraceContainer;
16
using
FF
=
AvmFlavorSettings::FF
;
17
using
C
=
Column
;
18
using
context
=
bb::avm2::context<FF>
;
19
using
context_stack =
bb::avm2::context_stack<FF>
;
20
21
TEST
(ContextStackConstrainingTest, Basic)
22
{
23
// clang-format off
24
TestTraceContainer
trace
({
25
{{ C::context_stack_sel, 1 }, { C::context_stack_context_id, 1 }, {C::context_stack_context_id_inv, 1}},
26
});
27
// clang-format on
28
29
check_relation<context_stack>(
trace
);
30
}
31
32
}
// namespace
33
}
// namespace bb::avm2::constraining
check_relation.hpp
bb::avm2::AvmFlavorSettings::FF
G1::Fr FF
Definition
flavor_settings.hpp:19
bb::avm2::context_stack
Definition
context_stack.hpp:33
bb::avm2::context
Definition
context.hpp:37
trace
TestTraceContainer trace
Definition
data_copy.test.cpp:59
context
StrictMock< MockContext > context
Definition
data_copy.test.cpp:55
flavor_settings.hpp
execution.hpp
macros.hpp
bb::avm2::constraining
Definition
check_circuit.cpp:16
bb::avm2::constraining::TEST
TEST(TxExecutionConstrainingTest, WriteTreeValue)
Definition
tx.test.cpp:508
bb::avm2::Column
Column
Definition
columns.hpp:32
bb::field< Bn254FrParams >
test_trace_container.hpp
src
barretenberg
vm2
constraining
relations
context_stack.test.cpp
Generated by
1.9.8