3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-25 12:35:59 +00:00

Use const& to reduce copies.

This commit is contained in:
Bruce Mitchener 2019-06-02 09:58:32 +07:00
parent 62de187d02
commit a12de12515
5 changed files with 6 additions and 6 deletions

View file

@ -590,7 +590,7 @@ bool bv_bounds::is_sat() {
}
struct interval_comp_t {
bool operator() (bv_bounds::interval i, bv_bounds::interval j) {
bool operator() (bv_bounds::interval const& i, bv_bounds::interval const& j) {
return (i.first < j.first);
}
} interval_comp;

View file

@ -370,7 +370,7 @@ struct pb2bv_rewriter::imp {
rational m_min_cost;
vector<rational> m_base;
void create_basis(vector<rational> const& seq, rational carry_in, rational cost) {
void create_basis(vector<rational> const& seq, rational const& carry_in, rational const& cost) {
if (cost >= m_min_cost) {
return;
}