3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

fix remove lar_solver::add_constraint

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-08-01 17:28:49 -07:00
parent 7cd90537c3
commit 3c5b1086a1
8 changed files with 164 additions and 122 deletions

View file

@ -204,9 +204,22 @@ interv horner::interval_of_mul(const nex& e) {
return a;
}
bool horner::find_term_expr(rational& a, const lp::lar_term * &t, rational& b) const {
return false;
}
interv horner::interval_of_sum(const nex& e) {
TRACE("nla_horner_details", tout << "e=" << e << "\n";);
SASSERT(e.is_sum());
if (e.sum_is_linear()) {
const lp::lar_term * t;
rational a,b;
if (find_term_expr(a, t, b)) {
//todo create interval from a*t + b
SASSERT(false);
}
}
auto & es = e.children();
interv a = interval_of_expr(es[0]);
if (m_intervals.is_inf(a)) {