Skip to content

Commit

Permalink
Adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Apr 28, 2024
1 parent 2cc4610 commit 8ef816f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions bench/bench_cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,14 +849,30 @@ static void pdpub(void) {
BENCH_ADD(cp_amore_ans(g, t, v1, v2, w1, w2, 1, 1));
} BENCH_END;

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

BENCH_RUN("cp_amore_gen (0, 1, 1)") {
BENCH_ADD(cp_amore_gen(r1, r2, t, u1, u2, x, e, 0, 0, 1, 1));
} BENCH_END;

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

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

0 comments on commit 8ef816f

Please sign in to comment.