3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-04 13:29:11 +00:00

fixes to bv-sls

This commit is contained in:
Nikolaj Bjorner 2024-04-07 14:24:13 -07:00
parent d7c0e17f96
commit bab7ca2b70
8 changed files with 279 additions and 286 deletions

View file

@ -113,8 +113,6 @@ namespace bv {
unsigned m_signed_prefix = 0;
unsigned mask;
bool round_up(bvect& dst) const;
bool round_down(bvect& dst) const;
void repair_sign_bits(bvect& dst) const;
@ -141,9 +139,11 @@ namespace bv {
SASSERT(in_range(m_bits));
if (fixed.get(i) && get_bit(i) != b)
return false;
m_bits.set(i, b);
eval.set(i, b);
if (in_range(m_bits))
return true;
m_bits.set(i, !b);
eval.set(i, !b);
return false;
}
@ -155,6 +155,9 @@ namespace bv {
rational lo() const { return m_lo.get_value(nw); }
rational hi() const { return m_hi.get_value(nw); }
unsigned diff_index(bvect const& a) const;
void inf_feasible(bvect& a) const;
void sup_feasible(bvect& a) const;
void get(bvect& dst) const;
void add_range(rational lo, rational hi);