diverge (mk "") 0
;;
+exception Stop;;
let close_graph name t s d to_s from_d p a status =
let c =
let pos =
match p with
| NCic.Meta (p,_) -> pos_in_list p (List.map fst metasenv)
- | t -> assert false
+ | t -> raise Stop
in
let ty = NCicTypeChecker.typeof ~metasenv:[] ~subst:[] [] bo in
let src,tgt = src_tgt_of_ty_cpos_arity ty pos arity in
with
| NCicTypeChecker.TypeCheckerFailure _
| NCicUnification.UnificationFailure _
- | NCicUnification.Uncertain _ -> None
+ | NCicUnification.Uncertain _ | Stop -> None
) composites
in
composites