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

more updates

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-10-19 17:43:59 -07:00
parent 3996f58a8e
commit 3dd72f8f16
4 changed files with 54 additions and 42 deletions

View file

@ -32,13 +32,12 @@ namespace opt {
class context {
ast_manager& m;
expr_ref_vector m_hard_constraints;
expr_ref_vector m_hard_constraints;
expr_ref_vector m_soft_constraints;
vector<rational> m_weights;
expr_ref_vector m_objectives;
svector<bool> m_is_max;
ref<solver> m_solver;
app_ref_vector m_objectives;
svector<bool> m_is_max;
ref<solver> m_solver;
public:
context(ast_manager& m):
@ -53,7 +52,7 @@ namespace opt {
m_weights.push_back(w);
}
void add_objective(expr* t, bool is_max) {
void add_objective(app* t, bool is_max) {
m_objectives.push_back(t);
m_is_max.push_back(is_max);
}