((*prerr_endline ("Filtering: " ^
Pp.pp_foterm side ^ " =(< || =)" ^
Pp.pp_foterm newside ^ " coming from " ^
- Pp.pp_unit_clause uc );*)None)
+ Pp.pp_unit_clause uc );*)
+ debug (lazy "not applied");None)
else
Some (newside, subst, id, dir)
- with FoUnif.UnificationFailure _ -> None)
+ with FoUnif.UnificationFailure _ ->
+ debug (lazy "not applied"); None)
(IDX.ClauseSet.elements cands)
;;
;;
let rec demodulate bag (id, literal, vl, pr) table =
- debug (lazy "demodulate...");
+ debug (lazy ("demodulate " ^ (string_of_int id)));
match literal with
| Terms.Predicate t -> assert false
| Terms.Equation (l,r,ty,_) ->
bag, maxvar, newc @ acc)
(bag, maxvar, []) alist
in
+ debug
+ (lazy
+ ("New clauses :" ^ (String.concat ";\n"
+ (List.map Pp.pp_unit_clause new_clauses))));
debug (lazy "First superpositions");
(* We add current to active clauses so that it can be *
* superposed with itself *)