src/HOL/Tools/Nitpick/nitpick_util.ML
changeset 53505 412f8c590c6c
parent 53021 d0fa3f446b9d
child 53514 fa5b34ffe4a4
--- a/src/HOL/Tools/Nitpick/nitpick_util.ML	Tue Sep 10 15:56:51 2013 +0200
+++ b/src/HOL/Tools/Nitpick/nitpick_util.ML	Tue Sep 10 15:56:51 2013 +0200
@@ -299,6 +299,11 @@
     if maybe_quote s = s then pretty else Pretty.enum "" "\"" "\"" [pretty]
   end
 
-val hash_term = ATP_Util.hash_term
+fun hashw_term (t1 $ t2) = hashw (hashw_term t1, hashw_term t2)
+  | hashw_term (Const (s, _)) = hashw_string (s, 0w0)
+  | hashw_term (Free (s, _)) = hashw_string (s, 0w0)
+  | hashw_term _ = 0w0
+
+val hash_term = Word.toInt o hashw_term
 
 end;