summaryrefslogtreecommitdiff
path: root/Test/dafny0/FunctionSpecifications.dfy.expect
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2015-06-15 16:19:11 -0700
committerGravatar Rustan Leino <unknown>2015-06-15 16:19:11 -0700
commit58d639bff25a2d4dadf6febb81b1438e957c43cd (patch)
tree255610eee4a6f550dc4943278949bb95b2fe179a /Test/dafny0/FunctionSpecifications.dfy.expect
parent7f89a05ae627b7c5498b82deaea34cabc465aaa6 (diff)
Do postponsed reads checking also for the body of functions -- see Test/dafny0/Reads.dfy for benefits.
(Unfortunately, this loses track of the "postcondition might not hold on this return path" locations, see Test/dafny0/FunctionSpecifications.dfy.)
Diffstat (limited to 'Test/dafny0/FunctionSpecifications.dfy.expect')
-rw-r--r--Test/dafny0/FunctionSpecifications.dfy.expect20
1 files changed, 11 insertions, 9 deletions
diff --git a/Test/dafny0/FunctionSpecifications.dfy.expect b/Test/dafny0/FunctionSpecifications.dfy.expect
index 6d4bdfbb..9f76313a 100644
--- a/Test/dafny0/FunctionSpecifications.dfy.expect
+++ b/Test/dafny0/FunctionSpecifications.dfy.expect
@@ -1,22 +1,24 @@
-FunctionSpecifications.dfy(35,25): Error BP5003: A postcondition might not hold on this return path.
+FunctionSpecifications.dfy(29,10): Error BP5003: A postcondition might not hold on this return path.
FunctionSpecifications.dfy(31,13): Related location: This is the postcondition that might not hold.
Execution trace:
(0,0): anon0
- (0,0): anon9_Else
(0,0): anon10_Else
- (0,0): anon11_Then
- (0,0): anon12_Else
-FunctionSpecifications.dfy(45,3): Error BP5003: A postcondition might not hold on this return path.
+ (0,0): anon11_Else
+ (0,0): anon12_Then
+ (0,0): anon13_Else
+ (0,0): anon9
+FunctionSpecifications.dfy(38,10): Error BP5003: A postcondition might not hold on this return path.
FunctionSpecifications.dfy(40,24): Related location: This is the postcondition that might not hold.
Execution trace:
(0,0): anon0
- (0,0): anon14_Else
- (0,0): anon17_Else
- (0,0): anon18_Then
+ (0,0): anon15_Else
+ (0,0): anon18_Else
+ (0,0): anon19_Then
+ (0,0): anon14
FunctionSpecifications.dfy(53,11): Error: cannot prove termination; try supplying a decreases clause
Execution trace:
(0,0): anon0
- (0,0): anon10_Then
+ (0,0): anon11_Then
(0,0): anon5
FunctionSpecifications.dfy(59,10): Error BP5003: A postcondition might not hold on this return path.
FunctionSpecifications.dfy(60,22): Related location: This is the postcondition that might not hold.