summaryrefslogtreecommitdiff
path: root/contrib/extraction/test/addReals
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <smimram@debian.org>2008-07-25 15:12:53 +0200
committerGravatar Samuel Mimram <smimram@debian.org>2008-07-25 15:12:53 +0200
commita0cfa4f118023d35b767a999d5a2ac4b082857b4 (patch)
treedabcac548e299fee1da464c93b3dba98484f45b1 /contrib/extraction/test/addReals
parent2281410e38ef99d025ea77194585a9bc019fdaa9 (diff)
Imported Upstream version 8.2~beta3+dfsgupstream/8.2.beta3+dfsg
Diffstat (limited to 'contrib/extraction/test/addReals')
-rw-r--r--contrib/extraction/test/addReals21
1 files changed, 0 insertions, 21 deletions
diff --git a/contrib/extraction/test/addReals b/contrib/extraction/test/addReals
deleted file mode 100644
index fb73d47b..00000000
--- a/contrib/extraction/test/addReals
+++ /dev/null
@@ -1,21 +0,0 @@
-open TypeSyntax
-open Fast_integer
-
-
-let total_order_T x y =
-if x = y then InleftT RightT
-else if x < y then InleftT LeftT
-else InrightT
-
-let rec int_to_positive i =
- if i = 1 then XH
- else
- if (i mod 2) = 0 then XO (int_to_positive (i/2))
- else XI (int_to_positive (i/2))
-
-let rec int_to_Z i =
- if i = 0 then ZERO
- else if i > 0 then POS (int_to_positive i)
- else NEG (int_to_positive (-i))
-
-let my_ceil x = int_to_Z (succ (int_of_float (floor x)))