3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-28 09:52:46 +00:00

update well_sorted to check patterns, fix variable shift in pattern inference

This commit is contained in:
Nikolaj Bjorner 2026-07-06 16:57:52 -07:00
parent 470e966791
commit 5534dba680
2 changed files with 22 additions and 11 deletions

View file

@ -50,10 +50,12 @@ struct well_sorted_proc {
if (!is_lambda(n) && !m.is_bool(n->get_expr())) {
warning_msg("quantifier's body must be a boolean.");
m_error = true;
// UNREACHABLE();
}
unsigned sz = m_binding.size();
m_binding.append(n->get_num_decls(), n->get_decl_sorts());
for (unsigned i = 0; i < n->get_num_patterns(); i++)
check(n->get_pattern(i));
check(n->get_expr());
m_binding.shrink(sz);
}