-
Notifications
You must be signed in to change notification settings - Fork 29
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
29 changed files
with
390 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
11 changes: 11 additions & 0 deletions
11
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/bool1.yml
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,11 @@ | ||
--- | ||
contains: | ||
- (assert (not (=> (or (and u_b u_b) u_b) (= (not u_b) (and true false))))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\predicates { b; } | ||
\problem { b&b | b -> (!b <-> true & false) } |
15 changes: 15 additions & 0 deletions
15
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/bool2.yml
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,15 @@ | ||
--- | ||
contains: | ||
- |- | ||
(declare-fun u_p () Bool) | ||
(declare-fun u_b () U) | ||
- (assert (not (=> (= u_p (= u_b (b2u true))) (= (not u_p) (= u_b (b2u false)))))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\predicates { p; } | ||
\functions { boolean b; } | ||
\problem { (p <-> b=TRUE) -> (!p <-> b=FALSE) } |
14 changes: 14 additions & 0 deletions
14
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/bool3.yml
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,14 @@ | ||
--- | ||
contains: | ||
- |- | ||
(assert (= (ite (< 2 1) (b2u true) (b2u false)) | ||
(ite (> 2 1) (b2u true) (b2u false)))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\predicates { p; } | ||
\functions { boolean b; } | ||
\problem { \if(2<1)\then(TRUE)\else(FALSE) != \if(2>1)\then(TRUE)\else(FALSE) } |
11 changes: 11 additions & 0 deletions
11
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/cast1.yml
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,11 @@ | ||
--- | ||
contains: | ||
- |- | ||
(assert (forall ((x U) (t T)) (! (subtype (typeof (cast x t)) t) :pattern ((cast x t))))) | ||
(assert (forall ((x U) (t T)) (! (=> (subtype (typeof x) t) (= (cast x t) x)) :pattern ((cast x t))))) | ||
- (assert (not (= (cast (i2u 42) sort_int) (i2u 42)))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: "\\problem { (int)42 = 42 }" |
12 changes: 12 additions & 0 deletions
12
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/cast2.yml
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,12 @@ | ||
--- | ||
contains: | ||
- (assert (not (= (cast (k_select u_heap u_o u_FF) sort_int) (cast (k_seqGet u_s | ||
(i2u 42)) sort_int)))) | ||
smtSettings: null | ||
expected: IRRELEVANT | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\functions { Field FF; Seq s; java.lang.Object o; } | ||
\problem { int::select(heap, o, FF) = int::seqGet(s, 42) } |
8 changes: 8 additions & 0 deletions
8
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/cast3.yml
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,8 @@ | ||
--- | ||
contains: | ||
- (assert (not (= (cast (i2u 42) sort_any) (i2u 42)))) | ||
smtSettings: null | ||
expected: VALID | ||
state: EXTENDED | ||
javaSrc: null | ||
keySrc: "\\problem { (any)42 = 42 }" |
16 changes: 16 additions & 0 deletions
16
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/ex1.yml
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,16 @@ | ||
--- | ||
contains: | ||
- |- | ||
; --- Sequent | ||
(assert (not (exists ((var_x Int)) | ||
(= (i2u (* 3 var_x)) (i2u 42))))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\programVariables { int p; } | ||
\problem { | ||
\exists int x; (3*x = 42) | ||
} |
16 changes: 16 additions & 0 deletions
16
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/ex2.yml
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,16 @@ | ||
--- | ||
contains: | ||
- |- | ||
; --- Sequent | ||
(assert (not (exists ((var_x Int)) | ||
(= (i2u var_x) (i2u 42))))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\programVariables { int p; } | ||
\problem { | ||
\exists int x; (x = 42) | ||
} |
11 changes: 11 additions & 0 deletions
11
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/float.eq.yml
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,11 @@ | ||
--- | ||
contains: | ||
- (assert (not (= (fp.isNaN (u2d u_doubleNaN)) (not (fp.eq (u2d u_doubleNaN) (u2d | ||
u_doubleNaN)))))) | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: |- | ||
\programVariables { double doubleNaN; } | ||
\problem { doubleIsNaN(doubleNaN) <-> !eqDouble(doubleNaN, doubleNaN) } |
9 changes: 9 additions & 0 deletions
9
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/float.sinDouble.yml
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,9 @@ | ||
--- | ||
contains: | ||
- "(assert (not (fp.lt (fp.neg (fp #b0 #b10000000000 #b0000000000000000000000000000000000000000000000000000))\ | ||
\ (sinDouble (fp #b0 #b10000000001 #b0000000000000000000000000000000000000000000000000000)))))" | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: "\\problem { -2d < sinDouble(4.0d) }" |
10 changes: 10 additions & 0 deletions
10
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/float.sqrt1.yml
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 @@ | ||
--- | ||
contains: | ||
- "(assert (not (= (d2u (fp #b0 #b10000000000 #b0000000000000000000000000000000000000000000000000000))\ | ||
\ (d2u (fp.sqrt RNE (fp #b0 #b10000000001 #b0000000000000000000000000000000000000000000000000000))))))" | ||
smtSettings: | ||
'[NewSMT]sqrtSMTTranslation': SMT | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: "\\problem { 2.0d = sqrtDouble(4.0d) }" |
10 changes: 10 additions & 0 deletions
10
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/float.sqrt2.yml
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 @@ | ||
--- | ||
contains: | ||
- "(assert (not (= (d2u (fp #b0 #b10000000000 #b0000000000000000000000000000000000000000000000000000))\ | ||
\ (d2u (sqrtDouble (fp #b0 #b10000000001 #b0000000000000000000000000000000000000000000000000000))))))" | ||
smtSettings: | ||
'[NewSMT]sqrtSMTTranslation': AXIOMS | ||
expected: FAIL | ||
state: null | ||
javaSrc: null | ||
keySrc: "\\problem { 2.0d = sqrtDouble(4.0d) }" |
9 changes: 9 additions & 0 deletions
9
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/float1.yml
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,9 @@ | ||
--- | ||
contains: | ||
- "(assert (not (= (f2u (fp #b0 #b01111111 #b00000000000000000000000)) (f2u (fp\ | ||
\ #b0 #b10000000 #b00000000000000000000000)))))" | ||
smtSettings: null | ||
expected: IRRELEVANT | ||
state: null | ||
javaSrc: null | ||
keySrc: "\\problem { 1.0f = 2.0f }" |
9 changes: 9 additions & 0 deletions
9
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/float2.yml
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,9 @@ | ||
--- | ||
contains: | ||
- "(assert (not (= (f2u (fp #b0 #b00000000 #b00000000000000000000000)) (f2u (fp.sub\ | ||
\ RNE (fp #b0 #b01111111 #b00000000000000000000000) (fp #b0 #b01111111 #b00000000000000000000000))))))" | ||
smtSettings: null | ||
expected: VALID | ||
state: null | ||
javaSrc: null | ||
keySrc: "\\problem { 0.0f = subFloat(1.0f, 1.0f) }" |
12 changes: 12 additions & 0 deletions
12
key.core/src/test/resources/de/uka/ilkd/key/smt/newsmt2/cases/heap1.yml
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,12 @@ | ||
--- | ||
contains: | ||
- (assert (not (=> (not (= u_FF |field_java.lang.Object::<created>|)) (= (k_select | ||
(k_store u_heap u_o u_FF (i2u 42)) u_o u_FF) (i2u 42))))) | ||
smtSettings: null | ||
expected: VALID | ||
state: EXTENDED | ||
javaSrc: null | ||
keySrc: |- | ||
\functions { Field FF; java.lang.Object o; } | ||
\problem { FF != java.lang.Object::<created> -> any::select(store(heap, o, FF, 42), o, FF) = 42 } |
Oops, something went wrong.