mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix #5224
This commit is contained in:
parent
e4b660321f
commit
381e502d30
|
@ -2569,7 +2569,7 @@ namespace smt2 {
|
||||||
throw cmd_exception("invalid assert command, expression required as argument");
|
throw cmd_exception("invalid assert command, expression required as argument");
|
||||||
}
|
}
|
||||||
expr * f = expr_stack().back();
|
expr * f = expr_stack().back();
|
||||||
if (!m().is_bool(f)) {
|
if (!f || !m().is_bool(f)) {
|
||||||
TRACE("smt2parser", tout << expr_ref(f, m()) << "\n";);
|
TRACE("smt2parser", tout << expr_ref(f, m()) << "\n";);
|
||||||
throw cmd_exception("invalid assert command, term is not Boolean");
|
throw cmd_exception("invalid assert command, term is not Boolean");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue