3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-23 22:33:40 +00:00

add opt_solver layer

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-10-17 17:33:43 -07:00
parent f4e2b23238
commit cfedbe3dfd
10 changed files with 248 additions and 18 deletions

View file

@ -19,6 +19,7 @@ Notes:
#define _OPT_CONTEXT_H_
#include "ast.h"
#include "solver.h"
namespace opt {
@ -30,6 +31,7 @@ namespace opt {
expr_ref_vector m_objectives;
svector<bool> m_is_max;
ref<::solver> m_solver;
public:
context(ast_manager& m):
@ -53,6 +55,10 @@ namespace opt {
m_hard_constraints.push_back(f);
}
void set_solver(::solver* s) {
m_solver = s;
}
void optimize();
private:
@ -63,4 +69,4 @@ namespace opt {
}
#endif
#endif