From 95ca28b7e8466e956898da377e253fc32c58e52d Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Thu, 30 Jul 2020 09:54:57 -0500 Subject: [PATCH] Fix null case for sygus printing (#4793) Avoids crashing on some of our debug traces. --- src/theory/quantifiers/sygus/term_database_sygus.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.30.2