#!/bin/bash
#
# Run mergesat with simplification, and emitting a proof.
# The proof is written to the file in the directory specified in the second
# argument, in a file called "proof.out".

# call solver from the directory where this script is located
SOLVERDIR="$(dirname "${BASH_SOURCE[0]}" )"

TMPDIR=$2
if [ -n "${DEFAULT_MERGESAT_TMPDIR:-}" ]
then
	TMPDIR=$(readlink -e "${DEFAULT_MERGESAT_TMPDIR:-}")
fi

# call the solver without a special configuration, no proof will be generated
"$SOLVERDIR"/mergesat "$1" -verb=0 -drup-file="$TMPDIR"/proof.out
