]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/mQueryInterpreter.ml
ocaml 3.09 transition
[helm.git] / helm / ocaml / mathql_interpreter / mQueryInterpreter.ml
index 8a3a3b3cf5d9535615ccfec5c36546d575d6842b..453b1643ce7fec85eef7483312848fde097f0298 100644 (file)
@@ -133,7 +133,7 @@ let execute h x =
            let t = P.start_time () in
            P.text_of_query (C.log h) "\n" x;
            let s = P.stop_time t in
-           if C.set h C.Stat then 
+           if C.set h C.Times then 
               C.log h (Printf.sprintf "Log source: %s\n" s);
            eval_query c x
         end else begin
@@ -141,7 +141,7 @@ let execute h x =
            let t = P.start_time () in
            P.text_of_result (C.log h) "\n" s; 
            let r = P.stop_time t in
-           if C.set h C.Stat then 
+           if C.set h C.Times then 
               C.log h (Printf.sprintf "Log: %s\n" r);
            s
         end
@@ -196,7 +196,7 @@ let execute h x =
         let t = P.start_time () in
         let r = MQIProperty.exec h q1 subj cons_true cons_false exp in 
         let s = P.stop_time t in
-         if C.set h C.Stat then 
+         if C.set h C.Times then 
            C.log h (Printf.sprintf "Property: %s,%i\n" s (List.length r));
         r 
       | M.StatQuery x ->
@@ -237,8 +237,9 @@ let execute h x =
    let t = P.start_time () in   
    if C.set h C.Source then P.text_of_query (C.log h) "\n" x;
    let r = eval_query c x in
+   if C.set h C.Result then P.text_of_result (C.log h) "\n" r;
    let s = P.stop_time t in
-   if C.set h C.Stat then 
+   if C.set h C.Times then 
       C.log h (Printf.sprintf "MQIExecute: %s,%s\n" s 
          (C.string_of_flags (C.flags h)));
    r