summaryrefslogtreecommitdiff
path: root/src/printer/smt2
diff options
context:
space:
mode:
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