let get_candidates ?env mode tree term =
let s =
match mode with
- | Matching -> Index.retrieve_generalizations tree term
- | Unification -> Index.retrieve_unifiables tree term
+ | Matching ->
+ let _ = <:start<retrieve_generalizations>> in
+ <:stop<retrieve_generalizations
+ Index.retrieve_generalizations tree term
+ >>
+ | Unification ->
+ let _ = <:start<retrieve_unifiables>> in
+ <:stop<retrieve_unifiables
+ Index.retrieve_unifiables tree term
+ >>
+
in
Index.PosEqSet.elements s
;;
(fun acc goal ->
match simplify_goal env goal ~passive active with
| _, g -> if find g acc then acc else g::acc)
- active_goals active_goals
+ (* active_goals active_goals *)
+ [] active_goals
in
if List.length active_goals <> List.length simplified then
prerr_endline "SEMPLIFICANDO HO SCARTATO...";
(ParamodulationFailure "No more time to spend")
else
let _ = prerr_endline "simpl goal with active" in
+ let _ = <:start<simplify goal set active>> in
let goals = simplify_goal_set env goals passive active in
+ let _ = <:stop<simplify goal set active>> in
match check_if_goals_set_is_solved env active goals with
| Some p ->
prerr_endline
prerr_endline "simpl goal with new";
let goals =
let a,b,_ = build_table new' in
+ let _ = <:start<simplify_goal_set new>> in
+ <:stop<simplify_goal_set new
simplify_goal_set env goals passive (a,b)
+ >>
in
let passive = add_to_passive passive new' in
step goals theorems passive active (iterno+1)