-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the format of output produced by
--progress
(#5341)
### Description The previous implementation had two issues: * It displayed only the milliseconds portion of the duration, so would be incorrect for any verification lasting longer than a second. * The use of exponential notation for resource count made it more difficult to compare values, and impossible to identify small differences. This also changes the overall format of the message slightly. ### How has this been tested? Existing tests have been updated to reflect the changes in formatting. By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
- Loading branch information
Showing
9 changed files
with
55 additions
and
82 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
26 changes: 26 additions & 0 deletions
26
...ts/TestFiles/LitTests/LitTest/verification/Inputs/outOfResourceAndIsolateAssertions.check
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,26 @@ | ||
CHECK: Verified 0/2 symbols. Waiting for f to verify. | ||
CHECK: Verification part 1/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 2/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 3/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 4/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 5/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 6/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 7/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 8/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 9/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 10/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 11/11 of f, on line 5, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verified 1/2 symbols. Waiting for L to verify. | ||
CHECK: Verification part 1/9 of L, on line 7, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 2/9 of L, on line 9, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 3/9 of L, on line 10, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 4/9 of L, on line 10, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 5/9 of L, on line 10, ran out of resources \(time: .*, resource count: .*\) | ||
CHECK: Verification part 6/9 of L, on line 11, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 7/9 of L, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 8/9 of L, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
CHECK: Verification part 9/9 of L, on line 12, ran out of resources | ||
outOfResourceAndIsolateAssertions.dfy\(10,18\): Error: Verification out of resource \(L\) | ||
outOfResourceAndIsolateAssertions.dfy\(12,18\): Error: Verification out of resource \(L\) | ||
|
||
Dafny program verifier finished with 18 verified, 0 errors, 2 out of resource |
24 changes: 12 additions & 12 deletions
24
...egrationTests/TestFiles/LitTests/LitTest/verification/Inputs/progressSecondSequence.check
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,12 +1,12 @@ | ||
// CHECK-L:Verification part 1/3 of Foo, on line 6, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/3 of Foo, on line 8, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 3/3 of Foo, on line 9, verified successfully, redacted and consuming 2.8E+003 resources | ||
// CHECK-L:Verification part 1/2 of Faz, on line 12, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/2 of Faz, on line 12, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 1/2 of Fopple, on line 14, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/2 of Fopple, on line 14, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 1/3 of Burp, on line 16, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/3 of Burp, on line 18, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK-L:Verification part 3/3 of Burp, on line 19, verified successfully, redacted and consuming 2.8E+003 resources | ||
// CHECK-L:Verification part 1/2 of Blanc, on line 22, verified successfully, redacted and consuming 8.7E+002 resources | ||
// CHECK-L:Verification part 2/2 of Blanc, on line 22, verified successfully, redacted and consuming 3.1E+003 resources | ||
// CHECK:Verification part 1/3 of Foo, on line 6, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/3 of Foo, on line 8, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 3/3 of Foo, on line 9, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/2 of Faz, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/2 of Faz, on line 12, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/2 of Fopple, on line 14, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/2 of Fopple, on line 14, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/3 of Burp, on line 16, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/3 of Burp, on line 18, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 3/3 of Burp, on line 19, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 1/2 of Blanc, on line 22, verified successfully \(time: .*, resource count: .*\) | ||
// CHECK:Verification part 2/2 of Blanc, on line 22, verified successfully \(time: .*, resource count: .*\) |
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
8 changes: 0 additions & 8 deletions
8
...ce/IntegrationTests/TestFiles/LitTests/LitTest/verification/isolate-assertions.dfy.expect
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...rationTests/TestFiles/LitTests/LitTest/verification/outOfResourceAndIsolateAssertions.dfy
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
26 changes: 0 additions & 26 deletions
26
...ests/TestFiles/LitTests/LitTest/verification/outOfResourceAndIsolateAssertions.dfy.expect
This file was deleted.
Oops, something went wrong.
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
19 changes: 0 additions & 19 deletions
19
Source/IntegrationTests/TestFiles/LitTests/LitTest/verification/progress.dfy.expect
This file was deleted.
Oops, something went wrong.