From: Enrico Tassi Date: Fri, 5 Jan 2007 11:37:25 +0000 (+0000) Subject: add_moo_content does not add a coercion statement twice X-Git-Tag: make_still_working~6539 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=8b816e7ec4cf390470d9b918739220156f9e22db;p=helm.git add_moo_content does not add a coercion statement twice --- diff --git a/helm/software/components/grafite_engine/grafiteTypes.ml b/helm/software/components/grafite_engine/grafiteTypes.ml index 80efca87a..43d8e7f17 100644 --- a/helm/software/components/grafite_engine/grafiteTypes.ml +++ b/helm/software/components/grafite_engine/grafiteTypes.ml @@ -125,7 +125,8 @@ let add_moo_content cmds status = (* prerr_endline ("adding to moo command: " ^ GrafiteAstPp.pp_command cmd); *) match cmd with | GrafiteAst.Default _ - | GrafiteAst.Index _ -> + | GrafiteAst.Index _ + | GrafiteAst.Coercion _ -> if List.mem cmd content then acc else cmd :: acc | _ -> cmd :: acc)