src/HOL/ex/svc_funcs.ML
changeset 24630 351a308ab58d
parent 24584 01e83ffa6c54
child 26229 116d3cfc0d89
--- a/src/HOL/ex/svc_funcs.ML	Tue Sep 18 11:06:22 2007 +0200
+++ b/src/HOL/ex/svc_funcs.ML	Tue Sep 18 16:08:00 2007 +0200
@@ -27,12 +27,8 @@
    | UnInterp of string * expr list
    | FalseExpr
    | TrueExpr
-   | Int of IntInf.int
-   | Rat of IntInf.int * IntInf.int;
-
- fun signedInt i =
-     if i < 0 then "-" ^ IntInf.toString (~i)
-     else IntInf.toString i;
+   | Int of int
+   | Rat of int * int;
 
  fun is_intnat T = T = HOLogic.intT orelse T = HOLogic.natT;
 
@@ -49,8 +45,8 @@
              "(" ^ s ^ (Library.foldl (fn (a, b) => a ^ " " ^ (ue b)) ("", l)) ^ ") "
            | ue (FalseExpr) = "FALSE "
            | ue (TrueExpr)  = "TRUE "
-           | ue (Int i)     = (signedInt i) ^ " "
-           | ue (Rat(i, j)) = (signedInt i) ^ "|" ^ (signedInt j) ^ " "
+           | ue (Int i)     = signed_string_of_int i ^ " "
+           | ue (Rat(i, j)) = signed_string_of_int i ^ "|" ^ signed_string_of_int j ^ " "
      in
          ue t
      end;