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:
parent
470e966791
commit
5534dba680
2 changed files with 22 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue