summaryrefslogtreecommitdiff
path: root/src/parser/tptp
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2018-08-08 19:21:47 -0700
committerGitHub <noreply@github.com>2018-08-08 19:21:47 -0700
commit91d85704313de6be9fd382833f5cedd39e24a6fa (patch)
tree057adfdad9d586428482d9bd58e9c8124bddc47b /src/parser/tptp
parentb4d4006d08a32b107257b0edaba95679d0b0c65b (diff)
Plug solver API object into parser. (#2240)
Diffstat (limited to 'src/parser/tptp')
-rw-r--r--src/parser/tptp/tptp.cpp9
-rw-r--r--src/parser/tptp/tptp.h9
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:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback