34 #include <libff/common/profiling.hpp>
35 #include <libff/common/utils.hpp>
42 int main(
int argc,
const char *argv[])
44 default_uscs_ppzksnark_pp::init_public_params();
45 libff::start_profiling();
47 if (argc == 2 && strcmp(argv[1],
"-v") == 0) {
48 libff::print_compilation_info();
53 printf(
"usage: %s num_constraints input_size\n", argv[0]);
57 const int num_constraints = atoi(argv[1]);
58 const int input_size = atoi(argv[2]);
60 libff::enter_block(
"Generate USCS example");
63 libff::Fr<default_uscs_ppzksnark_pp>>(num_constraints, input_size);
64 libff::leave_block(
"Generate USCS example");
66 libff::print_header(
"(enter) Profile USCS ppzkSNARK");
67 const bool test_serialization =
true;
68 run_uscs_ppzksnark<default_uscs_ppzksnark_pp>(example, test_serialization);
69 libff::print_header(
"(leave) Profile USCS ppzkSNARK");