From e56b03bebff0a107ba82dbf078c75c5266175adb Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 22 Jan 2004 12:29:48 +0000 Subject: [PATCH] use "assert false" where needed --- helm/ocaml/cic_proof_checking/cicReductionMachine.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.2