summaryrefslogtreecommitdiff
path: root/Binaries/DafnyPrelude.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Binaries/DafnyPrelude.bpl')
-rw-r--r--Binaries/DafnyPrelude.bpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Binaries/DafnyPrelude.bpl b/Binaries/DafnyPrelude.bpl
index bf9ef568..993ada51 100644
--- a/Binaries/DafnyPrelude.bpl
+++ b/Binaries/DafnyPrelude.bpl
@@ -432,7 +432,11 @@ axiom (forall o: ref :: 0 <= _System.array.Length(o));
// -- Reals ------------------------------------------------------
// ---------------------------------------------------------------
-function {:inline true} _System.real.Trunc(x: real): int { int(x) }
+function Int(x: real): int { int(x) }
+function Real(x: int): real { real(x) }
+axiom (forall i: int :: { Int(Real(i)) } Int(Real(i)) == i);
+
+function {:inline true} _System.real.Trunc(x: real): int { Int(x) }
// ---------------------------------------------------------------
// -- The heap ---------------------------------------------------