summaryrefslogtreecommitdiff
path: root/src/printer/smt2
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-11-16 00:20:30 +0000
committerMorgan Deters <mdeters@gmail.com>2010-11-16 00:20:30 +0000
commitd5d504da7c73538642b9be86c73f8407e08ab57a (patch)
tree27eb4f4cd10c311a490e5fe2adf4a45aec54c18a /src/printer/smt2
parent759e85ae22536844a8c37714676bf9a65d7cc2b5 (diff)
fix function signatures
Diffstat (limited to 'src/printer/smt2')
-rw-r--r--src/printer/smt2/smt2_printer.cpp12
-rw-r--r--src/printer/smt2/smt2_printer.h2
2 files changed, 6 insertions, 8 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index c8c4bfc20..5aff8ebba 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -28,12 +28,12 @@ namespace smt2 {
void printBvParameterizedOp(std::ostream& out, TNode n);
-std::ostream& Smt2Printer::toStream(std::ostream& out, TNode n,
- int toDepth, bool types) const {
+void Smt2Printer::toStream(std::ostream& out, TNode n,
+ int toDepth, bool types) const {
// null
if(n.getKind() == kind::NULL_EXPR) {
out << "null";
- return out;
+ return;
}
// variable
@@ -55,7 +55,7 @@ std::ostream& Smt2Printer::toStream(std::ostream& out, TNode n,
n.getType().toStream(out, -1, false, language::output::LANG_SMTLIB_V2);
}
- return out;
+ return;
}
// constant
@@ -80,7 +80,7 @@ std::ostream& Smt2Printer::toStream(std::ostream& out, TNode n,
kind::metakind::NodeValueConstPrinter::toStream(out, n);
}
- return out;
+ return;
}
bool stillNeedToPrintParams = true;
@@ -191,8 +191,6 @@ std::ostream& Smt2Printer::toStream(std::ostream& out, TNode n,
}
}
out << ')';
-
- return out;
}/* Smt2Printer::toStream() */
void printBvParameterizedOp(std::ostream& out, TNode n) {
diff --git a/src/printer/smt2/smt2_printer.h b/src/printer/smt2/smt2_printer.h
index 7cd88f0ff..6fce2dfff 100644
--- a/src/printer/smt2/smt2_printer.h
+++ b/src/printer/smt2/smt2_printer.h
@@ -31,7 +31,7 @@ namespace smt2 {
class Smt2Printer : public CVC4::Printer {
public:
- std::ostream& toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
+ void toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
};/* class Smt2Printer */
}/* CVC4::printer::smt2 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback