]> matita.cs.unibo.it Git - helm.git/commitdiff
an easy for loop
authorAndrea Asperti <andrea.asperti@unibo.it>
Fri, 26 Jun 2009 12:01:01 +0000 (12:01 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Fri, 26 Jun 2009 12:01:01 +0000 (12:01 +0000)
helm/software/components/binaries/matitaprover/run_on_a_list.sh [new file with mode: 0755]

diff --git a/helm/software/components/binaries/matitaprover/run_on_a_list.sh b/helm/software/components/binaries/matitaprover/run_on_a_list.sh
new file mode 100755 (executable)
index 0000000..dbcd656
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+if [ -z "$1" ] || [ -z "$2" ]; then
+  echo usage: $0 timeout problem_list
+  exit 1
+fi
+
+> log
+for PROBLEM in `cat $2`; do
+  echo running on $PROBLEM
+  ./matitaprover.native --timeout $1 --tptppath TPTP-v3.7.0/ $PROBLEM \
+    >> log 2>&1
+  echo So far `grep Unsatisfiable log|wc -l` solved
+done
+echo Solved:
+grep 'Unsatisfiable' log | wc -l
+echo Failed:
+grep 'Timeout' log | wc -l