diff src/especialize.sml @ 802:ef6de4075dc1

Fix a Core_untangle bug that missed closure variable references; XHTMLize
author Adam Chlipala <adamc@hcoop.net>
date Sat, 16 May 2009 12:41:33 -0400
parents e92cfac1608f
children 066493f7f008
line wrap: on
line diff
--- a/src/especialize.sml	Thu May 14 18:13:09 2009 -0400
+++ b/src/especialize.sml	Sat May 16 12:41:33 2009 -0400
@@ -348,7 +348,8 @@
                                    (DValRec vis', _) => [(DValRec (vis @ vis'), ErrorMsg.dummySpan)]
                                  | _ => [(DValRec vis, ErrorMsg.dummySpan), d'])
             in
-                (*Print.prefaces "doDecl" [("d", CorePrint.p_decl E.empty d)];*)
+                (*Print.prefaces "doDecl" [("d", CorePrint.p_decl E.empty d),
+                                         ("d'", CorePrint.p_decl E.empty d')];*)
                 (ds, ({maxName = #maxName st,
                        funcs = funcs,
                        decls = []}, changed))
@@ -378,7 +379,9 @@
         if changed then
             let
                 (*val file = ReduceLocal.reduce file*)
+                (*val () = Print.prefaces "Pre-untangle" [("file", CorePrint.p_file CoreEnv.empty file)]*)
                 val file = CoreUntangle.untangle file
+                (*val () = Print.prefaces "Post-untangle" [("file", CorePrint.p_file CoreEnv.empty file)]*)
                 val file = Shake.shake file
             in
                 (*print "Again!\n";*)