]> matita.cs.unibo.it Git - helm.git/commitdiff
More effective optimization: avoid introducing already implied arcs.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Sun, 18 May 2008 07:25:38 +0000 (07:25 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Sun, 18 May 2008 07:25:38 +0000 (07:25 +0000)
helm/software/components/ng_kernel/nCicEnvironment.ml

index 8f76f4a0f25628c0947617d0144091e871cdd7e3..fa229d6f6752b5e82948af0d89f00041891c7193 100644 (file)
@@ -43,7 +43,7 @@ let universe_eq a b = universe_leq b a || universe_leq a b
 let add_le_constraint strict a b = 
   match a,b with
   | [false,a2],[false,b2] -> 
-      if not (NUri.eq a2 b2) then (
+      if not (le_path_uri [] strict a2 b2) then (
         if le_path_uri [] (not strict) b2 a2 then
          (raise (BadConstraint (lazy "universe inconsistency")));
         le_constraints := (strict,a2,b2) :: !le_constraints)