]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/paramodulation/saturate_main.ml
some fixes
[helm.git] / helm / ocaml / paramodulation / saturate_main.ml
index 6d3c9966c03db99804e3f89b44a933e5c30c7c5c..a2a4e1f079e6957bd3074d82ac7813175d07e631 100644 (file)
@@ -20,8 +20,12 @@ let _ =
   let set_ratio v = S.weight_age_ratio := (v+1); S.weight_age_counter := (v+1)
   and set_sel v = S.symbols_ratio := v; S.symbols_counter := v;
   and set_conf f = configuration_file := f
-  and set_lpo () = Utils.compare_terms := Utils.lpo
-  and set_kbo () = Utils.compare_terms := Utils.nonrec_kbo
+  and set_ordering o =
+    match o with
+    | "lpo" -> Utils.compare_terms := Utils.lpo
+    | "kbo" -> Utils.compare_terms := Utils.kbo
+    | "nr-kbo" -> Utils.compare_terms := Utils.nonrec_kbo
+    | o -> raise (Arg.Bad ("Unknown term ordering: " ^ o))
   and set_fullred b = S.use_fullred := b
   and set_time_limit v = S.time_limit := float_of_int v
   in
@@ -29,18 +33,20 @@ let _ =
     "-f", Arg.Bool set_fullred,
     "Enable/disable full-reduction strategy (default: enabled)";
     
-    "-r", Arg.Int set_ratio, "Weight-Age equality selection ratio (default: 3)";
+    "-r", Arg.Int set_ratio, "Weight-Age equality selection ratio (default: 4)";
 
     "-s", Arg.Int set_sel,
-    "symbols-based selection ratio (relative to the weight ratio, default: 2)";
+    "symbols-based selection ratio (relative to the weight ratio, default: 0)";
 
     "-c", Arg.String set_conf, "Configuration file (for the db connection)";
 
-    "-lpo", Arg.Unit set_lpo, "Use lpo term ordering";
+    "-o", Arg.String set_ordering,
+    "Term ordering. Possible values are:\n" ^
+      "\tkbo: Knuth-Bendix ordering (default)\n" ^
+      "\tnr-kbo: Non-recursive variant of kbo\n" ^
+      "\tlpo: Lexicographic path ordering";
 
-    "-kbo", Arg.Unit set_kbo, "Use (non-recursive) kbo term ordering (default)";
-
-    "-l", Arg.Int set_time_limit, "Time limit (in seconds)";
+    "-l", Arg.Int set_time_limit, "Time limit in seconds (default: no limit)";
   ] (fun a -> ()) "Usage:"
 in
 Helm_registry.load_from !configuration_file;