3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-14 03:04:44 +00:00

Add facilities to get optimal assignments

This commit is contained in:
Anh-Dung Phan 2013-11-24 22:31:52 +01:00
parent 2ff51e9a60
commit cc3d65e544
6 changed files with 98 additions and 18 deletions

View file

@ -37,6 +37,7 @@ Revision History:
#include"arith_simplifier_plugin.h"
#include"arith_eq_solver.h"
#include"theory_opt.h"
#include"uint_set.h"
namespace smt {
@ -433,7 +434,7 @@ namespace smt {
bool m_eager_gcd; // true if gcd should be applied at every add_row
unsigned m_final_check_idx;
inf_eps_rational<inf_rational> m_objective_value;
u_map<uint_set> m_objective_vars;
// backtracking
svector<bound_trail> m_bound_trail;
@ -1008,6 +1009,7 @@ namespace smt {
private:
bool_var m_bound_watch;
inf_eps_rational<inf_rational> m_upper_bound;
bool get_theory_vars(expr * n, uint_set & vars);
public:
// -----------------------------------
//