3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-02 09:58:59 +00:00

fix bogus decompose_ite

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2026-03-24 14:43:56 -07:00
parent a5c0ecafda
commit bc5818e12d
2 changed files with 4 additions and 5 deletions

View file

@ -1198,11 +1198,11 @@ bool bool_rewriter::decompose_ite(expr *r, expr_ref &c, expr_ref &th, expr_ref &
if (m().is_ite(e, cond, r1, r2)) {
expr_safe_replace rep1(m());
expr_safe_replace rep2(m());
rep1.insert(cond, m().mk_true());
rep2.insert(cond, m().mk_false());
rep1.insert(e, r1);
rep2.insert(e, r2);
c = cond;
th = r1;
el = r2;
th = r;
el = r;
rep1(th);
rep2(el);
return true;

View file

@ -3564,7 +3564,6 @@ expr_ref seq_rewriter::simplify_path(expr* elem, expr* path) {
expr_ref seq_rewriter::mk_der_antimirov_union(expr* r1, expr* r2) {
verbose_stream() << "union " << r1->get_id() << " " << r2->get_id() << "\n";
return mk_der_op(_OP_RE_ANTIMIROV_UNION, r1, r2);
}