~tapaal-ltl/verifypn/scc-optimise

« back to all changes in this revision

Viewing changes to run_tests.sh

  • Committer: srba.jiri at gmail
  • Date: 2020-09-11 14:23:39 UTC
  • mfrom: (213.1.151 interval_tar)
  • Revision ID: srba.jiri@gmail.com-20200911142339-bq9328s1gppw24uj
merged in lp:~verifypn-maintainers/verifypn/interval_tar doing 
- Implements TAR w/o z3, but using a simple integer inference engine for Hoare logic.
 - Replaces LP-Solve with GLPK, reduces computation-time and memory overhead
 - Implements new global properties, translated into CTL formulae.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
B=$1
 
4
O=$2
 
5
F=$3
 
6
T="$4"
 
7
 
 
8
if [ -z "$B" ] ; then
 
9
        echo "Missing binary"
 
10
        exit
 
11
fi
 
12
if [ -z "$O" ] ; then
 
13
        echo "Missing options"
 
14
        exit
 
15
fi
 
16
if [ -z "$F" ] ; then
 
17
        echo "Missing output"
 
18
        exit
 
19
fi
 
20
 
 
21
if [ -z "$T" ] ; then
 
22
        echo "No timing given, using 5 seconds"
 
23
        T=5
 
24
fi
 
25
 
 
26
 
 
27
 
 
28
 
 
29
echo "" > $F
 
30
for f in $(ls test_models) ; do
 
31
        echo "Run $f" 
 
32
        NP=$(grep "<property>" "test_models/$f/query.xml" | wc -l)
 
33
        for Q in $(seq 1 $NP ) ; do 
 
34
                echo "  Q$Q"
 
35
                res=$(eval "timeout $T $1 $2 -x $Q test_models/$f/model.pnml test_models/$f/query.xml " | grep "Query is ")
 
36
                if [ ! -z "$res" ] ; then
 
37
                        echo "$f:$Q:$res" >> $F
 
38
                fi
 
39
        done
 
40
done