module Main(P : Paramod.Paramod with type t = leaf) = struct
- let run ~useage stats goal hypotheses pp_unit_clause name =
+ let run ~useage ~printmsg stats goal hypotheses pp_unit_clause name =
let bag = Terms.empty_bag, 0 in
let bag, g_passives = P.mk_goal bag goal in
let bag, passives =
HExtlib.list_mapi_acc (fun x _ b -> P.mk_passive b x) bag hypotheses
in
- start_msg stats passives g_passives pp_unit_clause name;
+ if printmsg then start_msg stats passives g_passives pp_unit_clause name;
match
P.paramod ~useage
~max_steps:max_int bag ~g_passives:[g_passives] ~passives
data
;;
-let worker order ~useage goal hypotheses =
+let worker order ~useage ~printmsg goal hypotheses =
let stats = compute_stats goal hypotheses in
let module C =
struct
| `NRKBO ->
let module O = Orderings.NRKBO(B) in
let module Main = Main(Paramod.Paramod(O)) in
- Main.run ~useage stats goal hypotheses Pp.pp_unit_clause O.name
+ Main.run ~useage ~printmsg stats goal hypotheses Pp.pp_unit_clause O.name
| `KBO ->
let module O = Orderings.KBO(B) in
let module Main = Main(Paramod.Paramod(O)) in
- Main.run ~useage stats goal hypotheses Pp.pp_unit_clause O.name
+ Main.run ~useage ~printmsg stats goal hypotheses Pp.pp_unit_clause O.name
| `LPO ->
let module O = Orderings.LPO(B) in
let module Main = Main(Paramod.Paramod(O)) in
- Main.run ~useage stats goal hypotheses Pp.pp_unit_clause O.name
+ Main.run ~useage ~printmsg stats goal hypotheses Pp.pp_unit_clause O.name
;;
let print_status p =
let pid = Unix.fork () in
if pid = 0 then (exit (f ())) else pid)
[
- (fun () -> worker `NRKBO ~useage:true goal hypotheses)
+ (fun () -> worker `NRKBO ~useage:true ~printmsg:true goal hypotheses)
;
- (fun () -> worker `KBO ~useage:true goal hypotheses)
+ (fun () -> worker `KBO ~useage:true ~printmsg:false goal hypotheses)
;
- (fun () -> worker `LPO ~useage:true goal hypotheses)
+ (fun () -> worker `LPO ~useage:true ~printmsg:false goal hypotheses)
;
- (fun () -> worker `NRKBO ~useage:false goal hypotheses)
+ (fun () -> worker `NRKBO ~useage:false ~printmsg:false goal hypotheses)
];
let rec aux () =
if List.length !childs = 0 then