mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
remove unneeded constructors (last round)
This commit is contained in:
parent
44ec259c4c
commit
bb26f219fe
37 changed files with 65 additions and 276 deletions
|
@ -38,15 +38,6 @@ public:
|
|||
lbool is_sat;
|
||||
expr_ref optimum;
|
||||
optimization_result(ast_manager & m) : is_sat(l_undef), optimum(m) {}
|
||||
optimization_result& operator=(optimization_result const& other) {
|
||||
is_sat = other.is_sat;
|
||||
optimum = other.optimum;
|
||||
return *this;
|
||||
}
|
||||
optimization_result(optimization_result const& other):
|
||||
is_sat(other.is_sat),
|
||||
optimum(other.optimum) {
|
||||
}
|
||||
};
|
||||
|
||||
optimization_result optimize(expr_ref const & objective, model_ref initial_model = model_ref(), bool maximize=true);
|
||||
|
|
|
@ -37,27 +37,10 @@ class sls_tracker {
|
|||
unsigned m_random_bits;
|
||||
unsigned m_random_bits_cnt;
|
||||
mpz m_zero, m_one, m_two;
|
||||
|
||||
struct value_score {
|
||||
|
||||
struct value_score {
|
||||
value_score() : m(nullptr), value(unsynch_mpz_manager::mk_z(0)), score(0.0), score_prune(0.0), has_pos_occ(0), has_neg_occ(0), distance(0), touched(1) {};
|
||||
value_score(value_score && other) :
|
||||
m(other.m),
|
||||
value(std::move(other.value)),
|
||||
score(other.score),
|
||||
score_prune(other.score_prune),
|
||||
has_pos_occ(other.has_pos_occ),
|
||||
has_neg_occ(other.has_neg_occ),
|
||||
distance(other.distance),
|
||||
touched(other.touched) {}
|
||||
~value_score() { if (m) m->del(value); }
|
||||
void operator=(value_score && other) {
|
||||
this->~value_score();
|
||||
new (this) value_score(std::move(other));
|
||||
}
|
||||
value_score& operator=(value_score& other) {
|
||||
UNREACHABLE();
|
||||
return *this;
|
||||
}
|
||||
unsynch_mpz_manager * m;
|
||||
mpz value;
|
||||
double score;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue