From 7f9e313fe5ae4200f080f481a6b8b795a0618093 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Thu, 9 Jul 2009 08:29:16 +0000 Subject: [PATCH] ... --- .../binaries/matitaprover/run_on_a_list.sh | 2 +- .../components/binaries/matitaprover/sum_up.awk | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 helm/software/components/binaries/matitaprover/sum_up.awk diff --git a/helm/software/components/binaries/matitaprover/run_on_a_list.sh b/helm/software/components/binaries/matitaprover/run_on_a_list.sh index c80e128e2..b62aa8974 100755 --- a/helm/software/components/binaries/matitaprover/run_on_a_list.sh +++ b/helm/software/components/binaries/matitaprover/run_on_a_list.sh @@ -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 index 000000000..d40fea6a3 --- /dev/null +++ b/helm/software/components/binaries/matitaprover/sum_up.awk @@ -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]; + } +} -- 2.39.2