3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

bvsls_opt_engine fixes

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2014-04-14 17:48:09 +01:00
parent 71af72eed4
commit 64106af5ec
4 changed files with 82 additions and 54 deletions

View file

@ -339,8 +339,11 @@ namespace opt {
lbool is_sat = s.check_sat_core(0, 0);
if (is_sat == l_true) {
updt_model(s);
params_ref p;
p.set_uint("restarts", 20);
m_bvsls.updt_params(p);
// TBD: can we set an initial model on m_bvsls?
// CMW: Yes, see next line.
// CMW: Yes, see next line.
bvsls_opt_engine::optimization_result res = m_bvsls.optimize(objective, m_model, true);
switch (res.is_sat) {
case l_true: {