mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 12:53:38 +00:00
add code to enable unit propagation of bounds
set UNIT_PROPAGATE_BOUNDS 1 to use the unit propagation version. It applies unit propagation eagerly (does not depend on checking LIA consistency before final check) and avoid creating new literals in most cases
This commit is contained in:
parent
1bdf66b918
commit
4a870966ad
6 changed files with 79 additions and 56 deletions
|
@ -175,6 +175,8 @@ public:
|
|||
void set_upper_is_inf(interval& a, bool inf) const { m_config.set_upper_is_inf(a, inf); }
|
||||
void set_lower_dep(interval& a, u_dependency* d) const { m_config.set_lower_dep(a, d); }
|
||||
void set_upper_dep(interval& a, u_dependency* d) const { m_config.set_upper_dep(a, d); }
|
||||
u_dependency* get_lower_dep(interval const& a) const { return a.m_lower_dep; }
|
||||
u_dependency* get_upper_dep(interval const& a) const { return a.m_upper_dep; }
|
||||
void reset(interval& a) const { set_lower_is_inf(a, true); set_upper_is_inf(a, true); }
|
||||
void set_value(interval& a, rational const& n) const {
|
||||
set_lower(a, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue