Skip to content

Commit 8cf7053

Browse files
committed
chore: counter examples changed
1 parent e70b8c1 commit 8cf7053

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Emscripten")
5959
ExternalProject_add(cadical
6060
PREFIX cadical
6161
GIT_REPOSITORY https://github.com/arminbiere/cadical
62-
GIT_TAG rel-2.2.0-rc2
62+
GIT_TAG rel-2.2.0
6363
CONFIGURE_COMMAND ""
6464
BUILD_COMMAND $(MAKE) -f ${CMAKE_SOURCE_DIR}/src/cadical.mk
6565
CMAKE_EXECUTABLE_SUFFIX=${CMAKE_EXECUTABLE_SUFFIX}

tests/lean/run/bv_counterexample.lean

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ example (x y : BitVec 32) (a : Bool) (h : x < y) : (x = y) ↔ a := by
7676
error: The prover found a potentially spurious counterexample:
7777
- The following potentially relevant hypotheses could not be used: [h]
7878
Consider the following assignment:
79-
x = 4294967295#32
80-
y = 2147483647#32
79+
x = 0#32
80+
y = 2147483648#32
8181
-/
8282
#guard_msgs in
8383
example (x y : BitVec 32) (h : x.toNat = y.toNat) : x = y := by
@@ -89,8 +89,8 @@ def zeros (w : Nat) : BitVec w := 0#w
8989
error: The prover found a potentially spurious counterexample:
9090
- It abstracted the following unsupported expressions as opaque variables: [zeros 32]
9191
Consider the following assignment:
92-
x = 4294967295#32
93-
zeros 32 = 4294967295#32
92+
x = 2147483648#32
93+
zeros 32 = 2147483648#32
9494
-/
9595
#guard_msgs in
9696
example (x : BitVec 32) (h : x = zeros 32) : x = 0 := by
@@ -101,17 +101,17 @@ error: The prover found a potentially spurious counterexample:
101101
- It abstracted the following unsupported expressions as opaque variables: [zeros 32]
102102
- The following potentially relevant hypotheses could not be used: [h1]
103103
Consider the following assignment:
104-
x = 4294967295#32
105-
zeros 32 = 4294967295#32
106-
y = 4294967295#32
104+
x = 0#32
105+
zeros 32 = 0#32
106+
y = 2147483648#32
107107
-/
108108
#guard_msgs in
109109
example (x y : BitVec 32) (h1 : x.toNat = y.toNat) (h2 : x = zeros 32) : y = 0 := by
110110
bv_decide
111111

112112
/--
113113
error: The prover found a counterexample, consider the following assignment:
114-
x = 3#2
114+
x = 0#2
115115
-/
116116
#guard_msgs in
117117
example (x : BitVec 2) : (bif x.ult 1#2 then 1#2 else 2#2) == 3#2 := by

tests/lean/run/bv_sint.lean

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ example (a b c : Int8) (h1 : a < b) (h2 : b < c) : a < c := by
66

77
/--
88
error: The prover found a counterexample, consider the following assignment:
9-
a = -1
10-
b = -1
9+
a = 0
10+
b = 0
1111
-/
1212
#guard_msgs in
1313
example (a b : Int8) : a + b > a := by
@@ -21,8 +21,8 @@ example (a b c : Int16) (h1 : a < b) (h2 : b < c) : a < c := by
2121

2222
/--
2323
error: The prover found a counterexample, consider the following assignment:
24-
a = -1
25-
b = -1
24+
a = 0
25+
b = 0
2626
-/
2727
#guard_msgs in
2828
example (a b : Int16) : a + b > a := by
@@ -36,8 +36,8 @@ example (a b c : Int32) (h1 : a < b) (h2 : b < c) : a < c := by
3636

3737
/--
3838
error: The prover found a counterexample, consider the following assignment:
39-
a = -1
40-
b = -1
39+
a = 0
40+
b = 0
4141
-/
4242
#guard_msgs in
4343
example (a b : Int32) : a + b > a := by
@@ -51,8 +51,8 @@ example (a b c : Int64) (h1 : a < b) (h2 : b < c) : a < c := by
5151

5252
/--
5353
error: The prover found a counterexample, consider the following assignment:
54-
a = -1
55-
b = -1
54+
a = 0
55+
b = 0
5656
-/
5757
#guard_msgs in
5858
example (a b : Int64) : a + b > a := by

tests/lean/run/bv_uint.lean

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ example (a b c : UInt8) (h1 : a < b) (h2 : b < c) : a < c := by
66

77
/--
88
error: The prover found a counterexample, consider the following assignment:
9-
a = 255
10-
b = 255
9+
a = 0
10+
b = 0
1111
-/
1212
#guard_msgs in
1313
example (a b : UInt8) : a + b > a := by
@@ -21,8 +21,8 @@ example (a b c : UInt16) (h1 : a < b) (h2 : b < c) : a < c := by
2121

2222
/--
2323
error: The prover found a counterexample, consider the following assignment:
24-
a = 65535
25-
b = 65535
24+
a = 0
25+
b = 0
2626
-/
2727
#guard_msgs in
2828
example (a b : UInt16) : a + b > a := by
@@ -36,8 +36,8 @@ example (a b c : UInt32) (h1 : a < b) (h2 : b < c) : a < c := by
3636

3737
/--
3838
error: The prover found a counterexample, consider the following assignment:
39-
a = 4294967295
40-
b = 4294967295
39+
a = 0
40+
b = 0
4141
-/
4242
#guard_msgs in
4343
example (a b : UInt32) : a + b > a := by
@@ -51,8 +51,8 @@ example (a b c : UInt64) (h1 : a < b) (h2 : b < c) : a < c := by
5151

5252
/--
5353
error: The prover found a counterexample, consider the following assignment:
54-
a = 18446744073709551615
55-
b = 18446744073709551615
54+
a = 0
55+
b = 0
5656
-/
5757
#guard_msgs in
5858
example (a b : UInt64) : a + b > a := by

tests/lean/run/bv_unused.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ open BitVec
44

55
/--
66
error: The prover found a counterexample, consider the following assignment:
7-
y = 18446744073709551615#64
7+
y = 18446744071562067968#64
88
-/
99
#guard_msgs in
1010
example {y : BitVec 64} : zeroExtend 32 y = 0 := by

0 commit comments

Comments
 (0)