src/HOL/Tools/ATP_Manager/SPASS_TPTP
author blanchet
Wed, 28 Jul 2010 16:13:34 +0200
changeset 38037 f6059e262004
parent 37990 586130f71c78
permissions -rwxr-xr-x
adapt to new (?) TPTP output

#!/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/tptp2dfg $name $name.fof.dfg
$SPASS_HOME/SPASS -Flotter $name.fof.dfg \
    | sed 's/description({$/description({*/' \
    > $name.cnf.dfg
rm -f $name.fof.dfg
cat $name.cnf.dfg
$SPASS_HOME/SPASS $options $name.cnf.dfg \
    | sed 's/\(Formulae used in the proof :\).*/\1 N\/A/'
rm -f $name.cnf.dfg