-
Notifications
You must be signed in to change notification settings - Fork 50
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
1 parent
e1e1c57
commit 8fb6627
Showing
12 changed files
with
95 additions
and
73 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,19 +1,19 @@ | ||
error: Mutually recursive functions: when calling `g`... | ||
--> cycle.rs:12:1 | ||
error: Mutually recursive functions: when calling `f`... | ||
--> cycle.rs:6:1 | ||
| | ||
12 | pub fn g(x: bool) { | ||
| ^^^^^^^^^^^^^^^^^ | ||
6 | pub fn f() { | ||
| ^^^^^^^^^^ | ||
| | ||
note: then `g` calls `f`... | ||
--> cycle.rs:14:9 | ||
| | ||
14 | f(); | ||
| ^^^ | ||
note: finally `f` calls `g`. | ||
note: then `f` calls `g`... | ||
--> cycle.rs:7:5 | ||
| | ||
7 | g(true); | ||
| ^^^^^^^ | ||
note: finally `g` calls `f`. | ||
--> cycle.rs:14:9 | ||
| | ||
14 | f(); | ||
| ^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
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
18 changes: 5 additions & 13 deletions
18
creusot/tests/should_fail/terminates/complicated_traits_recursion.stderr
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
20 changes: 10 additions & 10 deletions
20
creusot/tests/should_fail/terminates/mutual_recursion.stderr
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,24 +1,24 @@ | ||
error: Mutually recursive functions: when calling `f3`... | ||
--> mutual_recursion.rs:18:1 | ||
error: Mutually recursive functions: when calling `m::f1`... | ||
--> mutual_recursion.rs:7:5 | ||
| | ||
18 | fn f3() { | ||
| ^^^^^^^ | ||
7 | pub fn f1() { | ||
| ^^^^^^^^^^^ | ||
| | ||
note: then `f3` calls `m::f1`... | ||
--> mutual_recursion.rs:19:5 | ||
| | ||
19 | m::f1(); | ||
| ^^^^^^^ | ||
note: then `m::f1` calls `f2`... | ||
--> mutual_recursion.rs:8:9 | ||
| | ||
8 | super::f2(); | ||
| ^^^^^^^^^^^ | ||
note: finally `f2` calls `f3`. | ||
note: then `f2` calls `f3`... | ||
--> mutual_recursion.rs:14:5 | ||
| | ||
14 | f3(); | ||
| ^^^^ | ||
note: finally `f3` calls `m::f1`. | ||
--> mutual_recursion.rs:19:5 | ||
| | ||
19 | m::f1(); | ||
| ^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
20 changes: 10 additions & 10 deletions
20
creusot/tests/should_fail/terminates/mutual_recursion_trait.stderr
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,19 +1,19 @@ | ||
error: Mutually recursive functions: when calling `bar`... | ||
--> mutual_recursion_trait.rs:18:1 | ||
error: Mutually recursive functions: when calling `<i32 as Foo>::foo`... | ||
--> mutual_recursion_trait.rs:12:5 | ||
| | ||
18 | fn bar() { | ||
| ^^^^^^^^ | ||
12 | fn foo() { | ||
| ^^^^^^^^ | ||
| | ||
note: then `bar` calls `<i32 as Foo>::foo`... | ||
--> mutual_recursion_trait.rs:19:5 | ||
| | ||
19 | <i32 as Foo>::foo(); | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
note: finally `<i32 as Foo>::foo` calls `bar`. | ||
note: then `<i32 as Foo>::foo` calls `bar`... | ||
--> mutual_recursion_trait.rs:13:9 | ||
| | ||
13 | bar(); | ||
| ^^^^^ | ||
note: finally `bar` calls `<i32 as Foo>::foo`. | ||
--> mutual_recursion_trait.rs:19:5 | ||
| | ||
19 | <i32 as Foo>::foo(); | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
40 changes: 20 additions & 20 deletions
40
creusot/tests/should_fail/terminates/recursion_through_contract.stderr
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,36 +1,36 @@ | ||
error: Mutually recursive functions: when calling `f2`... | ||
--> recursion_through_contract.rs:23:1 | ||
error: Mutually recursive functions: when calling `with_requires`... | ||
--> recursion_through_contract.rs:20:1 | ||
| | ||
23 | fn f2() -> Int { | ||
| ^^^^^^^^^^^^^^ | ||
20 | fn with_requires(x: Int) {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
note: then `f2` calls `with_requires`... | ||
--> recursion_through_contract.rs:24:5 | ||
| | ||
24 | with_requires(5); | ||
| ^^^^^^^^^^^^^^^^ | ||
note: finally `with_requires` calls `f2`. | ||
note: then `with_requires` calls `f2`... | ||
--> recursion_through_contract.rs:19:17 | ||
| | ||
19 | #[requires(x == f2())] | ||
| ^^^^ | ||
|
||
error: Mutually recursive functions: when calling `f1`... | ||
--> recursion_through_contract.rs:13:1 | ||
note: finally `f2` calls `with_requires`. | ||
--> recursion_through_contract.rs:24:5 | ||
| | ||
13 | fn f1() -> Int { | ||
| ^^^^^^^^^^^^^^ | ||
24 | with_requires(5); | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: Mutually recursive functions: when calling `with_proof_assert`... | ||
--> recursion_through_contract.rs:6:1 | ||
| | ||
note: then `f1` calls `with_proof_assert`... | ||
--> recursion_through_contract.rs:14:5 | ||
6 | fn with_proof_assert(x: Int) { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
14 | with_proof_assert(5); | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
note: finally `with_proof_assert` calls `f1`. | ||
note: then `with_proof_assert` calls `f1`... | ||
--> recursion_through_contract.rs:8:14 | ||
| | ||
8 | x == f1() | ||
| ^^^^ | ||
note: finally `f1` calls `with_proof_assert`. | ||
--> recursion_through_contract.rs:14:5 | ||
| | ||
14 | with_proof_assert(5); | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
14 changes: 14 additions & 0 deletions
14
creusot/tests/should_succeed/termination/call_in_contract/why3session.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+105 Bytes
creusot/tests/should_succeed/termination/call_in_contract/why3shapes.gz
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
creusot/tests/should_succeed/termination/default_impl/why3session.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
creusot/tests/should_succeed/termination/default_impl_in_trait/why3session.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+45 Bytes
creusot/tests/should_succeed/termination/default_impl_in_trait/why3shapes.gz
Binary file not shown.