summaryrefslogtreecommitdiff
path: root/src/printer/smt2
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-07-19 12:39:07 -0400
committerGitHub <noreply@github.com>2019-07-19 12:39:07 -0400
commit7de5f26ca35f6b3b11dc8a7465f7a15e5d0d2e50 (patch)
treea0c0cd831361d7e872618fc9e8739f63db9760bb /src/printer/smt2
parent9fa66413709fbdb1a02f8986d0c332934523b110 (diff)
Fixes for sygus with datatypes (#3103)
Diffstat (limited to 'src/printer/smt2')
-rw-r--r--src/printer/smt2/smt2_printer.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index 9b34b1d7c..163c8acad 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -1476,18 +1476,15 @@ void Smt2Printer::toStreamSygus(std::ostream& out, TNode n) const
return;
}
}
+ Node p = n.getAttribute(theory::SygusPrintProxyAttribute());
+ if (!p.isNull())
+ {
+ out << p;
+ }
else
{
- Node p = n.getAttribute(theory::SygusPrintProxyAttribute());
- if (!p.isNull())
- {
- out << p;
- }
- else
- {
- // cannot convert term to analog, print original
- out << n;
- }
+ // cannot convert term to analog, print original
+ out << n;
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback