src/HOL/Tools/ATP/scripts/spass
author blanchet
Sat, 29 Oct 2011 13:15:58 +0200
changeset 45304 e6901aa86a9e
parent 45302 04c87dec70b8
child 46403 3069344da626
permissions -rwxr-xr-x
always use DFG format to talk to SPASS -- since that's what we'll need to use anyway to benefit from sorts and other extensions

#!/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}

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