mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
merging master to unit_prop_on_monomials
This commit is contained in:
parent
a297a2b25c
commit
7de06c4350
19 changed files with 333 additions and 375 deletions
|
@ -61,7 +61,7 @@ namespace arith {
|
|||
|
||||
void solver::ensure_nla() {
|
||||
if (!m_nla) {
|
||||
m_nla = alloc(nla::solver, *m_solver.get(), s().params(), m.limit(), m_implied_bounds);
|
||||
m_nla = alloc(nla::solver, *m_solver.get(), s().params(), m.limit());
|
||||
for (auto const& _s : m_scopes) {
|
||||
(void)_s;
|
||||
m_nla->push();
|
||||
|
|
|
@ -253,7 +253,7 @@ namespace arith {
|
|||
first = false;
|
||||
reset_evidence();
|
||||
m_explanation.clear();
|
||||
be.explain_implied();
|
||||
lp().explain_implied_bound(be, m_bp);
|
||||
}
|
||||
CTRACE("arith", m_unassigned_bounds[v] == 0, tout << "missed bound\n";);
|
||||
updt_unassigned_bounds(v, -1);
|
||||
|
@ -1416,7 +1416,7 @@ namespace arith {
|
|||
}
|
||||
|
||||
void solver::assume_literals() {
|
||||
for (auto const& ineq : m_nla_literals) {
|
||||
for (auto const& ineq : m_nla->literals()) {
|
||||
auto lit = mk_ineq_literal(ineq);
|
||||
ctx.mark_relevant(lit);
|
||||
s().set_phase(lit);
|
||||
|
@ -1459,7 +1459,7 @@ namespace arith {
|
|||
return l_true;
|
||||
|
||||
m_a1 = nullptr; m_a2 = nullptr;
|
||||
lbool r = m_nla->check(m_nla_literals);
|
||||
lbool r = m_nla->check();
|
||||
switch (r) {
|
||||
case l_false:
|
||||
assume_literals();
|
||||
|
|
|
@ -249,7 +249,6 @@ namespace arith {
|
|||
|
||||
// lemmas
|
||||
lp::explanation m_explanation;
|
||||
vector<nla::ineq> m_nla_literals;
|
||||
literal_vector m_core, m_core2;
|
||||
vector<rational> m_coeffs;
|
||||
svector<enode_pair> m_eqs;
|
||||
|
|
|
@ -501,8 +501,9 @@ namespace euf {
|
|||
for (expr* arg : clause)
|
||||
std::cout << "\n " << mk_bounded_pp(arg, m);
|
||||
std::cout << ")\n";
|
||||
std::cout.flush();
|
||||
|
||||
if (is_rup(proof_hint))
|
||||
if (false && is_rup(proof_hint))
|
||||
diagnose_rup_failure(clause);
|
||||
|
||||
add_clause(clause);
|
||||
|
@ -527,9 +528,6 @@ namespace euf {
|
|||
for (expr* f : core)
|
||||
std::cout << mk_pp(f, m) << "\n";
|
||||
}
|
||||
SASSERT(false);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void smt_proof_checker::collect_statistics(statistics& st) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue