forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Default UI to New Display and Add UI Test Suite (rust-lang#828)
* Change expected files and add flags to explicitly demand old output * Fix issues with dry run and change default output to regular style * Add UI test suite
- Loading branch information
Showing
98 changed files
with
342 additions
and
196 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ edition = "2018" | |
proptest = "1.0.0" | ||
|
||
[workspace] | ||
|
||
[workspace.metadata.kani] | ||
flags = { output-format = "old" } |
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 |
---|---|---|
|
@@ -11,3 +11,6 @@ edition = "2018" | |
proptest = "1.0.0" | ||
|
||
[workspace] | ||
|
||
[workspace.metadata.kani] | ||
flags = { output-format = "old" } |
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
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
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 |
---|---|---|
|
@@ -18,4 +18,5 @@ gen-c = true | |
[kani.flags] | ||
visualize = false | ||
mangler = "v0" | ||
output-format = "old" | ||
cbmc-args = [] |
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 |
---|---|---|
|
@@ -11,3 +11,6 @@ edition = "2018" | |
|
||
[kani.flags.linking] | ||
c-lib = ["src/helper.c"] | ||
|
||
[kani.flags] | ||
output-format = "old" |
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ edition = "2018" | |
[dependencies] | ||
|
||
[workspace] | ||
|
||
[kani.flags] | ||
output-format = "old" |
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ edition = "2018" | |
[dependencies] | ||
|
||
[workspace] | ||
|
||
[kani.flags] | ||
output-format = "old" |
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 |
---|---|---|
|
@@ -7,3 +7,6 @@ version = "0.1.0" | |
edition = "2021" | ||
|
||
[dependencies] | ||
|
||
[kani.flags] | ||
output-format = "old" |
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,3 +1,2 @@ | ||
line 12 a panicking function std::process::abort is invoked: FAILURE | ||
line 16 a panicking function std::process::abort is invoked: SUCCESS | ||
|
||
line 14 a panicking function std::process::abort is invoked: FAILURE | ||
line 18 a panicking function std::process::abort is invoked: SUCCESS |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
line 8 assertion failed: foo() == None: SUCCESS | ||
line 11 assertion failed: foo() == y: SUCCESS | ||
line 10 assertion failed: foo() == None: SUCCESS | ||
line 13 assertion failed: foo() == y: SUCCESS |
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
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,3 +1,3 @@ | ||
line 15 assertion failed: x + 1 == y: SUCCESS | ||
line 16 assertion failed: x == y: FAILURE | ||
line 17 assertion failed: x != y: SUCCESS | ||
line 17 assertion failed: x + 1 == y: SUCCESS | ||
line 18 assertion failed: x == y: FAILURE | ||
line 19 assertion failed: x != y: SUCCESS |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
line 12 assertion failed: false: FAILURE | ||
line 17 "{}", s: FAILURE | ||
line 21 "Fail with custom static message": FAILURE | ||
line 13 assertion failed: false: FAILURE | ||
line 18 "{}", s: FAILURE | ||
line 22 "Fail with custom static message": FAILURE |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
line 6 This should fail and stop the execution: FAILURE | ||
line 7 "This should be unreachable": SUCCESS | ||
line 7 This should fail and stop the execution: FAILURE | ||
line 8 "This should be unreachable": SUCCESS |
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 |
---|---|---|
@@ -1,42 +1,42 @@ | ||
line 4 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS | ||
line 4 assertion failed: a + b == correct: SUCCESS | ||
line 5 attempt to compute `move _15 + move _16`, which would overflow: SUCCESS | ||
line 5 assertion failed: a + b == wrong: FAILURE | ||
line 9 attempt to compute `move _8 - move _9`, which would overflow: SUCCESS | ||
line 9 assertion failed: a - b == correct: SUCCESS | ||
line 10 attempt to compute `move _15 - move _16`, which would overflow: SUCCESS | ||
line 10 assertion failed: a - b == wrong: FAILURE | ||
line 14 attempt to compute `move _8 * move _9`, which would overflow: SUCCESS | ||
line 14 assertion failed: a * b == correct: SUCCESS | ||
line 15 attempt to compute `move _15 * move _16`, which would overflow: SUCCESS | ||
line 15 assertion failed: a * b == wrong: FAILURE | ||
line 19 attempt to divide `_8` by zero: SUCCESS | ||
line 19 attempt to compute `_8 / _9`, which would overflow: SUCCESS | ||
line 19 assertion failed: a / b == correct: SUCCESS | ||
line 20 attempt to divide `_18` by zero: SUCCESS | ||
line 20 attempt to compute `_18 / _19`, which would overflow: SUCCESS | ||
line 20 assertion failed: a / b == wrong: FAILURE | ||
line 24 attempt to calculate the remainder of `_8` with a divisor of zero: SUCCESS | ||
line 24 attempt to compute the remainder of `_8 % _9`, which would overflow: SUCCESS | ||
line 24 assertion failed: a % b == correct: SUCCESS | ||
line 25 attempt to calculate the remainder of `_18` with a divisor of zero: SUCCESS | ||
line 25 attempt to compute the remainder of `_18 % _19`, which would overflow: SUCCESS | ||
line 25 assertion failed: a % b == wrong: FAILURE | ||
line 29 attempt to shift left by `move _9`, which would overflow: SUCCESS | ||
line 29 assertion failed: a << b == correct: SUCCESS | ||
line 30 attempt to shift left by `move _16`, which would overflow: SUCCESS | ||
line 30 assertion failed: a << b == wrong: FAILURE | ||
line 34 attempt to shift right by `move _9`, which would overflow: SUCCESS | ||
line 34 assertion failed: a >> b == correct: SUCCESS | ||
line 35 attempt to shift right by `move _16`, which would overflow: SUCCESS | ||
line 35 assertion failed: a >> b == wrong: FAILURE | ||
line 39 attempt to shift right by `move _9`, which would overflow: SUCCESS | ||
line 39 assertion failed: a >> b == correct: SUCCESS | ||
line 40 attempt to shift right by `move _16`, which would overflow: SUCCESS | ||
line 40 assertion failed: a >> b == wrong: FAILURE | ||
line 44 assertion failed: a & b == correct: SUCCESS | ||
line 45 assertion failed: a & b == wrong: FAILURE | ||
line 49 assertion failed: a | b == correct: SUCCESS | ||
line 50 assertion failed: a | b == wrong: FAILURE | ||
line 54 assertion failed: a ^ b == correct: SUCCESS | ||
line 55 assertion failed: a ^ b == wrong: FAILURE | ||
line 6 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS | ||
line 6 assertion failed: a + b == correct: SUCCESS | ||
line 7 attempt to compute `move _15 + move _16`, which would overflow: SUCCESS | ||
line 7 assertion failed: a + b == wrong: FAILURE | ||
line 11 attempt to compute `move _8 - move _9`, which would overflow: SUCCESS | ||
line 11 assertion failed: a - b == correct: SUCCESS | ||
line 12 attempt to compute `move _15 - move _16`, which would overflow: SUCCESS | ||
line 12 assertion failed: a - b == wrong: FAILURE | ||
line 16 attempt to compute `move _8 * move _9`, which would overflow: SUCCESS | ||
line 16 assertion failed: a * b == correct: SUCCESS | ||
line 17 attempt to compute `move _15 * move _16`, which would overflow: SUCCESS | ||
line 17 assertion failed: a * b == wrong: FAILURE | ||
line 21 attempt to divide `_8` by zero: SUCCESS | ||
line 21 attempt to compute `_8 / _9`, which would overflow: SUCCESS | ||
line 21 assertion failed: a / b == correct: SUCCESS | ||
line 22 attempt to divide `_18` by zero: SUCCESS | ||
line 22 attempt to compute `_18 / _19`, which would overflow: SUCCESS | ||
line 22 assertion failed: a / b == wrong: FAILURE | ||
line 26 attempt to calculate the remainder of `_8` with a divisor of zero: SUCCESS | ||
line 26 attempt to compute the remainder of `_8 % _9`, which would overflow: SUCCESS | ||
line 26 assertion failed: a % b == correct: SUCCESS | ||
line 27 attempt to calculate the remainder of `_18` with a divisor of zero: SUCCESS | ||
line 27 attempt to compute the remainder of `_18 % _19`, which would overflow: SUCCESS | ||
line 27 assertion failed: a % b == wrong: FAILURE | ||
line 31 attempt to shift left by `move _9`, which would overflow: SUCCESS | ||
line 31 assertion failed: a << b == correct: SUCCESS | ||
line 32 attempt to shift left by `move _16`, which would overflow: SUCCESS | ||
line 32 assertion failed: a << b == wrong: FAILURE | ||
line 36 attempt to shift right by `move _9`, which would overflow: SUCCESS | ||
line 36 assertion failed: a >> b == correct: SUCCESS | ||
line 37 attempt to shift right by `move _16`, which would overflow: SUCCESS | ||
line 37 assertion failed: a >> b == wrong: FAILURE | ||
line 41 attempt to shift right by `move _9`, which would overflow: SUCCESS | ||
line 41 assertion failed: a >> b == correct: SUCCESS | ||
line 42 attempt to shift right by `move _16`, which would overflow: SUCCESS | ||
line 42 assertion failed: a >> b == wrong: FAILURE | ||
line 46 assertion failed: a & b == correct: SUCCESS | ||
line 47 assertion failed: a & b == wrong: FAILURE | ||
line 51 assertion failed: a | b == correct: SUCCESS | ||
line 52 assertion failed: a | b == wrong: FAILURE | ||
line 56 assertion failed: a ^ b == correct: SUCCESS | ||
line 57 assertion failed: a ^ b == wrong: FAILURE |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
line 18 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS | ||
line 18 attempt to compute `move _5 + move _6`, which would overflow: SUCCESS | ||
line 18 attempt to compute `(*((*_1).0: &mut i32)) + move _4`, which would overflow: SUCCESS | ||
line 23 attempt to compute `move _18 + const 12_i32`, which would overflow: SUCCESS | ||
line 23 assertion failed: original_num + 12 == num: SUCCESS | ||
line 23 arithmetic overflow on signed + in var_18 + 12: SUCCESS | ||
line 20 attempt to compute `move _8 + move _9`, which would overflow: SUCCESS | ||
line 20 attempt to compute `move _5 + move _6`, which would overflow: SUCCESS | ||
line 20 attempt to compute `(*((*_1).0: &mut i32)) + move _4`, which would overflow: SUCCESS | ||
line 25 attempt to compute `move _18 + const 12_i32`, which would overflow: SUCCESS | ||
line 25 assertion failed: original_num + 12 == num: SUCCESS | ||
line 25 arithmetic overflow on signed + in var_18 + 12: SUCCESS |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
line 5 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS | ||
line 7 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS | ||
line 8 assertion failed: z == 102: SUCCESS | ||
line 9 assertion failed: g(z) == 206: SUCCESS | ||
line 9 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS | ||
line 10 assertion failed: z == 102: SUCCESS | ||
line 11 assertion failed: g(z) == 206: SUCCESS |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
line 14 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS | ||
line 15 attempt to compute `move _11 + const 10_i64`, which would overflow: SUCCESS | ||
line 15 assertion failed: num + 10 == y: SUCCESS | ||
line 16 attempt to compute `move _3 + move _4`, which would overflow: SUCCESS | ||
line 17 attempt to compute `move _11 + const 10_i64`, which would overflow: SUCCESS | ||
line 17 assertion failed: num + 10 == y: SUCCESS |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
line 5 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS | ||
line 5 attempt to compute `move _10 + move _11`, which would overflow: SUCCESS | ||
line 5 assertion failed: a + b == b + a: SUCCESS | ||
line 6 attempt to compute `move _16 + move _17`, which would overflow: SUCCESS | ||
line 6 attempt to compute `move _21 + move _22`, which would overflow: SUCCESS | ||
line 6 attempt to compute `move _20 + const 1_i32`, which would overflow: SUCCESS | ||
line 6 assertion failed: a + b != a + b + 1: SUCCESS | ||
line 11 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS | ||
line 11 assertion failed: a + b > a: SUCCESS | ||
line 12 attempt to compute `move _13 - move _14`, which would overflow: SUCCESS | ||
line 12 assertion failed: a - b < a: SUCCESS | ||
line 7 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS | ||
line 7 attempt to compute `move _10 + move _11`, which would overflow: SUCCESS | ||
line 7 assertion failed: a + b == b + a: SUCCESS | ||
line 8 attempt to compute `move _16 + move _17`, which would overflow: SUCCESS | ||
line 8 attempt to compute `move _21 + move _22`, which would overflow: SUCCESS | ||
line 8 attempt to compute `move _20 + const 1_i32`, which would overflow: SUCCESS | ||
line 8 assertion failed: a + b != a + b + 1: SUCCESS | ||
line 13 attempt to compute `move _6 + move _7`, which would overflow: SUCCESS | ||
line 13 assertion failed: a + b > a: SUCCESS | ||
line 14 attempt to compute `move _13 - move _14`, which would overflow: SUCCESS | ||
line 14 assertion failed: a - b < a: SUCCESS |
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
Oops, something went wrong.