From 9b3325753f813248f6e8cfcc1312a1edac613cfc Mon Sep 17 00:00:00 2001 From: Andrea Asperti Date: Fri, 26 Jun 2009 12:01:01 +0000 Subject: [PATCH] an easy for loop --- .../binaries/matitaprover/run_on_a_list.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 helm/software/components/binaries/matitaprover/run_on_a_list.sh 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 index 000000000..dbcd65631 --- /dev/null +++ b/helm/software/components/binaries/matitaprover/run_on_a_list.sh @@ -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 -- 2.39.2