distribution.sh 260 Bytes
Newer Older
Sylvain Schmitz's avatar
Sylvain Schmitz committed
1 2 3 4 5 6
#!/bin/bash

MAX=`grep 'MAX_AST_SIZE =' ../../src/main/java/fr/lsv/xpparser/XPathEntry.java| sed -e 's/[^0-9]*\([0-9]*\).*/\1/'`

for ((i = 1; i < $MAX; ++i))
do
Sylvain Schmitz's avatar
m  
Sylvain Schmitz committed
7
    C=`grep "ast depth=.* size=\"$i\"" ../../benchmark/*-full.xml | wc -l`
Sylvain Schmitz's avatar
Sylvain Schmitz committed
8 9 10
    echo "$i $C"
done