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

@ -27,7 +27,9 @@ class bvsls_opt_engine : public sls_engine {
sls_evaluator m_obj_evaluator;
model_ref m_best_model;
mpz m_best_model_score;
unsigned m_obj_bv_sz;
expr * m_obj_e;
public:
bvsls_opt_engine(ast_manager & m, params_ref const & p);
~bvsls_opt_engine();
@ -44,8 +46,8 @@ public:
void get_model(model_ref & result) { result = m_best_model; }
protected:
expr_ref maximize(expr_ref const & objective);
expr_ref minimize(expr_ref const & objective);
void setup_opt_tracker(expr_ref const & objective, bool _max);
expr_ref maximize();
bool what_if(func_decl * fd, const unsigned & fd_inx, const mpz & temp,
mpz & best_score, unsigned & best_const, mpz & best_value);