Skip to content

Commit

Permalink
update constructors to fix acir
Browse files Browse the repository at this point in the history
  • Loading branch information
ledwards2225 committed Oct 31, 2023
1 parent 0944a7e commit b10de2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ template <typename FF_> class CircuitBuilderBase {
using EmbeddedCurve =
std::conditional_t<std::same_as<FF, barretenberg::g1::coordinate_field>, curve::BN254, curve::Grumpkin>;

// WORKTODO: hackily defining this here in the base for now. Get acir-bberg test failure otherwise
// std::array<std::vector<uint32_t, barretenberg::ContainerSlabAllocator<uint32_t>>, /* max num wires = */ 4> wires;

size_t num_gates = 0;

std::vector<uint32_t> public_inputs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ template <typename FF> class StandardCircuitBuilder_ : public CircuitBuilderBase
{
CircuitBuilderBase<FF>::operator=(std::move(other));
constant_variable_indices = other.constant_variable_indices;
wires = other.wires;
selectors = other.selectors;
return *this;
};
~StandardCircuitBuilder_() override = default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ template <typename FF> class UltraCircuitBuilder_ : public CircuitBuilderBase<FF
UltraCircuitBuilder_(UltraCircuitBuilder_&& other)
: CircuitBuilderBase<FF>(std::move(other))
{
wires = other.wires;
selectors = other.selectors;
constant_variable_indices = other.constant_variable_indices;

lookup_tables = other.lookup_tables;
Expand All @@ -616,6 +618,8 @@ template <typename FF> class UltraCircuitBuilder_ : public CircuitBuilderBase<FF
UltraCircuitBuilder_& operator=(UltraCircuitBuilder_&& other)
{
CircuitBuilderBase<FF>::operator=(std::move(other));
wires = other.wires;
selectors = other.selectors;
constant_variable_indices = other.constant_variable_indices;

lookup_tables = other.lookup_tables;
Expand Down

0 comments on commit b10de2e

Please sign in to comment.