We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cde4f7 commit cd6382fCopy full SHA for cd6382f
src/ast/sls/bv_sls_eval.cpp
@@ -1039,6 +1039,7 @@ namespace bv {
1039
1040
1041
// x*ta + y*tb = x
1042
+ auto bw = a.bw;
1043
b.get(y);
1044
if (parity_b > 0)
1045
b.shift_right(y, parity_b);
@@ -1047,7 +1048,7 @@ namespace bv {
1047
1048
a.bw = 8 * sizeof(digit_t) * a.nw;
1049
// x = 2 ^ b.bw
1050
a.set_zero(x);
- a.set(x, b.bw, true);
1051
+ a.set(x, bw, true);
1052
1053
a.set_one(ta);
1054
a.set_zero(tb);
@@ -1072,8 +1073,8 @@ namespace bv {
1072
1073
a.set(tb, aux); // tb := aux
1074
}
1075
- a.bw = b.bw;
1076
- a.nw = b.nw;
+ a.bw = bw;
1077
+ a.nw = a.nw - 1;
1078
// x*a + y*b = 1
1079
1080
#if Z3DEBUG
0 commit comments