X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=ocaml%2Ftest.ml;h=93240b9c867f897050b11bb3805c6cbb7f6a941d;hb=08d2b663e5089ed046ef771bfb2555a31e525f1c;hp=2f6017a58660319ac75e6a668c1a10ae9b939af4;hpb=e4aa4a66dd0a4946607245a0f43eab803f2770c4;p=fireball-separation.git diff --git a/ocaml/test.ml b/ocaml/test.ml index 2f6017a..93240b9 100644 --- a/ocaml/test.ml +++ b/ocaml/test.ml @@ -1,12 +1,4 @@ -let three = Array.length Sys.argv = 1;; - -let discriminator = - if three - then (module Lambda3 : Discriminator.Discriminator) - else (module Lambda4);; - -module Pippo = (val discriminator);; -open Pippo;; +open Lambda4;; let acaso l = let n = Random.int (List.length l) in @@ -59,11 +51,11 @@ let rec repeat f n = if n > 0 then repeat f (n-1) ;; -let call_main3 tms = +(* let call_main3 tms = let _ = ( List.iter prerr_endline tms; prerr_newline (); ) in Lambda3.main [Lambda3.magic tms ["*"]] -;; +;; *) let call_main4 div convs nums = let _ = ( (match div with Some div -> prerr_endline ("DIV: " ^ div) | None -> ()); @@ -81,11 +73,12 @@ let main = (* let open Parser in *) - if three then repeat (fun _ -> + (* if three then repeat (fun _ -> let tms = test3 complex vars in call_main3 tms ) num - else repeat (fun _ -> + else *) + repeat (fun _ -> let div, (conv, nums) = test4 complex vars in call_main4 (Some div) conv nums ) num