mirror of
https://github.com/Z3Prover/z3
synced 2026-02-14 04:41:48 +00:00
Fix sort error with nested quantifiers by adding sort check
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
472ac6a97a
commit
8d47a9dc61
1 changed files with 4 additions and 1 deletions
|
|
@ -2559,7 +2559,10 @@ namespace smt {
|
|||
ptr_buffer<expr> eqs;
|
||||
for (auto const& kv : inv) {
|
||||
expr* val = kv.m_key;
|
||||
eqs.push_back(m.mk_eq(sk, val));
|
||||
// Only create equality if sorts match
|
||||
if (sk->get_sort() == val->get_sort()) {
|
||||
eqs.push_back(m.mk_eq(sk, val));
|
||||
}
|
||||
}
|
||||
expr_ref new_cnstr(m);
|
||||
new_cnstr = m.mk_or(eqs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue