summaryrefslogtreecommitdiff
path: root/src/expr/node.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-11-05 22:28:18 -0600
committerGitHub <noreply@github.com>2020-11-05 22:28:18 -0600
commitaf18cd275f340d1896c3b635dbeecbea2e521db1 (patch)
tree438137ddb999a853b543baa70e8009da212c1e05 /src/expr/node.h
parentac8b2593bed81125cb1a494e4b8311e517d0e3d9 (diff)
Simplify printing with respect to expression types (#5394)
This removes infrastructure for stream property related to printing type annotations on all variables. This is towards refactoring the printers.
Diffstat (limited to 'src/expr/node.h')
-rw-r--r--src/expr/node.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/expr/node.h b/src/expr/node.h
index bb014bbaf..f18f27c81 100644
--- a/src/expr/node.h
+++ b/src/expr/node.h
@@ -821,19 +821,16 @@ public:
* @param out the stream to serialize this node to
* @param toDepth the depth to which to print this expression, or -1 to
* print it fully
- * @param types set to true to ascribe types to the output expressions
- * (might break language compliance, but good for debugging expressions)
* @param language the language in which to output
*/
inline void toStream(
std::ostream& out,
int toDepth = -1,
- bool types = false,
size_t dagThreshold = 1,
OutputLanguage language = language::output::LANG_AUTO) const
{
assertTNodeNotExpired();
- d_nv->toStream(out, toDepth, types, dagThreshold, language);
+ d_nv->toStream(out, toDepth, dagThreshold, language);
}
/**
@@ -853,17 +850,6 @@ public:
typedef expr::ExprSetDepth setdepth;
/**
- * IOStream manipulator to print type ascriptions or not.
- *
- * // let a, b, c, and d be variables of sort U
- * Node n = nm->mkNode(OR, a, b, nm->mkNode(AND, c, nm->mkNode(NOT, d)))
- * out << n;
- *
- * gives "(OR a:U b:U (AND c:U (NOT d:U)))", but
- */
- typedef expr::ExprPrintTypes printtypes;
-
- /**
* IOStream manipulator to print expressions as DAGs (or not).
*/
typedef expr::ExprDag dag;
@@ -909,7 +895,6 @@ public:
inline std::ostream& operator<<(std::ostream& out, TNode n) {
n.toStream(out,
Node::setdepth::getDepth(out),
- Node::printtypes::getPrintTypes(out),
Node::dag::getDag(out),
Node::setlanguage::getLanguage(out));
return out;
@@ -1523,7 +1508,6 @@ inline Node NodeTemplate<true>::fromExpr(const Expr& e) {
*/
static void __attribute__((used)) debugPrintNode(const NodeTemplate<true>& n) {
Warning() << Node::setdepth(-1)
- << Node::printtypes(false)
<< Node::dag(true)
<< Node::setlanguage(language::output::LANG_AST)
<< n << std::endl;
@@ -1531,7 +1515,6 @@ static void __attribute__((used)) debugPrintNode(const NodeTemplate<true>& n) {
}
static void __attribute__((used)) debugPrintNodeNoDag(const NodeTemplate<true>& n) {
Warning() << Node::setdepth(-1)
- << Node::printtypes(false)
<< Node::dag(false)
<< Node::setlanguage(language::output::LANG_AST)
<< n << std::endl;
@@ -1544,7 +1527,6 @@ static void __attribute__((used)) debugPrintRawNode(const NodeTemplate<true>& n)
static void __attribute__((used)) debugPrintTNode(const NodeTemplate<false>& n) {
Warning() << Node::setdepth(-1)
- << Node::printtypes(false)
<< Node::dag(true)
<< Node::setlanguage(language::output::LANG_AST)
<< n << std::endl;
@@ -1552,7 +1534,6 @@ static void __attribute__((used)) debugPrintTNode(const NodeTemplate<false>& n)
}
static void __attribute__((used)) debugPrintTNodeNoDag(const NodeTemplate<false>& n) {
Warning() << Node::setdepth(-1)
- << Node::printtypes(false)
<< Node::dag(false)
<< Node::setlanguage(language::output::LANG_AST)
<< n << std::endl;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback