Skip to content

Commit cd6382f

Browse files
fix alias bug
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent 9cde4f7 commit cd6382f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ast/sls/bv_sls_eval.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,7 @@ namespace bv {
10391039

10401040

10411041
// x*ta + y*tb = x
1042+
auto bw = a.bw;
10421043
b.get(y);
10431044
if (parity_b > 0)
10441045
b.shift_right(y, parity_b);
@@ -1047,7 +1048,7 @@ namespace bv {
10471048
a.bw = 8 * sizeof(digit_t) * a.nw;
10481049
// x = 2 ^ b.bw
10491050
a.set_zero(x);
1050-
a.set(x, b.bw, true);
1051+
a.set(x, bw, true);
10511052

10521053
a.set_one(ta);
10531054
a.set_zero(tb);
@@ -1072,8 +1073,8 @@ namespace bv {
10721073
a.set(tb, aux); // tb := aux
10731074
}
10741075

1075-
a.bw = b.bw;
1076-
a.nw = b.nw;
1076+
a.bw = bw;
1077+
a.nw = a.nw - 1;
10771078
// x*a + y*b = 1
10781079

10791080
#if Z3DEBUG

0 commit comments

Comments
 (0)