Skip to content

Commit 2744ba4

Browse files
committed
Sarkoxed, please forgive me. I removed you test accidentally :(
1 parent e8e648c commit 2744ba4

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

barretenberg/cpp/src/barretenberg/smt_verification/circuit/standard_circuit.test.cpp

+21-1
Original file line numberDiff line numberDiff line change
@@ -355,4 +355,24 @@ TEST(standard_circuit, shr_relaxation)
355355
Solver s(circuit_info.modulus, default_solver_config, 16, 64);
356356
StandardCircuit circuit(circuit_info, &s, TermType::BVTerm);
357357
}
358-
}
358+
}
359+
360+
TEST(standard_circuit, check_double_xor_bug)
361+
{
362+
StandardCircuitBuilder builder;
363+
uint_ct a = witness_t(&builder, 10);
364+
uint_ct b = witness_t(&builder, 10);
365+
366+
uint_ct c = a ^ b;
367+
uint_ct d = a ^ b;
368+
d = d ^ c;
369+
370+
c = a & b;
371+
d = a & b;
372+
d = d & c;
373+
374+
auto buf = builder.export_circuit();
375+
CircuitSchema circuit_info = unpack_from_buffer(buf);
376+
Solver s(circuit_info.modulus, default_solver_config, 16, 64);
377+
StandardCircuit circuit(circuit_info, &s, TermType::BVTerm);
378+
}

0 commit comments

Comments
 (0)