X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_unification%2FcoercGraph.ml;h=d99fc6f798f67f72ccbee796adc50b8bd0db1474;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=b3bc8d8b0e7ba5b94284102bfc4a68c9db1941bb;hpb=fa40e1051d879aac77bd576d4a71d937a8d029a9;p=helm.git diff --git a/helm/ocaml/cic_unification/coercGraph.ml b/helm/ocaml/cic_unification/coercGraph.ml index b3bc8d8b0..d99fc6f79 100644 --- a/helm/ocaml/cic_unification/coercGraph.ml +++ b/helm/ocaml/cic_unification/coercGraph.ml @@ -43,10 +43,23 @@ let look_for_coercion src tgt = (fun (s,t) -> CoercDb.eq_carr s src && CoercDb.eq_carr t tgt) in match l with - | [] -> debug_print (lazy ":( coercion non trovata"); NoCoercion + | [] -> + debug_print + (lazy + (sprintf ":-( coercion non trovata da %s a %s" + (CoercDb.name_of_carr src) + (CoercDb.name_of_carr tgt))); + NoCoercion + | [u] -> + debug_print (lazy ( + sprintf ":-) TROVATA 1 coercion da %s a %s: %s" + (CoercDb.name_of_carr src) + (CoercDb.name_of_carr tgt) + (UriManager.name_of_uri u))); + SomeCoercion (CicUtil.term_of_uri u) | u::_ -> debug_print (lazy ( - sprintf ":) TROVATE %d coercion(s) da %s a %s, prendo la prima: %s" + sprintf ":-/ TROVATE %d coercion(s) da %s a %s, prendo la prima: %s" (List.length l) (CoercDb.name_of_carr src) (CoercDb.name_of_carr tgt)