3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-18 02:16:40 +00:00
This commit is contained in:
Nikolaj Bjorner 2024-02-19 15:32:53 +07:00
parent 991537836b
commit 4391c90960
9 changed files with 126 additions and 56 deletions

View file

@ -11,6 +11,7 @@ Author:
--*/
#include "ast/ast_pp.h"
#include "ast/sls/bv_sls_fixed.h"
#include "ast/sls/bv_sls_eval.h"
@ -137,12 +138,12 @@ namespace bv {
v.add_range(-b, a - b);
}
else if (!y) {
if (mod(b + 1, rational::power_of_two(bv.get_bv_size(x))) == 1)
if (mod(b + 1, rational::power_of_two(bv.get_bv_size(x))) == 0)
return;
auto& v = wval0(x);
if (!sign)
v.add_range(-a, b - a + 1);
else
else
v.add_range(b - a + 1, -a);
}
else if (x == y) {