File: classify_problems.sh

package info (click to toggle)
eprover 2.6%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,288 kB
  • sloc: ansic: 331,111; csh: 12,026; python: 10,178; awk: 5,825; makefile: 461; sh: 389
file content (18 lines) | stat: -rwxr-xr-x 663 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_7.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 5000
       classify_problem --free-numbers --sine=Auto --no-preprocessing $file>> ../problem_features_7.3.0_nopraw
    else
           echo "Skipping " $file
    fi
done