Skip to content

Commit

Permalink
update downloading witness checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
mchalupa committed Oct 24, 2017
1 parent 54d929d commit b98b336
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -525,15 +525,19 @@ download_zip()

get_cpa()
{
if [ ! -d CPAchecker-1.4-unix ]; then
download_tar https://cpachecker.sosy-lab.org/CPAchecker-1.6.1-unix.tar.bz2
if [ ! -d CPAchecker ]; then
CPA_VERSION="CPAchecker-1.6.12-svcomp17-unix"
download_tar https://cpachecker.sosy-lab.org/${CPA_VERSION}.tar.bz2
mv "$CPA_VERSION" "CPAchecker" || exit 1
fi
}

get_ultimize()
{
if [ ! -d UltimateAutomizer ]; then
download_zip https://ultimate.informatik.uni-freiburg.de/downloads/svcomp2017/UltimateAutomizer-linux.zip
ULTIMATE_VERSION=UltimateAutomizer-linux
download_zip https://ultimate.informatik.uni-freiburg.de/downloads/svcomp2017/${ULTIMATE_VERSION}.zip
mv "UAutomizer-linux" "UltimateAutomizer" || exit 1
fi
}

Expand All @@ -543,11 +547,10 @@ get_ultimize()
if [ $FROM -le 5 ]; then
if [ $WITH_CPA -eq 1 ]; then
get_cpa
rsync -a CPAchecker-1.6.1-unix/ $PREFIX/CPAchecker/
rsync -a CPAchecker $PREFIX/CPAchecker/
fi
if [ $WITH_ULTIMATEAUTOMIZER -eq 1 ]; then
get_ultimize
mv UAutomizer-linux UltimateAutomizer
rsync -a UltimateAutomizer $PREFIX/
fi
fi
Expand Down Expand Up @@ -659,14 +662,14 @@ if [ $FROM -le 7 ]; then
$LLVM_PREFIX/share/llvm-instrumentation/*/*.c \
$LLVM_PREFIX/share/llvm-instrumentation/*/*.json"

CPACHECKER=
ULTIAUTO=
if [ $WITH_CPA -eq 1 ]; then
CPACHECKER=`find CPAchecker/ -type f`
fi
if [ $WITH_ULTIMATEAUTOMIZER -eq 1 ]; then
ULTIAUTO=`find UltimateAutomizer/ -type f`
fi
#CPACHECKER=
#ULTIAUTO=
#if [ $WITH_CPA -eq 1 ]; then
# CPACHECKER=`find CPAchecker/ -type f`
#fi
#if [ $WITH_ULTIMATEAUTOMIZER -eq 1 ]; then
# ULTIAUTO=`find UltimateAutomizer/ -type f`
#fi

#strip binaries, it will save us 500 MB!
strip $BINARIES
Expand Down

0 comments on commit b98b336

Please sign in to comment.