diff src/expl_util.sml @ 188:8e9f97508f0d

Datatype representation optimization
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 19:49:21 -0400
parents d11754ffe252
children aa54250f58ac
line wrap: on
line diff
--- a/src/expl_util.sml	Sun Aug 03 19:01:16 2008 -0400
+++ b/src/expl_util.sml	Sun Aug 03 19:49:21 2008 -0400
@@ -29,6 +29,12 @@
 
 open Expl
 
+fun classifyDatatype xncs =
+    if List.all (fn (_, _, NONE) => true | _ => false) xncs then
+        Enum
+    else
+        Default
+
 structure S = Search
 
 structure Kind = struct