Skip to content

Commit

Permalink
Sarkoxed, please forgive me. I removed you test accidentally :(
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKotov committed Aug 13, 2024
1 parent e8e648c commit 2744ba4
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,24 @@ TEST(standard_circuit, shr_relaxation)
Solver s(circuit_info.modulus, default_solver_config, 16, 64);
StandardCircuit circuit(circuit_info, &s, TermType::BVTerm);
}
}
}

TEST(standard_circuit, check_double_xor_bug)
{
StandardCircuitBuilder builder;
uint_ct a = witness_t(&builder, 10);
uint_ct b = witness_t(&builder, 10);

uint_ct c = a ^ b;
uint_ct d = a ^ b;
d = d ^ c;

c = a & b;
d = a & b;
d = d & c;

auto buf = builder.export_circuit();
CircuitSchema circuit_info = unpack_from_buffer(buf);
Solver s(circuit_info.modulus, default_solver_config, 16, 64);
StandardCircuit circuit(circuit_info, &s, TermType::BVTerm);
}

0 comments on commit 2744ba4

Please sign in to comment.