]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: the diff component of the exception raised when the term cannot
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 18 Oct 2006 14:13:25 +0000 (14:13 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 18 Oct 2006 14:13:25 +0000 (14:13 +0000)
be disambiguated used to lack the last choice in case of the look-ahead
optimization.

components/cic_disambiguation/disambiguate.ml

index bfeb65d37ea2d39888abb3303026ead0ad5d62e7..352b043a4df4704ff8d6b288efbfca16ac77e418 100644 (file)
@@ -986,11 +986,11 @@ in refine_profiler.HExtlib.profile foo ()
                             remaining_dom new_univ)
                     | Uncertain (loc,msg),new_univ ->
                         (match remaining_dom with
-                        | [] -> [], [diff,loc,msg]
+                        | [] -> [], [new_diff,loc,msg]
                         | _ ->
                            aux new_env new_diff lookup_in_todo_dom
                             remaining_dom new_univ)
-                    | Ko (loc,msg),_ -> [], [diff,loc,msg])
+                    | Ko (loc,msg),_ -> [], [new_diff,loc,msg])
              | _::_ ->
                let rec filter univ = function 
                 | [] -> [],[]
@@ -1007,11 +1007,11 @@ in refine_profiler.HExtlib.profile foo ()
                           filter univ tl
                     | Uncertain (loc,msg),new_univ ->
                         (match remaining_dom with
-                        | [] -> [],[diff,loc,msg]
+                        | [] -> [],[new_diff,loc,msg]
                         | _ -> aux new_env new_diff None remaining_dom new_univ
                         ) @@ 
                           filter univ tl
-                    | Ko (loc,msg),_ -> ([],[diff,loc,msg]) @@ filter univ tl)
+                    | Ko (loc,msg),_ -> ([],[new_diff,loc,msg]) @@ filter univ tl)
                in
                 filter base_univ choices
       in