tune KBO weight code
authorblanchet
Thu, 09 Feb 2012 16:00:04 +0100
changeset 46446 45ff234921a3
parent 46445 ef9d534e9119
child 46447 f37da60a8cc6
child 46456 a1c7b842ff8b
tune KBO weight code
src/HOL/Tools/ATP/atp_problem_generate.ML
--- a/src/HOL/Tools/ATP/atp_problem_generate.ML	Thu Feb 09 14:42:18 2012 +0100
+++ b/src/HOL/Tools/ATP/atp_problem_generate.ML	Thu Feb 09 16:00:04 2012 +0100
@@ -2703,9 +2703,6 @@
     |> sort (prod_ord Real.compare string_ord o pairself swap)
   end
 
-val use_topo_for_kbo = false (* experimental *)
-val default_kbo_weight = 1
-
 fun have_head_rolling (ATerm (s, args)) =
     (* ugly hack: may make innocent victims *)
     if String.isPrefix app_op_name s andalso length args = 2 then
@@ -2745,14 +2742,7 @@
         #> add_weights (next_weight weight)
                (fold (union (op =) o Graph.immediate_succs graph) syms [])
   in
-    if use_topo_for_kbo then
-      let val topo = graph |> Graph.topological_order in
-        topo ~~ (1 upto length topo)
-      end
-    else
-      [] |> add_weights 1 (Graph.minimals graph)
-         |> sort (int_ord o pairself snd)
+    [] |> add_weights 1 (Graph.minimals graph) |> sort (int_ord o pairself snd)
   end
-  |> filter_out (fn (_, weight) => weight = default_kbo_weight)
 
 end;