debug_print ~depth
(lazy ("smart candidates: " ^
string_of_int (List.length smart_candidates)));
-(*
+ (*
let sm = 0 in
let smart_candidates = [] in *)
let sm = if is_eq then 0 else 2 in
status#set_stack gstatus
;;
-let open_goals level status =
+let open_goals level status =
let rec aux level gs =
if level = 0 then []
else match gs with
| [] -> assert false
- | _ :: s -> head_goals gs @ aux (level-1) s
+ | (g, _, _, _) :: s ->
+ let is_open = function
+ | (_,Continuationals.Stack.Open i) -> Some i
+ | (_,Continuationals.Stack.Closed _) -> None
+ in
+ HExtlib.filter_map is_open g @ aux (level-1) s
in
aux level status#stack
;;