diff options
author | François Bobot <francois@bobot.eu> | 2012-06-22 15:11:37 +0000 |
---|---|---|
committer | François Bobot <francois@bobot.eu> | 2012-06-22 15:11:37 +0000 |
commit | 84c4269f3b9edb8de4134fe464dfc70679da2bb1 (patch) | |
tree | b0c8f33e04d925064ffa9d85f1caeb6a3ff745b2 /src/util/options.cpp | |
parent | eda7d4df5481030d4e9cb6ef4a33d52afc8f7e0a (diff) |
TPTP: add parser for cnf and fof
- include directive works
- no keyword : 'fof', 'cnf', ... can be used for symbols name
- real -> unsorted -> real (for the one that appear, so no bijection bitween real and unsorted)
- same thing for string
But:
- string not distinct by projection to real, not sure if the current state of string theory make them distinct
- filtering in include is not done
- the result is not printed in the TPTP way (currently SMT2 way)
Diffstat (limited to 'src/util/options.cpp')
-rw-r--r-- | src/util/options.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/options.cpp b/src/util/options.cpp index b9291f59c..c02482e7e 100644 --- a/src/util/options.cpp +++ b/src/util/options.cpp @@ -312,12 +312,14 @@ Languages currently supported as arguments to the -L / --lang option:\n\ pl | cvc4 CVC4 presentation language\n\ smt | smtlib SMT-LIB format 1.2\n\ smt2 | smtlib2 SMT-LIB format 2.0\n\ + tptp TPTP format (cnf and fof)\n\ \n\ Languages currently supported as arguments to the --output-lang option:\n\ auto match the output language to the input language\n\ pl | cvc4 CVC4 presentation language\n\ smt | smtlib SMT-LIB format 1.2\n\ smt2 | smtlib2 SMT-LIB format 2.0\n\ + tptp TPTP format\n\ ast internal format (simple syntax-tree language)\n\ "; @@ -1633,6 +1635,9 @@ void Options::setOutputLanguage(const char* str) throw(OptionException) { } else if(!strcmp(str, "smtlib2") || !strcmp(str, "smt2")) { outputLanguage = language::output::LANG_SMTLIB_V2; return; + } else if(!strcmp(str, "tptp")) { + outputLanguage = language::output::LANG_TPTP; + return; } else if(!strcmp(str, "ast")) { outputLanguage = language::output::LANG_AST; return; @@ -1659,6 +1664,9 @@ void Options::setInputLanguage(const char* str) throw(OptionException) { } else if(!strcmp(str, "smtlib2") || !strcmp(str, "smt2")) { inputLanguage = language::input::LANG_SMTLIB_V2; return; + } else if(!strcmp(str, "tptp")) { + inputLanguage = language::input::LANG_TPTP; + return; } else if(!strcmp(str, "auto")) { inputLanguage = language::input::LANG_AUTO; return; |