src/HOL/Tools/ATP/scripts/spass
author blanchet
Sun, 13 May 2012 16:31:01 +0200
changeset 47914 94f37848b7c9
parent 47055 16e2633f3b4b
permissions -rwxr-xr-x
LEO-II's "--sos" option confusingly disables rather than enables SOS, and SOS seems to be ignored anyway; also, pass a number of facts that's more appropriate for each prover

#!/usr/bin/env bash
#
# Wrapper for SPASS that also outputs the Flotter-generated CNF (needed for
# Isar proof reconstruction)
#
# Author: Jasmin Blanchette, TU Muenchen

options=${@:1:$(($#-1))}
name=${@:$(($#)):1}
home=${SPASS_OLD_HOME:-$SPASS_HOME}

"$home/SPASS" -Flotter "$name" \
    | sed 's/description({$/description({*/' \
    | sed 's/set_ClauseFormulaRelation()\.//' \
    > $name.cnf
cat $name.cnf
"$home/SPASS" $options "$name.cnf" \
    | sed 's/\(Formulae used in the proof :\).*/\1 N\/A/'
rm -f "$name.cnf"