Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ledwards2225 committed Dec 17, 2024
1 parent 5d351b2 commit 0f2b812
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions barretenberg/cpp/src/barretenberg/bb/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void gateCount(const std::string& bytecodePath, bool recursive, bool honk_recurs
gates_per_opcode_str,
"]\n }");

// Attach a comma if we still circuit reports to generate
// Attach a comma if there are more circuit reports to generate
if (i != (constraint_systems.size() - 1)) {
result_string = format(result_string, ",");
}
Expand Down Expand Up @@ -378,6 +378,7 @@ void gate_count_for_ivc(const std::string& bytecodePath)
std::string functions_string = "{\"functions\": [\n ";
auto constraint_systems = get_constraint_systems(bytecodePath, /*honk_recursion=*/false);

// Initialize an SRS to make the ClientIVC constructor happy
init_bn254_crs(1 << 20);
init_grumpkin_crs(1 << 15);
TraceSettings trace_settings{ E2E_FULL_TEST_STRUCTURE };
Expand All @@ -394,7 +395,8 @@ void gate_count_for_ivc(const std::string& bytecodePath)
auto builder = acir_format::create_circuit<MegaCircuitBuilder>(program, metadata);
builder.finalize_circuit(/*ensure_nonzero=*/true);
size_t circuit_size = builder.num_gates;
vinfo("Calculated num_gates in gateCount: ", circuit_size);

// Print the details of the gate types within the structured execution trace
builder.blocks.set_fixed_block_sizes(trace_settings);
builder.blocks.summarize();

Expand All @@ -415,7 +417,7 @@ void gate_count_for_ivc(const std::string& bytecodePath)
gates_per_opcode_str,
"]\n }");

// Attach a comma if we still circuit reports to generate
// Attach a comma if there are more circuit reports to generate
if (i != (constraint_systems.size() - 1)) {
result_string = format(result_string, ",");
}
Expand Down

0 comments on commit 0f2b812

Please sign in to comment.