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: 0.4.95@7852~680 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=4322dbc610348eb5af8ba10dc2131596387854c2;p=helm.git add_moo_content does not add a coercion statement twice --- diff --git a/components/grafite_engine/grafiteTypes.ml b/components/grafite_engine/grafiteTypes.ml index 80efca87a..43d8e7f17 100644 --- a/components/grafite_engine/grafiteTypes.ml +++ b/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)