3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-12 02:04:43 +00:00

separate MaxSMT functionality to enable using this independently (and incrementally) of overall context

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-02-16 09:11:28 +01:00
parent ded635cd06
commit 911ffc370a
16 changed files with 72 additions and 40 deletions

View file

@ -26,7 +26,7 @@ namespace opt {
class sls : public maxsmt_solver_base {
public:
sls(context& c, weights_t& ws, expr_ref_vector const& soft):
sls(maxsat_context& c, weights_t& ws, expr_ref_vector const& soft):
maxsmt_solver_base(c, ws, soft) {
}
virtual ~sls() {}
@ -54,7 +54,7 @@ namespace opt {
};
maxsmt_solver_base* mk_sls(
context& c, weights_t& ws, expr_ref_vector const& soft) {
maxsat_context& c, weights_t& ws, expr_ref_vector const& soft) {
return alloc(sls, c, ws, soft);
}