3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-28 19:38:51 +00:00

Flatten concat when deciding if it is constant

This commit is contained in:
CEisenhofer 2026-06-09 16:39:09 +02:00
parent 2e4c165a16
commit 9f44a9cce8
2 changed files with 54 additions and 9 deletions

View file

@ -3679,6 +3679,7 @@ namespace seq {
}
return true;
}
std::cout << mk_pp(c->get_expr(), m) << std::endl;
UNREACHABLE();
return false;
}
@ -3698,8 +3699,8 @@ namespace seq {
if (r->is_union()) {
// σ(r₁ ⊔ r₂) = σ(r₁) σ(r₂)
SASSERT(r->num_args() >= 2);
for (const euf::snode* const arg : *r) {
if (!compute_sigma(m, seq, rw, arg, result, threshold))
for (unsigned i = 0; i < r->num_args(); i++) {
if (!compute_sigma(m, seq, rw, r->arg(i), result, threshold))
return false;
}
return true;