X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2FnCicParamod.ml;h=79ea569a2927a82af9c6d2c828a8fe92d23de55d;hb=57e9e88aa1340997956b1e96ce7d470417a21412;hp=6c1aa695ee231f91692a89d46ca9accefb1e09e8;hpb=f49a2aa0634549cc4fb44067225514ba7de46fec;p=helm.git diff --git a/helm/software/components/ng_paramodulation/nCicParamod.ml b/helm/software/components/ng_paramodulation/nCicParamod.ml index 6c1aa695e..79ea569a2 100644 --- a/helm/software/components/ng_paramodulation/nCicParamod.ml +++ b/helm/software/components/ng_paramodulation/nCicParamod.ml @@ -25,17 +25,19 @@ let nparamod rdb metasenv subst context t table = in let module P = Paramod.Paramod(B) in let module Pp = Pp.Pp(B) in - let bag, maxvar = Terms.M.empty, 0 in + let bag, maxvar = Terms.empty_bag, 0 in let (bag,maxvar), passives = HExtlib.list_mapi_acc (fun x _ a -> P.mk_passive a x) (bag,maxvar) table in let (bag,maxvar), goals = HExtlib.list_mapi_acc (fun x _ a -> P.mk_goal a x) (bag,maxvar) [t] in - let solutions = + match P.paramod ~max_steps:max_int ~timeout:(Unix.gettimeofday () +. 300.0) ~g_passives:goals ~passives (bag,maxvar) - in + with + | P.Error _ | P.GaveUp | P.Timeout _ -> [] + | P.Unsatisfiable solutions -> List.map (fun (bag,i,l) -> (* List.iter (fun x ->