Skip to content

Commit 52e3689

Browse files
committed
chore: use setWidth instead of zeroExtend
1 parent a7a7425 commit 52e3689

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Leanwuzla/Parser.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ where
315315
let i := i.serialize.toNat!
316316
let (α, x) ← parseTerm x
317317
let w := getBitVecWidth α
318-
return (mkBitVec (w + i), mkApp3 (.const ``BitVec.zeroExtend []) (mkNatLit w) (mkNatLit (w + i)) x)
318+
return (mkBitVec (w + i), mkApp3 (.const ``BitVec.setWidth []) (mkNatLit w) (mkNatLit (w + i)) x)
319319
if let sexp!{((_ sign_extend {i}) {x})} := e then
320320
let i := i.serialize.toNat!
321321
let (α, x) ← parseTerm x

0 commit comments

Comments
 (0)