File: tbuddy_fuzzer.sh

package info (click to toggle)
cryptominisat 5.11.21%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,488 kB
  • sloc: cpp: 55,562; ansic: 7,786; python: 7,485; sh: 813; sql: 403; xml: 34; makefile: 22; javascript: 17
file content (40 lines) | stat: -rwxr-xr-x 1,581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -x

from=$1
to=$((from+1000))
i=$1
while [[ ${to} -gt ${i} ]]; do
    echo "Doing $i"
    rm -f test_FRAT-${i}
    rm -f test_FRAT-${i}.cnf

    # ../utils/cnf-utils/cnf-fuzz-brummayer.py > test_FRAT-${i}.cnf
    # timeout 5s ./cryptominisat5 test_FRAT-${i}.cnf b --distill 0 --scc 0 --varelim 0 --presimp 0 --xor 0 --confbtwsimp 10000000 --occsimp 0 --sls 0 --bva 0 --intree 0 > out_test
    # timeout 5s ./cryptominisat5 test_FRAT-${i}.cnf b --distill 1 --scc 1 --varelim 1 --presimp 1 --xor 0 --confbtwsimp 100 --occsimp 1 --sls 0 --bva 0 --intree 0 > out_test

    ../utils/cnf-utils/xortester.py -s $i --varsmin 35 > test_FRAT-${i}.cnf
    # ../utils/cnf-utils/xortester.py -s $i --varsmin 35 > test_FRAT-${i}.cnf
    # timeout 30s ./cryptominisat5 test_FRAT-${i}.cnf b-${i} --distill 1 --scc 1 --varelim 1 --presimp 1 --xor 1 --confbtwsimp 100 --occsimp 1 --sls 1 --bva 1 --intree 1 --maxmatrixcols 10000 --maxmatrixrows 10000 --strmaxt 0 --mustconsolidate 1 > out_test-${i}

    timeout 30s ./cryptominisat5 test_FRAT-${i}.cnf b-${i} --presimp 1 --maxmatrixcols 10000 --maxmatrixrows 10000 > out_test-${i}

    a=`grep "UNSATIS" out_test-${i}`
    if [[ $? -eq 0 ]]; then
        ./frat-rs stat b-${i}
        ./frat-rs elab b-${i} -m test_FRAT-${i}.cnf -v
        if [[ $? == 0 ]]; then
            echo "OK, verification good"
        else
            echo "Verification error"
            exit -1
        fi
    else
        echo "not UNSAT"
    fi
    rm -f b-${i}
    rm -f out_test-${i}
    rm -f ELAB-${i}
    rm -f test_FRAT-${i}
    i=$((i+1))
done