summaryrefslogtreecommitdiff
path: root/Binaries
diff options
context:
space:
mode:
authorGravatar leino <unknown>2014-10-21 01:16:56 -0700
committerGravatar leino <unknown>2014-10-21 01:16:56 -0700
commitbf6de3d13197e1635a4d9fe807b3f4b45113ae6a (patch)
treec72587e9340fe59aed06852ef4b8d23dc39fba18 /Binaries
parentc182b533a83dfee69828620f12a051feaab03eac (diff)
Comparisons and well-founded order of char
Diffstat (limited to 'Binaries')
-rw-r--r--Binaries/DafnyPrelude.bpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/Binaries/DafnyPrelude.bpl b/Binaries/DafnyPrelude.bpl
index 4cdb21e9..9b410b1e 100644
--- a/Binaries/DafnyPrelude.bpl
+++ b/Binaries/DafnyPrelude.bpl
@@ -79,6 +79,9 @@ axiom (forall<T> x: T :: { $Box(Lit(x)) } $Box(Lit(x)) == Lit($Box(x)) );
type char;
function char#FromInt(int): char;
function char#ToInt(char): int; // inverse of char#FromInt
+axiom (forall ch: char ::
+ { char#ToInt(ch) }
+ char#FromInt(char#ToInt(ch)) == ch);
axiom (forall n: int ::
{ char#FromInt(n) }
0 <= n && n < 65536 ==> char#ToInt(char#FromInt(n)) == n);