Skip to content

Commit

Permalink
Use gates amount in the metric function
Browse files Browse the repository at this point in the history
  • Loading branch information
akokoshn authored and nkaskov committed Nov 3, 2023
1 parent bf0d366 commit 3729453
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/nil/blueprint/component_manifest_utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ namespace nil {
for (auto it = witness_amount_ptr->begin();
it != witness_amount_ptr->end(); it++) {
const auto witness_amount = *it;
const auto rows_amount = ComponentType::get_rows_amount(witness_amount,
args...);
const auto total_amount_rows_power_two = std::pow(2, std::ceil(std::log2(rows_amount)));
const auto total_amount_of_gates = ComponentType::get_gate_manifest(witness_amount, args...).get_gates_amount();
values.emplace_back(witness_amount,
ComponentType::get_rows_amount(witness_amount,
args...));
total_amount_rows_power_two + total_amount_of_gates);
}
ASSERT(values.size() > 0);
return values;
Expand Down

0 comments on commit 3729453

Please sign in to comment.