Skip to content

Commit

Permalink
Merge pull request #2 from opencompl/sdiv
Browse files Browse the repository at this point in the history
chore: update lean-toolchain, consequently add sdiv support
  • Loading branch information
hargoniX authored Oct 26, 2024
2 parents a51af40 + aa04b90 commit ca72cbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Leanwuzla.lean
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ where
| .xor => pushBinaryOp "bvxor" lhs rhs
| .add => pushBinaryOp "bvadd" lhs rhs
| .mul => pushBinaryOp "bvmul" lhs rhs
| .sdiv =>
let zero := goBVExpr <| .const (w := w) 0
withParens do
push "ite "
pushBinaryOp "=" zero rhs
push " "
zero
push " "
pushBinaryOp "bvsdiv" lhs rhs
| .udiv =>
let zero := goBVExpr <| .const (w := w) 0
withParens do
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:nightly-2024-10-12
leanprover/lean4:nightly-2024-10-24

0 comments on commit ca72cbe

Please sign in to comment.