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:
parent
6d34899c46
commit
0aa912371b
5 changed files with 14 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue