From: Andrew Reynolds Date: Thu, 30 Jul 2020 14:54:57 +0000 (-0500) Subject: Fix null case for sygus printing (#4793) X-Git-Tag: cvc5-1.0.0~3069 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95ca28b7e8466e956898da377e253fc32c58e52d;p=cvc5.git Fix null case for sygus printing (#4793) Avoids crashing on some of our debug traces. --- diff --git a/src/theory/quantifiers/sygus/term_database_sygus.cpp b/src/theory/quantifiers/sygus/term_database_sygus.cpp index ff1b172e9..ac10522a2 100644 --- a/src/theory/quantifiers/sygus/term_database_sygus.cpp +++ b/src/theory/quantifiers/sygus/term_database_sygus.cpp @@ -731,6 +731,11 @@ void TermDbSygus::toStreamSygus(const char* c, Node n) void TermDbSygus::toStreamSygus(std::ostream& out, Node n) { + if (n.isNull()) + { + out << n; + return; + } // use external conversion out << datatypes::utils::sygusToBuiltin(n, true); }