Skip to content

Commit

Permalink
fix alias bug
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Mar 5, 2024
1 parent 9cde4f7 commit cd6382f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ast/sls/bv_sls_eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,7 @@ namespace bv {


// x*ta + y*tb = x
auto bw = a.bw;
b.get(y);
if (parity_b > 0)
b.shift_right(y, parity_b);
Expand All @@ -1047,7 +1048,7 @@ namespace bv {
a.bw = 8 * sizeof(digit_t) * a.nw;
// x = 2 ^ b.bw
a.set_zero(x);
a.set(x, b.bw, true);
a.set(x, bw, true);

a.set_one(ta);
a.set_zero(tb);
Expand All @@ -1072,8 +1073,8 @@ namespace bv {
a.set(tb, aux); // tb := aux
}

a.bw = b.bw;
a.nw = b.nw;
a.bw = bw;
a.nw = a.nw - 1;
// x*a + y*b = 1

#if Z3DEBUG
Expand Down

0 comments on commit cd6382f

Please sign in to comment.