diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-05-02 20:07:36 -0700 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-05-02 22:07:36 -0500 |
commit | bc40dbf0d808a3e30b721ef04b985b3e594a88bd (patch) | |
tree | 018c21da51e5aa0b63be0e48af54d48e876565b6 /src/printer | |
parent | 5ed0a1b8dd73e339189df1556fa4bdbf95767245 (diff) |
Remove (dummy) SMT1 printer (#1854)
Diffstat (limited to 'src/printer')
-rw-r--r-- | src/printer/printer.cpp | 4 | ||||
-rw-r--r-- | src/printer/smt1/smt1_printer.cpp | 69 | ||||
-rw-r--r-- | src/printer/smt1/smt1_printer.h | 57 |
3 files changed, 0 insertions, 130 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp index f9486f017..439649725 100644 --- a/src/printer/printer.cpp +++ b/src/printer/printer.cpp @@ -21,7 +21,6 @@ #include "options/language.h" #include "printer/ast/ast_printer.h" #include "printer/cvc/cvc_printer.h" -#include "printer/smt1/smt1_printer.h" #include "printer/smt2/smt2_printer.h" #include "printer/tptp/tptp_printer.h" @@ -36,9 +35,6 @@ unique_ptr<Printer> Printer::makePrinter(OutputLanguage lang) using namespace CVC4::language::output; switch(lang) { - case LANG_SMTLIB_V1: // TODO the printer - return unique_ptr<Printer>(new printer::smt1::Smt1Printer()); - case LANG_SMTLIB_V2_0: return unique_ptr<Printer>( new printer::smt2::Smt2Printer(printer::smt2::smt2_0_variant)); diff --git a/src/printer/smt1/smt1_printer.cpp b/src/printer/smt1/smt1_printer.cpp deleted file mode 100644 index ac3c2f970..000000000 --- a/src/printer/smt1/smt1_printer.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/********************* */ -/*! \file smt1_printer.cpp - ** \verbatim - ** Top contributors (to current version): - ** Morgan Deters, Tim King, Paul Meng - ** This file is part of the CVC4 project. - ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS - ** in the top-level source directory) and their institutional affiliations. - ** All rights reserved. See the file COPYING in the top-level source - ** directory for licensing information.\endverbatim - ** - ** \brief The pretty-printer interface for the SMT output language - ** - ** The pretty-printer interface for the SMT output language. - **/ -#include "printer/smt1/smt1_printer.h" - -#include <iostream> -#include <string> -#include <typeinfo> -#include <vector> - -#include "expr/expr.h" // for ExprSetDepth etc.. -#include "expr/node_manager.h" // for VarNameAttr -#include "options/language.h" // for LANG_AST -#include "smt/command.h" - -using namespace std; - -namespace CVC4 { -namespace printer { -namespace smt1 { - -void Smt1Printer::toStream( - std::ostream& out, TNode n, int toDepth, bool types, size_t dag) const -{ - n.toStream(out, toDepth, types, dag, language::output::LANG_SMTLIB_V2_5); -}/* Smt1Printer::toStream() */ - -void Smt1Printer::toStream(std::ostream& out, - const Command* c, - int toDepth, - bool types, - size_t dag) const -{ - c->toStream(out, toDepth, types, dag, language::output::LANG_SMTLIB_V2_5); -}/* Smt1Printer::toStream() */ - -void Smt1Printer::toStream(std::ostream& out, const CommandStatus* s) const -{ - s->toStream(out, language::output::LANG_SMTLIB_V2_5); -}/* Smt1Printer::toStream() */ - -void Smt1Printer::toStream(std::ostream& out, const Model& m) const -{ - Printer::getPrinter(language::output::LANG_SMTLIB_V2_5)->toStream(out, m); -} - -void Smt1Printer::toStream(std::ostream& out, - const Model& m, - const Command* c) const -{ - // shouldn't be called; only the non-Command* version above should be - Unreachable(); -} - -}/* CVC4::printer::smt1 namespace */ -}/* CVC4::printer namespace */ -}/* CVC4 namespace */ diff --git a/src/printer/smt1/smt1_printer.h b/src/printer/smt1/smt1_printer.h deleted file mode 100644 index 560393b81..000000000 --- a/src/printer/smt1/smt1_printer.h +++ /dev/null @@ -1,57 +0,0 @@ -/********************* */ -/*! \file smt1_printer.h - ** \verbatim - ** Top contributors (to current version): - ** Morgan Deters, Paul Meng - ** This file is part of the CVC4 project. - ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS - ** in the top-level source directory) and their institutional affiliations. - ** All rights reserved. See the file COPYING in the top-level source - ** directory for licensing information.\endverbatim - ** - ** \brief The pretty-printer interface for the SMT output language - ** - ** The pretty-printer interface for the SMT output language. - **/ - -#include "cvc4_private.h" - -#ifndef __CVC4__PRINTER__SMT1_PRINTER_H -#define __CVC4__PRINTER__SMT1_PRINTER_H - -#include <iostream> - -#include "printer/printer.h" - -namespace CVC4 { -namespace printer { -namespace smt1 { - -class Smt1Printer : public CVC4::Printer { - public: - using CVC4::Printer::toStream; - void toStream(std::ostream& out, - TNode n, - int toDepth, - bool types, - size_t dag) const override; - void toStream(std::ostream& out, - const Command* c, - int toDepth, - bool types, - size_t dag) const override; - void toStream(std::ostream& out, const CommandStatus* s) const override; - void toStream(std::ostream& out, const Model& m) const override; - - private: - void toStream(std::ostream& out, - const Model& m, - const Command* c) const override; - void toStream(std::ostream& out, const SExpr& sexpr) const; -};/* class Smt1Printer */ - -}/* CVC4::printer::smt1 namespace */ -}/* CVC4::printer namespace */ -}/* CVC4 namespace */ - -#endif /* __CVC4__PRINTER__SMT1_PRINTER_H */ |