mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 13:53:39 +00:00
rebase with z3prover
Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
parent
3cf0eae5e1
commit
a82316a172
2 changed files with 10 additions and 18 deletions
|
@ -355,6 +355,7 @@ class theory_lra::imp {
|
||||||
scoped_ptr<lp::lar_solver> m_solver;
|
scoped_ptr<lp::lar_solver> m_solver;
|
||||||
resource_limit m_resource_limit;
|
resource_limit m_resource_limit;
|
||||||
lp_bounds m_new_bounds;
|
lp_bounds m_new_bounds;
|
||||||
|
switcher m_switcher;
|
||||||
|
|
||||||
context& ctx() const { return th.get_context(); }
|
context& ctx() const { return th.get_context(); }
|
||||||
theory_id get_id() const { return th.get_id(); }
|
theory_id get_id() const { return th.get_id(); }
|
||||||
|
@ -423,9 +424,8 @@ class theory_lra::imp {
|
||||||
return add_const(1, is_int ? m_one_var : m_rone_var, is_int);
|
return add_const(1, is_int ? m_one_var : m_rone_var, is_int);
|
||||||
}
|
}
|
||||||
|
|
||||||
lp::var_index get_zero() {
|
lp::var_index get_zero(bool is_int) {
|
||||||
add_const(0, m_zero_var);
|
return add_const(0, is_int ? m_zero_var : m_rzero_var, is_int);
|
||||||
return m_zero_var;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ensure_nla() {
|
void ensure_nla() {
|
||||||
|
@ -927,7 +927,8 @@ public:
|
||||||
m_use_nra_model(false),
|
m_use_nra_model(false),
|
||||||
m_model_eqs(DEFAULT_HASHTABLE_INITIAL_CAPACITY, var_value_hash(*this), var_value_eq(*this)),
|
m_model_eqs(DEFAULT_HASHTABLE_INITIAL_CAPACITY, var_value_hash(*this), var_value_eq(*this)),
|
||||||
m_solver(nullptr),
|
m_solver(nullptr),
|
||||||
m_resource_limit(*this) {
|
m_resource_limit(*this),
|
||||||
|
m_switcher(*this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
~imp() {
|
~imp() {
|
||||||
|
@ -1481,6 +1482,7 @@ public:
|
||||||
return m_variable_values[vi];
|
return m_variable_values[vi];
|
||||||
|
|
||||||
if (!m_solver->is_term(vi)) {
|
if (!m_solver->is_term(vi)) {
|
||||||
|
TRACE("arith", tout << "not a term v" << v << "\n";);
|
||||||
return rational::zero();
|
return rational::zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1279,16 +1279,6 @@ lbool solver::check(lp::explanation & ex, lemma& l) {
|
||||||
return m_imp->check(ex, l);
|
return m_imp->check(ex, l);
|
||||||
}
|
}
|
||||||
|
|
||||||
void solver::add_monomial(lpvar v, unsigned sz, lpvar const* vs) {
|
|
||||||
m_imp->add(v, sz, vs);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool solver::need_check() { return true; }
|
|
||||||
|
|
||||||
lbool solver::check(lp::explanation & ex, lemma& l) {
|
|
||||||
return m_imp->check(ex, l);
|
|
||||||
}
|
|
||||||
|
|
||||||
void solver::push(){
|
void solver::push(){
|
||||||
m_imp->push();
|
m_imp->push();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue