mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
Nikolaj's changes related to dependencies on infinite interval bounds
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
1915812f84
commit
ccc9a77a1f
3 changed files with 10 additions and 34 deletions
|
@ -73,11 +73,10 @@ class intervals : common {
|
|||
ci_dependency * m_upper_dep; // justification for the upper bound
|
||||
};
|
||||
|
||||
|
||||
void add_deps(interval const& a, interval const& b,
|
||||
interval_deps_combine_rule const& deps, interval& i) const {
|
||||
i.m_lower_dep = mk_dependency(a, b, deps.m_lower_combine);
|
||||
i.m_upper_dep = mk_dependency(a, b, deps.m_upper_combine);
|
||||
i.m_lower_dep = lower_is_inf(i) ? nullptr : mk_dependency(a, b, deps.m_lower_combine);
|
||||
i.m_upper_dep = upper_is_inf(i) ? nullptr : mk_dependency(a, b, deps.m_upper_combine);
|
||||
}
|
||||
|
||||
|
||||
|
@ -159,10 +158,7 @@ public:
|
|||
m_dep_manager(m_val_manager, m_alloc),
|
||||
m_config(m_num_manager, m_dep_manager),
|
||||
m_imanager(lim, im_config(m_num_manager, m_dep_manager))
|
||||
{
|
||||
test_inf();
|
||||
}
|
||||
void test_inf();
|
||||
{}
|
||||
interval mul(const svector<lpvar>&) const;
|
||||
void get_explanation_of_upper_bound_for_monomial(lpvar j, svector<lp::constraint_index>& expl) const;
|
||||
void get_explanation_of_lower_bound_for_monomial(lpvar j, svector<lp::constraint_index>& expl) const;
|
||||
|
@ -180,8 +176,8 @@ public:
|
|||
void add(const interval& a, const interval& b, interval& c, interval_deps_combine_rule& deps) { m_imanager.add(a, b, c, deps); }
|
||||
void set(interval& a, const interval& b) {
|
||||
m_imanager.set(a, b);
|
||||
a.m_lower_dep = lower_is_inf(a)? nullptr : b.m_lower_dep;
|
||||
a.m_upper_dep = upper_is_inf(a)?nullptr : b.m_upper_dep;
|
||||
a.m_lower_dep = b.m_lower_dep;
|
||||
a.m_upper_dep = b.m_upper_dep;
|
||||
}
|
||||
void mul(const interval& a, const interval& b, interval& c, interval_deps_combine_rule& deps) { m_imanager.mul(a, b, c, deps); }
|
||||
void combine_deps(interval const& a, interval const& b, interval_deps_combine_rule const& deps, interval& i) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue