author | haftmann |
Sat, 24 Dec 2011 15:53:09 +0100 | |
changeset 45966 | 03ce2b2a29a2 |
parent 45304 | e6901aa86a9e |
child 46403 | 3069344da626 |
permissions | -rwxr-xr-x |
37962
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
1 |
#!/usr/bin/env bash |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
2 |
# |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
3 |
# Wrapper for SPASS that also outputs the Flotter-generated CNF (needed for |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
4 |
# Isar proof reconstruction) |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
5 |
# |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
6 |
# Author: Jasmin Blanchette, TU Muenchen |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
7 |
|
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
8 |
options=${@:1:$(($#-1))} |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
9 |
name=${@:$(($#)):1} |
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
10 |
|
45304
e6901aa86a9e
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
blanchet
parents:
45302
diff
changeset
|
11 |
"$SPASS_HOME/SPASS" -Flotter $name \ |
37962
d7dbe01f48d7
keep track of clause numbers for SPASS now that we generate FOF rather than CNF problems;
blanchet
parents:
diff
changeset
|
12 |
| sed 's/description({$/description({*/' \ |
44391 | 13 |
| sed 's/set_ClauseFormulaRelation()\.//' \ |
45304
e6901aa86a9e
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
blanchet
parents:
45302
diff
changeset
|
14 |
> $name.cnf |
e6901aa86a9e
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
blanchet
parents:
45302
diff
changeset
|
15 |
cat $name.cnf |
e6901aa86a9e
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
blanchet
parents:
45302
diff
changeset
|
16 |
"$SPASS_HOME/SPASS" $options $name.cnf \ |
37990
586130f71c78
remove confusing line in SPASS output (because the axiom names are off -- bug in SPASS)
blanchet
parents:
37962
diff
changeset
|
17 |
| sed 's/\(Formulae used in the proof :\).*/\1 N\/A/' |
45304
e6901aa86a9e
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
blanchet
parents:
45302
diff
changeset
|
18 |
rm -f $name.cnf |