mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix reference count bugs in overflow/underflow APIs for bit-vectors
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
89d8970d41
commit
d569027e36
5 changed files with 120 additions and 22 deletions
|
@ -33,6 +33,7 @@ void theory_arith_params::updt_params(params_ref const & _p) {
|
|||
m_arith_int_eq_branching = p.arith_int_eq_branch();
|
||||
m_arith_ignore_int = p.arith_ignore_int();
|
||||
m_arith_bound_prop = static_cast<bound_prop_mode>(p.arith_propagation_mode());
|
||||
m_arith_enum_const_mod = true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -408,7 +408,7 @@ namespace smt {
|
|||
mk_axiom(eqz, upper);
|
||||
rational k;
|
||||
if (m_params.m_arith_enum_const_mod && m_util.is_numeral(divisor, k) &&
|
||||
k.is_pos() && k < rational(512)) {
|
||||
k.is_pos() && k < rational(8)) {
|
||||
rational j(0);
|
||||
#if 1
|
||||
literal_buffer lits;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue