aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/especialize.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-21 11:45:04 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-21 11:45:04 -0400
commit32f6bd8f1bcf65a5db96160d63ef2050c9eb5e52 (patch)
tree502ef8ac60b6ab054bea740f53ef75ae77f0c66e /src/especialize.sml
parentc53470daa7b350ac8545d8934cedbcb1aae49bd0 (diff)
Change List.mapM' to avoid leaving functions around
Diffstat (limited to 'src/especialize.sml')
-rw-r--r--src/especialize.sml9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/especialize.sml b/src/especialize.sml
index 9504a0be..e2bbeb9d 100644
--- a/src/especialize.sml
+++ b/src/especialize.sml
@@ -205,7 +205,10 @@ fun specialize' file =
[("e'", CorePrint.p_exp CoreEnv.empty e)];*)
(#1 e, st)
end
- | (_, true) => (e, st)
+ | (_, true) => ((*Print.prefaces ("No(" ^ name ^ ")")
+ [("fxs'",
+ Print.p_list (CorePrint.p_exp CoreEnv.empty) fxs')];*)
+ (e, st))
| (NONE, false) =>
let
(*val () = Print.prefaces "New one"
@@ -213,6 +216,10 @@ fun specialize' file =
("mns", Print.p_list Print.PD.string
(SS.listItems (!mayNotSpec)))]*)
+ (*val () = Print.prefaces ("Yes(" ^ name ^ ")")
+ [("fxs'",
+ Print.p_list (CorePrint.p_exp CoreEnv.empty) fxs')]*)
+
fun subBody (body, typ, fxs') =
case (#1 body, #1 typ, fxs') of
(_, _, []) => SOME (body, typ)