mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
separate calculations on intervals on one with dependencies and one without
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
ee48ed733a
commit
b075d3923e
4 changed files with 356 additions and 54 deletions
|
@ -42,15 +42,22 @@ public:
|
|||
template <typename T> bool row_is_interesting(const T&) const;
|
||||
template <typename T>
|
||||
void create_sum_from_row(const T&, cross_nested&);
|
||||
intervals::interval interval_of_expr_with_deps(const nex* e);
|
||||
intervals::interval interval_of_expr(const nex* e);
|
||||
|
||||
nex* nexvar(lpvar j, cross_nested& cn) const;
|
||||
nex* nexvar(const rational& coeff, lpvar j, cross_nested& cn) const;
|
||||
intervals::interval interval_of_sum(const nex_sum*);
|
||||
intervals::interval interval_of_sum_no_terms(const nex_sum*);
|
||||
intervals::interval interval_of_sum_no_term(const nex_sum*);
|
||||
intervals::interval interval_of_mul(const nex_mul*);
|
||||
void set_interval_for_scalar(intervals::interval&, const rational&);
|
||||
void set_var_interval(lpvar j, intervals::interval&) const;
|
||||
bool interval_from_term(const nex* e, interv&) const;
|
||||
|
||||
|
||||
nex* nexvar(lpvar j, cross_nested& cn) const;
|
||||
nex* nexvar(const rational& coeff, lpvar j, cross_nested& cn) const;
|
||||
intervals::interval interval_of_sum_with_deps(const nex_sum*);
|
||||
intervals::interval interval_of_sum_no_term_with_deps(const nex_sum*);
|
||||
intervals::interval interval_of_mul_with_deps(const nex_mul*);
|
||||
void set_var_interval_with_deps(lpvar j, intervals::interval&) const;
|
||||
bool lemmas_on_expr(cross_nested&);
|
||||
|
||||
template <typename T> // T has an iterator of (coeff(), var())
|
||||
|
@ -59,12 +66,12 @@ public:
|
|||
static lp::lar_term expression_to_normalized_term(const nex_sum*, rational& a, rational & b);
|
||||
static void add_linear_to_vector(const nex*, vector<std::pair<rational, lpvar>> &);
|
||||
static void add_mul_to_vector(const nex_mul*, vector<std::pair<rational, lpvar>> &);
|
||||
bool interval_from_term(const nex* e, interv&) const;
|
||||
bool interval_from_term_with_deps(const nex* e, interv&) const;
|
||||
const nex* get_zero_interval_child(const nex_mul*) const;
|
||||
const nex* get_inf_interval_child(const nex_sum*) const;
|
||||
bool has_zero_interval(const nex* ) const;
|
||||
bool has_inf_interval(const nex* ) const;
|
||||
|
||||
bool has_inf_interval(const nex* ) const;
|
||||
bool mul_has_inf_interval(const nex_mul* ) const;
|
||||
bool check_cross_nested_expr(const nex*);
|
||||
}; // end of horner
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue