diff options
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; } } |