Skip to content

Commit 6ee56c1

Browse files
committed
biggroup tests
1 parent 3a5f63b commit 6ee56c1

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

barretenberg/cpp/src/barretenberg/boomerang_value_detection/graph_description_goblin.test.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ TEST_F(BoomerangGoblinRecursiveVerifierTests, graph_description_basic)
116116
auto graph = cdg::StaticAnalyzer(builder, false);
117117
auto variables_in_one_gate = graph.show_variables_in_one_gate(builder);
118118
EXPECT_EQ(variables_in_one_gate.size(), 0);
119+
if (variables_in_one_gate.size() > 0) {
120+
for (const auto& elem : variables_in_one_gate) {
121+
info("elem == ", elem);
122+
}
123+
}
119124
}
120125

121126
} // namespace bb::stdlib::recursion::honk

barretenberg/cpp/src/barretenberg/stdlib/primitives/biggroup/biggroup_impl.hpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,21 @@ element<C, Fq, Fr, G> element<C, Fq, Fr, G>::operator+(const element& other) con
122122
// yes = infinity_predicate && !lhs_infinity && !rhs_infinity
123123
// yes = lhs_infinity && rhs_infinity
124124
// n.b. can likely optimize this
125+
info("PRINT in BIGGROUP OLOLLLO");
126+
info(lhs_infinity.witness_index);
127+
info(rhs_infinity.witness_index);
125128
bool_ct result_is_infinity = infinity_predicate && (!lhs_infinity && !rhs_infinity);
126-
if constexpr (IsUltraBuilder<C>) {
127-
result_is_infinity.get_context()->update_used_witnesses(result_is_infinity.witness_index);
128-
}
129+
/* if constexpr (IsUltraBuilder<C>) {
130+
result_is_infinity.get_context()->update_used_witnesses(result_is_infinity.witness_index);
131+
} */
132+
info(result_is_infinity.witness_index);
129133
result_is_infinity = result_is_infinity || (lhs_infinity && rhs_infinity);
130-
if constexpr (IsUltraBuilder<C>) {
131-
result_is_infinity.get_context()->update_used_witnesses(result_is_infinity.witness_index);
132-
}
134+
/* if constexpr (IsUltraBuilder<C>) {
135+
result_is_infinity.get_context()->update_used_witnesses(result_is_infinity.witness_index);
136+
} */
137+
info(result_is_infinity.witness_index);
133138
result.set_point_at_infinity(result_is_infinity);
139+
info(result_is_infinity.get_value());
134140

135141
result.set_origin_tag(OriginTag(get_origin_tag(), other.get_origin_tag()));
136142
return result;

barretenberg/cpp/src/barretenberg/stdlib_circuit_builders/circuit_builder_base_impl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ template <typename FF_> uint32_t CircuitBuilderBase<FF_>::add_variable(const FF&
8484
{
8585
variables.emplace_back(in);
8686
const uint32_t index = static_cast<uint32_t>(variables.size()) - 1U;
87+
if (index == 19470) {
88+
info("OLOLOLOLOL");
89+
}
8790
real_variable_index.emplace_back(index);
8891
next_var_index.emplace_back(REAL_VARIABLE);
8992
prev_var_index.emplace_back(FIRST_VARIABLE_IN_CLASS);

0 commit comments

Comments
 (0)