#!/bin/bash
REPOSRC=https://github.com/Aj0SK/sdsl-lite.git

rm -f special.txt vysledky_hybrid_artif.png sdsl_rrr_vector_test.out
git clone "$REPOSRC" 2> /dev/null || (cd "sdsl-lite" ; git pull ; cd ..)

cd sdsl-lite
git checkout rrr_vector_hybrid && ./install.sh
cd ..
touch sdsl_rrr_vector_test.cpp
make sdsl_rrr_vector_test.out
./sdsl_rrr_vector_test.out --benchmark_format=json > special.txt

python3 visual.py