]> matita.cs.unibo.it Git - helm.git/commitdiff
Since the introduction of saturation, an assert false is now possible
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 14 Aug 2009 15:45:44 +0000 (15:45 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 14 Aug 2009 15:45:44 +0000 (15:45 +0000)
(i.e. locked meta vs non flexible term since some saturations have not been
fully performed yet)

helm/software/components/ng_refiner/nCicUnification.ml

index b7141398465eb08afe6d453f690782dfd64dc1ad..fc6eea759313223b30c57a7b6215470ea12c24d5 100644 (file)
@@ -359,7 +359,9 @@ and unify rdb test_eq_only metasenv subst context t1 t2 =
                     (C.Meta (i,l)) lambda_Mj,
                    i
               | NCic.Meta (i,_) -> (metasenv, subst), i
-              | _ -> prerr_endline ("XXX: " ^ NCicPp.ppterm ~metasenv ~subst ~context (NCicReduction.whd ~subst context t1)); assert false
+              | _ ->
+                 raise (UnificationFailure (lazy "Locked term vs non
+                  flexible term; probably not saturated enough yet!"))
              in
               let t1 = NCicReduction.whd ~subst context t1 in
               let j, lj =