]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: nodes were copied.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 29 Jul 2010 15:27:13 +0000 (15:27 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 29 Jul 2010 15:27:13 +0000 (15:27 +0000)
helm/software/components/disambiguation/disambiguate.ml

index d0d7460a6b7a00902515510c5157e76ba7ba54c1..5b5b53f52cd8a3b73edc64f35c7cb7670645157a 100644 (file)
@@ -453,10 +453,11 @@ let disambiguate_thing
      let rec aux (aliases,acc) = function 
        | [] -> aliases, acc
        | (Node (_, item,extra) as node) :: tl -> 
-           let tl = tl @ extra in
            let choices = lookup_choices item in
            if List.length choices <> 1 then aux (aliases, acc@[node]) tl
-           else if Environment.mem item aliases then aux (aliases, acc) tl
+           else
+           let tl = tl @ extra in
+           if Environment.mem item aliases then aux (aliases, acc) tl
            else aux (Environment.add item (List.hd choices) aliases, acc) tl
      in
        aux (aliases,[]) todo_dom