diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2013-05-10 15:18:20 -0500 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2013-05-10 15:18:20 -0500 |
commit | 38216791c43f9be4afecbc700548d1dbba63acb0 (patch) | |
tree | 60f7b525ca01980f954350f2312563eb57d30679 /src/parser/tptp/tptp.h | |
parent | f84120cd5311450de2075a91356524d4e20d457c (diff) |
Update casc run script. Work on compliance for SZS output.
Diffstat (limited to 'src/parser/tptp/tptp.h')
-rw-r--r-- | src/parser/tptp/tptp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/parser/tptp/tptp.h b/src/parser/tptp/tptp.h index 6b7adbbf7..cea246282 100644 --- a/src/parser/tptp/tptp.h +++ b/src/parser/tptp/tptp.h @@ -24,6 +24,7 @@ #include "util/hash.h" #include <ext/hash_set> #include <cassert> +#include "parser/options.h" namespace CVC4 { @@ -49,6 +50,11 @@ class Tptp : public Parser { // empty if none could be determined std::string d_tptpDir; + //hack to make output SZS ontology-compliant + bool d_hasConjecture; + // hack for szs compliance + bool d_szsCompliant; + public: bool cnf; //in a cnf formula @@ -181,6 +187,13 @@ inline void Tptp::makeApplication(Expr & expr, std::string & name, }; inline Command* Tptp::makeCommand(FormulaRole fr, Expr & expr){ + //hack for SZS ontology compliance + if(d_szsCompliant && (fr==FR_NEGATED_CONJECTURE || fr==FR_CONJECTURE)){ + if( !d_hasConjecture ){ + d_hasConjecture = true; + std::cout << "conjecture-"; + } + } switch(fr){ case FR_AXIOM: case FR_HYPOTHESIS: |