X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Ftactics%2Fcontinuationals.ml;h=183e8cabf8899e146be6d7ad929fe4107ee85a28;hb=af805d8cb199ea2c532983e29b064cf9861454f4;hp=d90e100194538c483397485d061c908e3f6170ec;hpb=c175c78b4fd9d0bac50669e9954acf68d50014e7;p=helm.git diff --git a/helm/software/components/tactics/continuationals.ml b/helm/software/components/tactics/continuationals.ml index d90e10019..183e8cabf 100644 --- a/helm/software/components/tactics/continuationals.ml +++ b/helm/software/components/tactics/continuationals.ml @@ -72,7 +72,8 @@ struct let is_open = function _, Open _ -> true | _ -> false let close = function n, Open g -> n, Closed g | l -> l let filter_open = List.filter is_open - let is_fresh = function n, Open _ when n > 0 -> true | _ -> false + let is_fresh = + function n, Open _ when n > 0 -> true | _,Closed _ -> true | _ -> false let goal_of_loc = function _, Open g | _, Closed g -> g let goal_of_switch = function Open g | Closed g -> g let switch_of_loc = snd @@ -116,6 +117,10 @@ struct let of_metasenv metasenv = let goals = List.map (fun (g, _, _) -> g) metasenv in [ zero_pos goals, [], [], `NoTag ] + + let of_nmetasenv metasenv = + let goals = List.map (fun (g, _) -> g) metasenv in + [ zero_pos goals, [], [], `NoTag ] let head_switches = function