mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
fix #5224
This commit is contained in:
parent
e4b660321f
commit
381e502d30
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue