File: classify_problems.sh

package info (click to toggle)
eprover 3.2.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,504 kB
  • sloc: ansic: 104,396; csh: 13,135; python: 11,207; awk: 5,825; makefile: 554; sh: 400
file content (18 lines) | stat: -rwxr-xr-x 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Delete this if only missing problems are added!
# cat /dev/null > ../problem_features_8.2.0_raw

for file in `ls|grep [_+=-].*\.p`; do
#for file in `gawk '/^[^#]/{print $1}' ../missing`; do
    echo "Processing " $file
    ProblemSPC=`grep " SPC " $file | sed -e "s/.* : //"`
    # echo $ProblemSPC
    if  [ `expr "$ProblemSPC" : "TF0.*"` != 0 ]  || [ `expr "$ProblemSPC" : "FOF.*"` != 0 ] || [ `expr "$ProblemSPC" : "CNF.*"` != 0 ]  ; then
       # echo $file
       ulimit -t 500
       classify_problem --free-numbers --sine=Auto $file>> ../problem_features_8.2.0_raw
    else
           echo "Skipping " $file
    fi
done