mirror of
https://github.com/Z3Prover/z3
synced 2025-05-16 20:24:45 +00:00
fixing bugs exposed by msf unit tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a737639790
commit
eacb48268c
3 changed files with 40 additions and 13 deletions
|
@ -230,8 +230,10 @@ namespace opt {
|
|||
solver.reset_objectives();
|
||||
m_vars.reset();
|
||||
|
||||
// First check_sat call to initialize theories
|
||||
solver::scoped_push _push(solver);
|
||||
{
|
||||
// force base level
|
||||
solver::scoped_push _push(solver);
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < m_objs.size(); ++i) {
|
||||
m_vars.push_back(solver.add_objective(m_objs[i].get()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue