3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

remove a few more copy constructors, though still not enough to enable the assertion in vector

I give up for now; there are too many copies left for little return..
This commit is contained in:
Nuno Lopes 2020-06-03 20:30:21 +01:00
parent e2b2b7f82e
commit e844aef896
17 changed files with 44 additions and 95 deletions

View file

@ -64,8 +64,6 @@ namespace opt {
void set_value(lbool t) { value = t; }
bool is_true() const { return value == l_true; }
soft(expr_ref const& s, rational const& w, bool t): s(s), weight(w), value(t?l_true:l_undef) {}
soft(soft const& other):s(other.s), weight(other.weight), value(other.value) {}
soft& operator=(soft const& other) { s = other.s; weight = other.weight; value = other.value; return *this; }
};
ast_manager& m;
maxsat_context& m_c;

View file

@ -77,16 +77,6 @@ namespace smt {
m_value(m),
m_eq(true)
{}
clause(clause const& cls):
m_lits(cls.m_lits),
m_weights(cls.m_weights.m()),
m_k(cls.m_k),
m_value(cls.m_value),
m_eq(cls.m_eq) {
for (unsigned i = 0; i < cls.m_weights.size(); ++i) {
m_weights.push_back(cls.m_weights[i]);
}
}
};
struct stats {