mirror of
https://github.com/Z3Prover/z3
synced 2025-11-05 22:06:03 +00:00
fixes
This commit is contained in:
parent
a75daf8681
commit
1e5255508c
2 changed files with 13 additions and 9 deletions
|
|
@ -263,7 +263,7 @@ namespace dd {
|
|||
inline PDD lo(PDD p) const { return m_nodes[p].m_lo; }
|
||||
inline PDD hi(PDD p) const { return m_nodes[p].m_hi; }
|
||||
inline rational const& val(PDD p) const { SASSERT(is_val(p)); return m_values[lo(p)]; }
|
||||
inline rational const& val_signed(PDD p) const { SASSERT(m_semantics == mod2_e || m_semantics == mod2N_e); rational const& a = val(p); return a.get_bit(power_of_2() - 1) ? a - two_to_N() : a; }
|
||||
inline rational get_signed_val(PDD p) const { SASSERT(m_semantics == mod2_e || m_semantics == mod2N_e); rational const& a = val(p); return a.get_bit(power_of_2() - 1) ? a - two_to_N() : a; }
|
||||
inline void inc_ref(PDD p) { if (m_nodes[p].m_refcount != max_rc) m_nodes[p].m_refcount++; SASSERT(!m_free_nodes.contains(p)); }
|
||||
inline void dec_ref(PDD p) { if (m_nodes[p].m_refcount != max_rc) m_nodes[p].m_refcount--; SASSERT(!m_free_nodes.contains(p)); }
|
||||
inline PDD level2pdd(unsigned l) const { return m_var2pdd[m_level2var[l]]; }
|
||||
|
|
@ -423,7 +423,7 @@ namespace dd {
|
|||
unsigned index() const { return root; }
|
||||
unsigned var() const { return m->var(root); }
|
||||
rational const& val() const { return m->val(root); }
|
||||
rational const& val_signed() const { return m->val_signed(root); }
|
||||
rational get_signed_val() const { return m->get_signed_val(root); }
|
||||
rational const& leading_coefficient() const;
|
||||
rational const& offset() const { return m->offset(root); }
|
||||
bool is_val() const { return m->is_val(root); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue