Skip to content

Commit

Permalink
Distinguish cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Apr 28, 2024
1 parent 0cd8833 commit a2e9e63
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions bench/bench_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,10 +808,20 @@ static void pdpub(void) {
BENCH_ADD(cp_amore_gen(r1, r2, t, u1, u2, x, e, 0, 0, 0, 0));
} BENCH_END;

BENCH_RUN("cp_amore_ver (0, 0)") {
BENCH_RUN("cp_amore_ver (1, 0, 0)") {
g1_rand(p);
g2_rand(q);
pc_map(e, p, q);
cp_amore_gen(r1, r2, t, u1, u2, x, e, 1, 0, 0, 0);
cp_amore_ask(v1, v2, w1, w2, r1, r2, t, p, q, u1, u2, 0, 0);
cp_amore_ans(g, t, v1, v2, w1, w2, 0, 0);
BENCH_ADD(cp_amore_ver(r, g, r1, e, 0, 0));
} BENCH_END;

BENCH_RUN("cp_amore_ver (0, 0, 0)") {
g1_rand(p);
g2_rand(q);
cp_amore_gen(r1, r2, t, u1, u2, x, e, 1, 0, 0, 0);
cp_amore_gen(r1, r2, t, u1, u2, x, e, 0, 0, 0, 0);
cp_amore_ask(v1, v2, w1, w2, r1, r2, t, p, q, u1, u2, 0, 0);
cp_amore_ans(g, t, v1, v2, w1, w2, 0, 0);
BENCH_ADD(cp_amore_ver(r, g, r1, e, 0, 0));
Expand Down

0 comments on commit a2e9e63

Please sign in to comment.