mirror of
https://github.com/Z3Prover/z3
synced 2025-10-04 15:03:57 +00:00
rebase with upstream
Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
parent
11d37d97a1
commit
c09c944922
5 changed files with 36 additions and 22 deletions
|
@ -1747,7 +1747,7 @@ public:
|
|||
return atom;
|
||||
}
|
||||
|
||||
bool make_sure_all_vars_have_bounds() {
|
||||
/* bool make_sure_all_vars_have_bounds() {
|
||||
if (!m_has_int) {
|
||||
return true;
|
||||
}
|
||||
|
@ -1767,7 +1767,7 @@ public:
|
|||
}
|
||||
}
|
||||
return all_bounded;
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* n = (div p q)
|
||||
|
@ -1928,6 +1928,9 @@ public:
|
|||
case lp::GE: fml = a.mk_ge(a.mk_add(ts.size(), ts.c_ptr()), a.mk_numeral(rhs, true)); break;
|
||||
case lp::GT: fml = a.mk_gt(a.mk_add(ts.size(), ts.c_ptr()), a.mk_numeral(rhs, true)); break;
|
||||
case lp::EQ: fml = m.mk_eq(a.mk_add(ts.size(), ts.c_ptr()), a.mk_numeral(rhs, true)); break;
|
||||
case lp::NE:
|
||||
SASSERT(false); // unexpected
|
||||
break;
|
||||
}
|
||||
return fml;
|
||||
}
|
||||
|
@ -1945,11 +1948,11 @@ public:
|
|||
out << "v" << m_solver->local2external(wi) << "\n";
|
||||
}
|
||||
}
|
||||
for (auto const& ev : ex.m_explanation) {
|
||||
for (auto const& ev : ex) {
|
||||
m_solver->print_constraint(ev.second, out << ev.first << ": ");
|
||||
}
|
||||
expr_ref_vector fmls(m);
|
||||
for (auto const& ev : ex.m_explanation) {
|
||||
for (auto const& ev : ex) {
|
||||
fmls.push_back(constraint2fml(ev.second));
|
||||
}
|
||||
expr_ref t(term2expr(term), m);
|
||||
|
@ -2040,7 +2043,7 @@ public:
|
|||
m_eqs.reset();
|
||||
m_core.reset();
|
||||
m_params.reset();
|
||||
for (auto const& ev : ex.m_explanation) {
|
||||
for (auto const& ev : ex) {
|
||||
if (!ev.first.is_zero()) {
|
||||
set_evidence(ev.second);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue