3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

with no last model

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-01-06 13:02:13 -08:00
parent dadda86bdc
commit d14f00d61a

View file

@ -260,7 +260,10 @@ namespace opt {
m_models.set(i, m_last_model.get());
if (val > m_objective_values[i])
m_objective_values[i] = val;
m_objective_values[i] = val;
if (!m_last_model)
return true;
//
// retrieve value of objective from current model and update