mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
fix compiler warnings/errors reported by Robert White
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a5ec46b167
commit
27fa7077a6
2 changed files with 13 additions and 4 deletions
|
@ -39,6 +39,15 @@ 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);
|
||||
|
@ -70,4 +79,4 @@ protected:
|
|||
bool randomize_wrt_hard();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue