# HG changeset patch # User webertj # Date 1073914507 -3600 # Node ID cd3ef10d02be19cf5f45e60e11cda636fe7f4380 # Parent 41b32020d0b30719d19078ea477696c7cedf68ef Fixed compatibility issues with SML/NJ: - replaced '(op *)' by 'op*' - replaced 'LargeInt' by 'Int' diff -r 41b32020d0b3 -r cd3ef10d02be src/HOL/Tools/refute.ML --- a/src/HOL/Tools/refute.ML Sat Jan 10 13:35:10 2004 +0100 +++ b/src/HOL/Tools/refute.ML Mon Jan 12 14:35:07 2004 +0100 @@ -51,7 +51,7 @@ val prep_ext = I; val merge = fn (symTable1, symTable2) => - (Symtab.merge (op =) (symTable1, symTable2)); + (Symtab.merge (op=) (symTable1, symTable2)); fun print sg symTable = writeln ("'refute', default parameters:\n" ^ @@ -493,7 +493,7 @@ None (* string -> int list *) fun string_to_int_list s = - mapfilter (option o LargeInt.fromString) (space_explode " " s) + mapfilter (option o Int.fromString) (space_explode " " s) (* string -> string -> bool *) fun is_substring s1 s2 = let @@ -717,7 +717,7 @@ (* int list -> int *) - fun sum xs = foldl (op +) (0, xs); + fun sum xs = foldl op+ (0, xs); (* ------------------------------------------------------------------------- *) (* product: computes the product of a list of integers; product [] = 1 *) @@ -725,7 +725,7 @@ (* int list -> int *) - fun product xs = foldl (op *) (1, xs); + fun product xs = foldl op* (1, xs); (* ------------------------------------------------------------------------- *) (* power: power(a,b) computes a^b, for a>=0, b>=0 *) @@ -1507,7 +1507,7 @@ (* (string * string) list * string -> int *) fun read_int (parms, name) = case assoc_string (parms, name) of - Some s => (case LargeInt.fromString s of + Some s => (case Int.fromString s of SOME i => i | NONE => error ("parameter '" ^ name ^ "' (value is '" ^ s ^ "') must be an integer value")) | None => error ("parameter '" ^ name ^ "' must be assigned a value")