]> matita.cs.unibo.it Git - helm.git/blobdiff - components/extlib/hExtlib.ml
New version of deep_subsumption
[helm.git] / components / extlib / hExtlib.ml
index 8a0c8cf7d69fb5578d2a851e921d73d5a6546554..bf725122c260e31f0b8c4595e36f9af2833db2fb 100644 (file)
@@ -365,3 +365,7 @@ let raise_localized_exception ~offset floc exn =
    { flocb with Lexing.pos_cnum = x }, { floce with Lexing.pos_cnum = y }
  in
   raise (Localized (floc, exn))
+
+let estimate_size x = 
+  4 * (String.length (Marshal.to_string x [])) / 1024
+