From 381e502d30fe74639df9741ab8d6d11cd3a6a481 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Thu, 29 Apr 2021 20:12:02 -0700 Subject: [PATCH] fix #5224 --- src/parsers/smt2/smt2parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers/smt2/smt2parser.cpp b/src/parsers/smt2/smt2parser.cpp index 7601cbb14..65a6f5ed5 100644 --- a/src/parsers/smt2/smt2parser.cpp +++ b/src/parsers/smt2/smt2parser.cpp @@ -2569,7 +2569,7 @@ namespace smt2 { throw cmd_exception("invalid assert command, expression required as argument"); } expr * f = expr_stack().back(); - if (!m().is_bool(f)) { + if (!f || !m().is_bool(f)) { TRACE("smt2parser", tout << expr_ref(f, m()) << "\n";); throw cmd_exception("invalid assert command, term is not Boolean"); }