3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-22 22:03:39 +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

@ -64,6 +64,7 @@ namespace opt {
bool was_sat = false;
expr_ref_vector asms(m);
vector<expr_ref_vector> cores;
obj_map<expr, rational>::iterator it = soft.begin(), end = soft.end();
for (; it != end; ++it) {
expr* c = assert_weighted(wth(), it->m_key, it->m_value);