diff options
author | Rustan Leino <leino@microsoft.com> | 2012-01-18 01:48:13 -0800 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2012-01-18 01:48:13 -0800 |
commit | 494e09b9a1fe9aaddb816ce7fd31bfe7cdbebfb2 (patch) | |
tree | 630c4ea15ad69639e2003d83082887455448fb70 /Test/dafny0/Answer | |
parent | 4ecb8430ec0a267e6876678a4b89715779847e44 (diff) |
Dafny: allow a refinement to provide a function/method body if the function/method being refined didn't have one
Diffstat (limited to 'Test/dafny0/Answer')
-rw-r--r-- | Test/dafny0/Answer | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Test/dafny0/Answer b/Test/dafny0/Answer index 71089e91..57d44098 100644 --- a/Test/dafny0/Answer +++ b/Test/dafny0/Answer @@ -1338,11 +1338,18 @@ Execution trace: Refinement.dfy(61,14): Error: assertion violation
Execution trace:
(0,0): anon0
-Refinement.dfy(70,17): Error: assertion violation
+Refinement.dfy(71,17): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+Refinement.dfy(69,15): Error: possible violation of function postcondition
+Execution trace:
+ (0,0): anon3_Else
+Refinement.dfy(93,3): Error BP5003: A postcondition might not hold on this return path.
+Refinement.dfy(74,15): Related location: This is the postcondition that might not hold.
Execution trace:
(0,0): anon0
-Dafny program verifier finished with 29 verified, 4 errors
+Dafny program verifier finished with 28 verified, 6 errors
-------------------- RefinementErrors.dfy --------------------
RefinementErrors.dfy(27,17): Error: a refining method is not allowed to add preconditions
|