]> matita.cs.unibo.it Git - helm.git/commitdiff
...
authorEnrico Tassi <enrico.tassi@inria.fr>
Thu, 9 Jul 2009 08:29:16 +0000 (08:29 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Thu, 9 Jul 2009 08:29:16 +0000 (08:29 +0000)
helm/software/components/binaries/matitaprover/run_on_a_list.sh
helm/software/components/binaries/matitaprover/sum_up.awk [new file with mode: 0644]

index c80e128e218c2aec2cd952be1c189d984d4c5842..b62aa8974b19661618a6a1fe76c99bfd8c1de914 100755 (executable)
@@ -8,7 +8,7 @@ fi
 > log
 for PROBLEM in `cat $2`; do
   echo running on $PROBLEM
-  ./matitaprover.native --timeout $1 --tptppath ~/TPTP-v3.7.0/ $PROBLEM \
+  ./matitaprover.native --timeout $1 --tptppath TPTP-v3.7.0/ $PROBLEM \
     >> log 2>&1
   echo So far `grep 'SZS status Unsatisfiable' log|wc -l` solved
 done
diff --git a/helm/software/components/binaries/matitaprover/sum_up.awk b/helm/software/components/binaries/matitaprover/sum_up.awk
new file mode 100644 (file)
index 0000000..d40fea6
--- /dev/null
@@ -0,0 +1,16 @@
+function process(name,calls,time) {
+  if (! name in data_calls ) {
+    data_calls[name] = 0;  
+    data_time[name] = 0;  
+  }
+  data_calls[name] = data_calls[name] + calls;
+  data_time[name] = data_time[name] + time;
+}
+# ---------------------------------------------- 
+($1 == "!!") { process($2,$3,$4); }
+END {
+  printf "%40s %10s %s\n", "name", "calls", "time";
+  for (i in data_time) {
+    printf "%40s %10d %03.3f %.8f\n", i, data_calls[i], data_time[i],  data_time[i]/ data_calls[i];
+  }  
+}