4: > 657 >9
5: > 526 >8
6: > 529 >8
- 7:
+ 7: > 529 >8
+ 8: > 529 >8
*)
type t = M | I | C
;;
let string_of_w w =
- String.concat ""
- (List.map (function I -> "i" | C -> "c" | M -> "-") w)
+ let s =
+ String.concat ""
+ (List.map (function I -> "i" | C -> "c" | M -> "-") w)
+ in
+ if s = "" then "." else s
;;
let string_of_w' w =
- String.concat ""
- (List.map (function I -> "i" | C -> "c" | M -> "m") w)
+ let s =
+ String.concat ""
+ (List.map (function I -> "i" | C -> "c" | M -> "m") w)
+ in
+ if s = "" then "E" else s
;;
-let string_of_eqclass l =
- let s = String.concat "=" (List.map string_of_w l) in
- if s = "" then "." else s
-;;
+let string_of_eqclass l = String.concat "=" (List.map string_of_w l);;
-let name_of_eqclass l =
- let s = String.concat "_" (List.map string_of_w' l) in
- if s = "" then "E" else s
-;;
+let name_of_eqclass l = String.concat "_" (List.map string_of_w' l);;
exception NoMatch;;
(List.map
(function w ->
List.map (fun x -> x@w)
- (if List.length (List.filter (fun w -> w = M) w) >= 7 then
+ (if List.length (List.filter (fun w -> w = M) w) >= 1 then
[[I];[C]]
else
[[I];[C];[M]])
else
analyze pkg
in
- iter 8 [[]] []
+ iter 7 [[]] []
;;