]> matita.cs.unibo.it Git - helm.git/blob - matita/components/binaries/matitaprover/run_on_a_list.sh
mod change (-x)
[helm.git] / matita / components / binaries / matitaprover / run_on_a_list.sh
1 #!/bin/bash
2
3 if [ -z "$1" ] || [ -z "$2" ]; then
4   echo usage: $0 timeout problem_list
5   exit 1
6 fi
7 gcc TreeLimitedRun.c -o TreeLimitedRun
8 > log
9 for PROBLEM in `cat $2`; do
10   echo running on $PROBLEM
11   ./TreeLimitedRun -q0 $1 $(($1*2)) ./matitaprover.native --tptppath ~/TPTP-v3.1.1/ $PROBLEM \
12     >> log 2>&1
13   echo So far `grep 'SZS status Unsatisfiable' log|wc -l` solved
14 done
15 echo Solved:
16 grep 'SZS status Unsatisfiable' log | wc -l
17 echo Failed:
18 grep 'Timeout' log | wc -l