Skip to content

Commit 77b5f24

Browse files
Update tests
1 parent 56335dc commit 77b5f24

File tree

111 files changed

+29901
-21277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+29901
-21277
lines changed

tests/creusot-contracts/creusot-contracts.coma

Lines changed: 25524 additions & 18965 deletions
Large diffs are not rendered by default.

tests/creusot-contracts/creusot-contracts/why3session.xml

Lines changed: 541 additions & 227 deletions
Large diffs are not rendered by default.
2.22 KB
Binary file not shown.

tests/should_fail/bug/01_resolve_unsoundness.coma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module M_01_resolve_unsoundness__make_vec_of_size [#"01_resolve_unsoundness.rs"
2020
let%span sord'9 = "../../../creusot-contracts/src/logic/ord.rs" 167 40 167 73
2121
let%span sord'10 = "../../../creusot-contracts/src/logic/ord.rs" 168 39 168 69
2222
let%span sord'11 = "../../../creusot-contracts/src/logic/ord.rs" 173 39 173 84
23-
let%span sord'12 = "../../../creusot-contracts/src/logic/ord.rs" 230 16 236 17
23+
let%span sord'12 = "../../../creusot-contracts/src/logic/ord.rs" 260 16 266 17
2424
let%span smodel = "../../../creusot-contracts/src/model.rs" 63 8 63 22
2525

2626
use creusot.prelude.Opaque

tests/should_fail/bug/1204.coma

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
module M_1204__evil [#"1204.rs" 8 0 8 26]
2-
let%span s1204 = "1204.rs" 6 11 6 16
3-
let%span s1204'0 = "1204.rs" 7 10 7 11
2+
let%span s1204 = "1204.rs" 7 10 7 11
3+
let%span s1204'0 = "1204.rs" 6 11 6 16
44
let%span s1204'1 = "1204.rs" 9 4 9 16
5+
let%span swell_founded = "../../../creusot-contracts/src/logic/well_founded.rs" 45 8 45 33
56

67
use mach.int.Int
78

9+
predicate well_founded_relation (self: int) (other: int) = [%#swell_founded] self >= 0 /\ self > other
10+
811
meta "compute_max_steps" 1000000
912

1013
meta "select_lsinst" "all"
@@ -13,14 +16,14 @@ module M_1204__evil [#"1204.rs" 8 0 8 26]
1316

1417
function evil [#"1204.rs" 8 0 8 26] (x'0: int) : int
1518

16-
goal vc_evil: ([%#s1204] false)
17-
-> ([@expl:evil requires] [%#s1204] false) /\ 0 <= ([%#s1204'0] x) /\ ([%#s1204'0] - x) < ([%#s1204'0] x)
19+
goal vc_evil: ([%#s1204'0] false)
20+
-> ([@expl:evil requires] [%#s1204'0] false) /\ well_founded_relation ([%#s1204] x) ([%#s1204] - x)
1821
end
1922
module M_1204__wrong [#"1204.rs" 14 0 14 14]
2023
let%span s1204 = "1204.rs" 13 10 13 15
2124
let%span s1204'0 = "1204.rs" 6 11 6 16
22-
let%span s1204'1 = "1204.rs" 7 10 7 11
23-
let%span s1204'2 = "1204.rs" 15 4 15 43
25+
let%span s1204'1 = "1204.rs" 15 4 15 43
26+
let%span s1204'2 = "1204.rs" 7 10 7 11
2427
let%span s1204'3 = "1204.rs" 9 4 9 16
2528

2629
use mach.int.Int
10 Bytes
Binary file not shown.

tests/should_fail/bug/692.coma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ module M_692__valid_normal [#"692.rs" 12 0 12 34]
130130
let%span sord'9 = "../../../creusot-contracts/src/logic/ord.rs" 167 40 167 73
131131
let%span sord'10 = "../../../creusot-contracts/src/logic/ord.rs" 168 39 168 69
132132
let%span sord'11 = "../../../creusot-contracts/src/logic/ord.rs" 173 39 173 84
133-
let%span sord'12 = "../../../creusot-contracts/src/logic/ord.rs" 230 16 236 17
133+
let%span sord'12 = "../../../creusot-contracts/src/logic/ord.rs" 260 16 266 17
134134
let%span sresolve = "../../../creusot-contracts/src/resolve.rs" 52 20 52 34
135135

136136
use creusot.int.UInt32

tests/should_fail/bug/695.coma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ module M_695__valid [#"695.rs" 12 0 12 27]
171171
let%span sord'9 = "../../../creusot-contracts/src/logic/ord.rs" 167 40 167 73
172172
let%span sord'10 = "../../../creusot-contracts/src/logic/ord.rs" 168 39 168 69
173173
let%span sord'11 = "../../../creusot-contracts/src/logic/ord.rs" 173 39 173 84
174-
let%span sord'12 = "../../../creusot-contracts/src/logic/ord.rs" 230 16 236 17
174+
let%span sord'12 = "../../../creusot-contracts/src/logic/ord.rs" 260 16 266 17
175175
let%span sresolve = "../../../creusot-contracts/src/resolve.rs" 52 20 52 34
176176

177177
use creusot.int.UInt32

tests/should_fail/generic_deref_ghost.coma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ module M_generic_deref_ghost__deref_wrap [#"generic_deref_ghost.rs" 8 0 8 48]
1818

1919
use creusot.prelude.Any
2020

21-
type t_Target
22-
2321
type t_T
2422

23+
type t_Target
24+
2525
predicate precondition (self: ()) (args: t_T)
2626

2727
axiom precondition_fndef:
1 Byte
Binary file not shown.

0 commit comments

Comments
 (0)