diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2018-08-08 19:21:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 19:21:47 -0700 |
commit | 91d85704313de6be9fd382833f5cedd39e24a6fa (patch) | |
tree | 057adfdad9d586428482d9bd58e9c8124bddc47b /src/parser/tptp | |
parent | b4d4006d08a32b107257b0edaba95679d0b0c65b (diff) |
Plug solver API object into parser. (#2240)
Diffstat (limited to 'src/parser/tptp')
-rw-r--r-- | src/parser/tptp/tptp.cpp | 9 | ||||
-rw-r--r-- | src/parser/tptp/tptp.h | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src/parser/tptp/tptp.cpp b/src/parser/tptp/tptp.cpp index 0228fdeff..ee313a202 100644 --- a/src/parser/tptp/tptp.cpp +++ b/src/parser/tptp/tptp.cpp @@ -20,6 +20,7 @@ #include <algorithm> #include <set> +#include "api/cvc4cpp.h" #include "expr/type.h" #include "parser/parser.h" @@ -30,11 +31,9 @@ namespace CVC4 { namespace parser { -Tptp::Tptp(ExprManager* exprManager, Input* input, bool strictMode, - bool parseOnly) - : Parser(exprManager, input, strictMode, parseOnly), - d_cnf(false), - d_fof(false) { +Tptp::Tptp(api::Solver* solver, Input* input, bool strictMode, bool parseOnly) + : Parser(solver, input, strictMode, parseOnly), d_cnf(false), d_fof(false) +{ addTheory(Tptp::THEORY_CORE); /* Try to find TPTP dir */ diff --git a/src/parser/tptp/tptp.h b/src/parser/tptp/tptp.h index 3ce9668e0..eb5532247 100644 --- a/src/parser/tptp/tptp.h +++ b/src/parser/tptp/tptp.h @@ -30,6 +30,11 @@ #include "util/hash.h" namespace CVC4 { + +namespace api { +class Solver; +} + namespace parser { class Tptp : public Parser { @@ -81,7 +86,9 @@ class Tptp : public Parser { bool hasConjecture() const { return d_hasConjecture; } protected: - Tptp(ExprManager* exprManager, Input* input, bool strictMode = false, + Tptp(api::Solver* solver, + Input* input, + bool strictMode = false, bool parseOnly = false); public: |