3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 03:15:50 +00:00

Another fix for #847. Reset wmax theory solver state between lex calls, otherwise it uses stale constraints

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-01-17 14:19:24 -08:00
parent 6d34899c46
commit 0aa912371b
5 changed files with 14 additions and 11 deletions

View file

@ -327,12 +327,7 @@ namespace opt {
SASSERT(idx < get_num_assertions());
return m_context.get_formulas()[idx];
}
std::ostream& opt_solver::display(std::ostream & out) const {
m_context.display(out);
return out;
}
smt::theory_var opt_solver::add_objective(app* term) {
smt::theory_var v = get_optimizer().add_objective(term);
m_objective_vars.push_back(v);