From: Stefano Zacchiroli Date: Thu, 22 Jan 2004 12:29:48 +0000 (+0000) Subject: use "assert false" where needed X-Git-Tag: V_0_5_1_4~16 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=e56b03bebff0a107ba82dbf078c75c5266175adb;p=helm.git use "assert false" where needed --- diff --git a/helm/ocaml/cic_proof_checking/cicReductionMachine.ml b/helm/ocaml/cic_proof_checking/cicReductionMachine.ml index 61e7aaaef..44630ec51 100644 --- a/helm/ocaml/cic_proof_checking/cicReductionMachine.ml +++ b/helm/ocaml/cic_proof_checking/cicReductionMachine.ml @@ -23,6 +23,8 @@ * http://cs.unibo.it/helm/. *) +(* TODO unify exceptions *) + exception CicReductionInternalError;; exception WrongUriToInductiveDefinition;; exception Impossible of int;; @@ -558,7 +560,7 @@ if List.mem uri params then prerr_endline "---- OK2" ; | (k, e, ens, (C.LetIn (_,m,t) as t'), s) -> let m' = RS.compute_to_env ~reduce ~unwind k e ens m in reduce (k+1, m'::e, ens, t, s) - | (_, _, _, C.Appl [], _) -> raise (Impossible 1) + | (_, _, _, C.Appl [], _) -> assert false | (k, e, ens, C.Appl (he::tl), s) -> let tl' = List.map @@ -879,7 +881,7 @@ let are_convertible = fl1 fl2 true | (C.Cast _, _) | (_, C.Cast _) | (C.Implicit, _) | (_, C.Implicit) -> - raise (Impossible 3) (* we don't trust our whd ;-) *) + assert false | (_,_) -> false end in