summaryrefslogtreecommitdiff
path: root/Test/dafny0/RealCompare.dfy
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/RealCompare.dfy
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/RealCompare.dfy')
-rw-r--r--Test/dafny0/RealCompare.dfy2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/dafny0/RealCompare.dfy b/Test/dafny0/RealCompare.dfy
index b1dae47d..f5256d6f 100644
--- a/Test/dafny0/RealCompare.dfy
+++ b/Test/dafny0/RealCompare.dfy
@@ -145,7 +145,7 @@ method Test_AbsInt1()
{
var a, i := 0.3, 0.0;
while i < 10.0
- invariant i <= 10.0 && i == real(int(i));
+ invariant i <= 10.0 && i == real(i.Trunc);
invariant a == 0.3 + 0.5 * i;
{
a, i := a + 0.5, i + 1.0;