diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-07-19 12:39:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-19 12:39:07 -0400 |
commit | 7de5f26ca35f6b3b11dc8a7465f7a15e5d0d2e50 (patch) | |
tree | a0c0cd831361d7e872618fc9e8739f63db9760bb /src/printer | |
parent | 9fa66413709fbdb1a02f8986d0c332934523b110 (diff) |
Fixes for sygus with datatypes (#3103)
Diffstat (limited to 'src/printer')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 17 |
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; } } |