-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/- | ||
Copyright (c) 2024 Lean FRO, LLC. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Henrik Böving | ||
-/ | ||
import Test.Bitwuzla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/- | ||
Copyright (c) 2024 Lean FRO, LLC. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Henrik Böving | ||
-/ | ||
import Leanwuzla | ||
|
||
variable (a b c : Bool) | ||
variable (x y z : BitVec 32) | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x + y = y + x := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x - 1 ≠ x := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : (-x) + y = y - x:= by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x * y = y * x := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x / y ≤ x := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example (hx : BitVec.slt 0 x) (hy : BitVec.slt 0 y) : x.msb = y.msb := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : (x.zeroExtend 64).msb = false := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example (hx : BitVec.slt 0 x) : (x.signExtend 64).msb = false := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x &&& y = y &&& x := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x ||| y = y ||| x := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : ~~~(x ||| y) = (~~~y &&& ~~~x) := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x <<< 32 = 0 := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : x >>> x = 0 := by | ||
bv_bitwuzla | ||
|
||
/-- error: Bitwuzla thinks it's right but can't trust the wuzla! -/ | ||
#guard_msgs in | ||
example : (x ++ x).extractLsb' 0 32 = x := by | ||
bv_bitwuzla |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name = "leanwuzla" | ||
version = "0.1.0" | ||
defaultTargets = ["Leanwuzla"] | ||
testRunner = "Test" | ||
|
||
[[lean_lib]] | ||
name = "Test" | ||
|
||
[[lean_lib]] | ||
name = "Leanwuzla" |