Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1665,8 +1665,8 @@ void UltraCircuitBuilder_<Arithmetization>::process_non_native_field_multiplicat
c.b[j] = this->real_variable_index[c.b[j]];
}
}
std::sort(cached_partial_non_native_field_multiplications.begin(),
cached_partial_non_native_field_multiplications.end());
std::stable_sort(cached_partial_non_native_field_multiplications.begin(),
cached_partial_non_native_field_multiplications.end());

auto last = std::unique(cached_partial_non_native_field_multiplications.begin(),
cached_partial_non_native_field_multiplications.end());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,13 @@ class UltraCircuitBuilder_ : public CircuitBuilderBase<typename Arithmetization:
if (a < other.a) {
return true;
}
if (a == other.a) {
if (b < other.b) {
return true;
}
if (other.a < a) {
return false;
}
if (b < other.b) {
return true;
}
return false;
return other.b < b;
}
};

Expand Down