-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests to work with Z3 4.12.1 #3400
Changes from all commits
aec5aa0
534a69f
e461695
da2ee9b
a23e889
27429e4
f092846
03e3a13
36417d9
ded3d93
0eff6ce
b7e6f51
f817274
2547af7
b20ee60
1e82a0e
7b72ca7
6c6be0c
671697c
e30100d
f1176b0
e0d3134
97f2e78
0d01cf7
4acf36a
b031987
c6833a9
c2866ac
17ca607
ca920f9
b612552
0fd95ca
c1a37e4
89b458b
a5a9020
a5935db
c2e978f
477c51e
fdba438
dcea69b
7230d01
2e8c1c7
2e856a6
5fe892c
0be00ac
91c8efe
c04ee95
ba8c6d1
011b21f
178915d
64bb1d0
dd6a5ae
5c5d349
06fb478
e2ecab6
5218862
c082a01
deda3f8
809b1d1
d0ae816
3a31c38
6a9f3ab
846de6d
70ff9c4
7793799
6e159d1
65a2516
7442149
d9169a3
d44704f
1f47358
4d61647
98c25f7
4ca6e61
355e811
68f7be8
6a114d0
228a769
add1e96
32d9823
feb2b24
f2d6da7
cad7593
61aaf9e
6745194
50ce749
6f2b1b6
85d5783
1081126
50049f8
6c1b354
2daef3a
3d59924
86060d4
b3b2be5
9ddc588
8d8e327
f156ca3
21c6c1a
ef0923e
910c8d1
6592175
0e91d79
66994cc
259891f
ab38ecc
0133584
eae661b
fa8053d
48451aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ method Abs(x: int) returns (y: int) | |
// When hovering the postcondition, it should display the position of the failing path | ||
await AssertHoverMatches(documentItem, (2, 15), | ||
@"[**Error:**](???) This postcondition might not hold on a return path. | ||
This is assertion #1 of 4 in method Abs | ||
This is assertion #2 of 4 in method Abs | ||
Resource usage: ??? RU | ||
Return path: testFile.dfy(6, 5)" | ||
); | ||
|
@@ -60,13 +60,13 @@ This is assertion #1 of 4 in method Abs | |
await AssertHoverMatches(documentItem, (5, 4), | ||
@"[**Error:**](???) A postcondition might not hold on this return path. | ||
Could not prove: y >= 0 | ||
This is assertion #1 of 4 in method Abs | ||
This is assertion #2 of 4 in method Abs | ||
Resource usage: ??? RU" | ||
); | ||
await AssertHoverMatches(documentItem, (7, 11), | ||
@"[**Error:**](???) assertion might not hold | ||
This is assertion #2 of 4 in method Abs | ||
Resource usage: 9K RU" | ||
This is assertion #1 of 4 in method Abs | ||
Resource usage: ??? RU" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know why we lost this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
); | ||
await AssertHoverMatches(documentItem, (0, 7), | ||
@"**Verification performance metrics for method Abs**: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// RUN: %exits-with 4 %dafny /verifyAllModules /allocated:1 /print:"%t.print" /env:0 "%s" > "%t" | ||
// RUN: %exits-with 4 %dafny /errorLimit:0 /verifyAllModules /allocated:1 /print:"%t.print" /env:0 "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
include "../../dafny0/BitvectorsMore.dfy" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ BitvectorsMore.dfy(105,35): Error: shift amount must not exceed the width of the | |
BitvectorsMore.dfy(105,38): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv7 | ||
BitvectorsMore.dfy(107,34): Error: shift amount must not exceed the width of the result (67) | ||
BitvectorsMore.dfy(107,37): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv7 | ||
BitvectorsMore.dfy(108,34): Error: shift amount must not exceed the width of the result (67) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The extra errors are an artifact of |
||
BitvectorsMore.dfy(115,42): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv7 | ||
BitvectorsMore.dfy(116,39): Error: shift amount must not exceed the width of the result (67) | ||
BitvectorsMore.dfy(116,42): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv7 | ||
|
@@ -21,6 +22,7 @@ BitvectorsMore.dfy(135,24): Error: shift amount must not exceed the width of the | |
BitvectorsMore.dfy(135,27): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv6 | ||
BitvectorsMore.dfy(136,24): Error: shift amount must not exceed the width of the result (32) | ||
BitvectorsMore.dfy(136,27): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv6 | ||
BitvectorsMore.dfy(137,24): Error: shift amount must not exceed the width of the result (32) | ||
BitvectorsMore.dfy(137,27): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv6 | ||
BitvectorsMore.dfy(146,35): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv3 | ||
BitvectorsMore.dfy(147,35): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv3 | ||
|
@@ -29,12 +31,14 @@ BitvectorsMore.dfy(157,26): Error: shift amount must not exceed the width of the | |
BitvectorsMore.dfy(157,29): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv2 | ||
BitvectorsMore.dfy(158,26): Error: shift amount must not exceed the width of the result (2) | ||
BitvectorsMore.dfy(158,29): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv2 | ||
BitvectorsMore.dfy(159,26): Error: shift amount must not exceed the width of the result (2) | ||
BitvectorsMore.dfy(159,29): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv2 | ||
BitvectorsMore.dfy(160,26): Error: shift amount must not exceed the width of the result (2) | ||
BitvectorsMore.dfy(168,33): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv0 | ||
BitvectorsMore.dfy(169,33): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv0 | ||
BitvectorsMore.dfy(170,33): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv0 | ||
BitvectorsMore.dfy(171,33): Error: when converting shift amount to a bit vector, the value to be converted might not fit in bv0 | ||
BitvectorsMore.dfy(193,26): Error: shift amount must not exceed the width of the result (5) | ||
BitvectorsMore.dfy(194,26): Error: shift amount must not exceed the width of the result (5) | ||
|
||
Dafny program verifier finished with 9 verified, 37 errors | ||
Dafny program verifier finished with 9 verified, 41 errors |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// RUN: %dafny /verifyAllModules /allocated:1 /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t" | ||
// RUN: %dafny /verifyAllModules /allocated:1 /proverOpt:O:smt.qi.eager_threshold=25 /compile:0 /print:"%t.print" /dprint:"%t.dprint" "%s" > "%t" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this an option we should (right now) suggest as a verification technique in the manual and (slightly later) add a Dafny-level option for of some kind? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've considered that. I'd like to experiment with it a bit more on production code and see if it makes any difference there. |
||
// RUN: %diff "%s.expect" "%t" | ||
include "../../dafny0/Computations.dfy" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// RUN: %exits-with 4 %dafny /verifyAllModules /allocated:1 /compile:0 /print:"%t.print" /dprint:"%t.dprint" /autoTriggers:0 /optimizeResolution:0 /errorLimit:0 "%s" > "%t" | ||
// RUN: %exits-with 4 %dafny /verifyAllModules /proverOpt:O:smt.qi.eager_threshold=80 /allocated:1 /compile:0 /print:"%t.print" /dprint:"%t.dprint" /autoTriggers:0 /optimizeResolution:0 /errorLimit:0 "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
include "../../dafny0/Fuel.dfy" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
The /allocated:<n> option is deprecated | ||
one-message-per-failed-precondition.dfy(13,3): Error: A precondition for this call might not hold. | ||
one-message-per-failed-precondition.dfy(8,13): Related location: This is the precondition that might not hold. | ||
one-message-per-failed-precondition.dfy(13,3): Error: A precondition for this call might not hold. | ||
one-message-per-failed-precondition.dfy(9,13): Related location: This is the precondition that might not hold. | ||
one-message-per-failed-precondition.dfy(20,33): Error: function precondition might not hold | ||
one-message-per-failed-precondition.dfy(17,13): Related location | ||
one-message-per-failed-precondition.dfy(13,3): Error: A precondition for this call might not hold. | ||
one-message-per-failed-precondition.dfy(8,13): Related location: This is the precondition that might not hold. | ||
one-message-per-failed-precondition.dfy(20,33): Error: function precondition might not hold | ||
one-message-per-failed-precondition.dfy(18,13): Related location | ||
one-message-per-failed-precondition.dfy(20,33): Error: function precondition might not hold | ||
one-message-per-failed-precondition.dfy(17,13): Related location | ||
|
||
Dafny program verifier finished with 0 verified, 4 errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI (to fix before the next time we change the version number :), it's not too hard to extract out the value from source code to avoid duplicating it all over the place in these files. For example: https://github.com/dafny-lang/dafny/blob/master/.github/workflows/msbuild.yml#L35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would be a nice improvement.