summaryrefslogtreecommitdiff
path: root/Test/dafny0/RealTypes.dfy.expect
diff options
context:
space:
mode:
authorGravatar leino <unknown>2014-08-21 23:23:20 -0700
committerGravatar leino <unknown>2014-08-21 23:23:20 -0700
commit60036a94bf56dcb15e7f426f0e485e16fb85b651 (patch)
treed2b062581d1d052774770a3bde34a0e246d88454 /Test/dafny0/RealTypes.dfy.expect
parent900c42823f0661107543716a247bec22f01cd9cc (diff)
Added .Trunc field to real-based types
Changed semantics of real-to-int conversions--these now have a precondition that the number converted is already an integer
Diffstat (limited to 'Test/dafny0/RealTypes.dfy.expect')
-rw-r--r--Test/dafny0/RealTypes.dfy.expect19
1 files changed, 12 insertions, 7 deletions
diff --git a/Test/dafny0/RealTypes.dfy.expect b/Test/dafny0/RealTypes.dfy.expect
index 1f4d22a8..0d132948 100644
--- a/Test/dafny0/RealTypes.dfy.expect
+++ b/Test/dafny0/RealTypes.dfy.expect
@@ -1,18 +1,23 @@
-RealTypes.dfy(8,23): Error: assertion violation
+RealTypes.dfy(12,16): Error: the real-based number must be an integer (if you want truncation, apply .Trunc to the real-based number)
Execution trace:
(0,0): anon0
-RealTypes.dfy(14,12): Error: possible division by zero
+ (0,0): anon6_Then
+RealTypes.dfy(14,28): Error: assertion violation
Execution trace:
(0,0): anon0
- RealTypes.dfy(13,23): anon3_Else
+ (0,0): anon7_Then
+RealTypes.dfy(21,12): Error: possible division by zero
+Execution trace:
+ (0,0): anon0
+ RealTypes.dfy(20,23): anon3_Else
(0,0): anon2
-RealTypes.dfy(14,20): Error: assertion violation
+RealTypes.dfy(21,20): Error: assertion violation
Execution trace:
(0,0): anon0
- RealTypes.dfy(13,23): anon3_Else
+ RealTypes.dfy(20,23): anon3_Else
(0,0): anon2
-RealTypes.dfy(22,12): Error: assertion violation
+RealTypes.dfy(29,12): Error: assertion violation
Execution trace:
(0,0): anon0
-Dafny program verifier finished with 6 verified, 4 errors
+Dafny program verifier finished with 6 verified, 5 errors