From b554fbbe549552624af96c5bb89c4459f64256f3 Mon Sep 17 00:00:00 2001 From: "hilder.vitor" Date: Fri, 11 Mar 2022 14:05:09 +0100 Subject: [PATCH] if(gate == XOR) was appearing two times in a test. Just removed it. --- test.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test.cpp b/test.cpp index b686920..fc63593 100644 --- a/test.cpp +++ b/test.cpp @@ -615,13 +615,6 @@ void test_lwehe_gate_composition_helper(SchemeLWE& s, GateType g) exp_out = (exp_out ^ in2); // exp_out = XOR(exp_out, in2) //cout << "XOR output: " << output << endl; } - else if (g == XOR) { - auto start = clock(); - s.xor_gate(ct_res, ct_res, ct); - avg_time += float(clock()-start)/CLOCKS_PER_SEC; - exp_out = (exp_out ^ in2); // exp_out = XOR(exp_out, in2) - //cout << "XOR output: " << output << endl; - } else if (g == NOT) { auto start = clock(); s.not_gate(ct_res, ct_res); @@ -629,8 +622,6 @@ void test_lwehe_gate_composition_helper(SchemeLWE& s, GateType g) exp_out = (1 - exp_out); // exp_out = NOT(exp_out) } - - int output = s.decrypt(ct_res); assert(output == exp_out); }