Skip to content

Commit

Permalink
fix(dsl): Use info instead of std::cout to log (#323)
Browse files Browse the repository at this point in the history
* fix(dsl): Use info instead of std::cout to log

* Empty-Commit

---------

Co-authored-by: Maxim Vezenov <mvezenov@gmail.com>
  • Loading branch information
phated and vezenovm authored Apr 5, 2023
1 parent 887ed39 commit 486d738
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cpp/src/barretenberg/dsl/acir_format/acir_format.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "acir_format.hpp"
#include "barretenberg/common/log.hpp"

using namespace proof_system::plonk::stdlib::types;

Expand All @@ -15,7 +16,7 @@ void read_witness(Composer& composer, std::vector<barretenberg::fr> witness)
void create_circuit(Composer& composer, const acir_format& constraint_system)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit: too many public inputs!");
}

for (size_t i = 1; i < constraint_system.varnum; ++i) {
Expand Down Expand Up @@ -91,7 +92,7 @@ Composer create_circuit(const acir_format& constraint_system,
std::unique_ptr<proof_system::ReferenceStringFactory>&& crs_factory)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit: too many public inputs!");
}

Composer composer(std::move(crs_factory));
Expand Down Expand Up @@ -172,7 +173,7 @@ Composer create_circuit_with_witness(const acir_format& constraint_system,
std::unique_ptr<ReferenceStringFactory>&& crs_factory)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit_with_witness: too many public inputs!");
}

Composer composer(std::move(crs_factory));
Expand Down Expand Up @@ -253,7 +254,7 @@ Composer create_circuit_with_witness(const acir_format& constraint_system,
Composer create_circuit_with_witness(const acir_format& constraint_system, std::vector<fr> witness)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit_with_witness: too many public inputs!");
}

auto composer = Composer();
Expand Down Expand Up @@ -334,7 +335,7 @@ Composer create_circuit_with_witness(const acir_format& constraint_system, std::
void create_circuit_with_witness(Composer& composer, const acir_format& constraint_system, std::vector<fr> witness)
{
if (constraint_system.public_inputs.size() > constraint_system.varnum) {
std::cout << "too many public inputs!" << std::endl;
info("create_circuit_with_witness: too many public inputs!");
}

for (size_t i = 1; i < constraint_system.varnum; ++i) {
Expand Down

0 comments on commit 486d738

Please sign in to comment.