Sup.infer_right bag maxvar current actives
in
debug "Demodulating goals with actives...";
- debug ("Current : " ^ (Pp.pp_unit_clause current));
- debug ("Active goal : " ^ (Pp.pp_unit_clause (List.hd g_actives)));
(* keep goals demodulated w.r.t. actives and check if solved *)
let bag, g_actives =
List.fold_left
bag, c::acc)
(bag,[]) g_actives
in
- debug (Pp.pp_unit_clause current);
- debug (Pp.pp_unit_clause (List.hd g_actives));
let ctable = IDX.index_unit_clause IDX.DT.empty current in
let bag, maxvar, new_goals =
List.fold_left
PassiveSet.empty new_clauses in
let new_goals = List.fold_left add_passive_clause
PassiveSet.empty new_goals in
- debug (string_of_int (PassiveSet.cardinal new_goals));
- debug (string_of_int (PassiveSet.cardinal g_passives));
bag, maxvar, actives,
PassiveSet.union new_clauses passives, g_actives,
PassiveSet.union new_goals g_passives
let metasenv,i,_,_=NCicMetaSubst.mk_meta metasenv context `Term in
metasenv, NCic.Meta (i,(k,NCic.Irl (List.length context)))
| t -> NCicUntrusted.map_term_fold_a
- (fun _ k -> k+1) k aux metasenv t
+ (fun _ k -> k+1) k aux metasenv t
in
aux 0 metasenv proofterm
in
metasenv subst context proofterm None
in
proofterm, metasenv, subst
- | Failure _ -> prerr_endline
+ | Failure s ->
+ prerr_endline s;
+ prerr_endline
(Printf.sprintf "FAILURE in %d iterations" !nb_iter); assert false
;;