proof

loading
details
attribute current value
name proof
description no description
owning solver cvc5-pe-lfsc-2023-05-13-c52df9d14
contents
#!/bin/bash

BENCHMARK="$1"
OUTDIR="$2"

echo "; run solver"
./smtcomp_solver ${BENCHMARK} > proof.txt 2>${OUTDIR}/solver-error.log
if [ `stat --printf="%s" ${OUTDIR}/solver-error.log` -gt 10000000 ]; then
    truncate -s 10M ${OUTDIR}/solver-error.log
fi

echo "; compressing proof"
PROOF_SIZE=`stat --printf="%s" proof.txt`
if [ "$PROOF_SIZE" -lt 1000000000 ]; then
    gzip -c proof.txt > ${OUTDIR}/proof.txt.gz
    COMPRESS_SIZE=`stat --printf="%s" ${OUTDIR}/proof.txt.gz`
fi
echo "; proof size: ${PROOF_SIZE} (${COMPRESS_SIZE} compressed)"

echo "; checking proof"
./smtcomp_checker ${BENCHMARK} proof.txt 2>${OUTDIR}/checker-error.log
if [ `stat --printf="%s" ${OUTDIR}/checker-error.log` -gt 10000000 ]; then
    truncate -s 10M ${OUTDIR}/checker-error.log
fi
echo "proofsize=${PROOF_SIZE}"
echo "compressedsize=${COMPRESS_SIZE}"

back to cvc5-pe-lfsc-2023-05-13-c52df9d14