3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-02 21:37:02 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-02-01 14:31:13 -08:00
parent a9d22d7409
commit 321329d77c
4 changed files with 13 additions and 9 deletions

View file

@ -2034,7 +2034,8 @@ namespace smt2 {
process_last_symbol(fr);
TRACE("consume_attributes", tout << "pop_attr_expr_frame, expr_stack.size(): " << expr_stack().size() << "\n";);
// the resultant expression is already on the top of the stack.
SASSERT(expr_stack().size() == fr->m_expr_spos + 1);
if (expr_stack().size() != fr->m_expr_spos + 1)
throw parser_exception("invalid expression");
m_stack.deallocate(fr);
m_num_expr_frames--;
}