3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

don't rewrite empty/non-empty checking predicates

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-07-31 11:46:38 -07:00
parent 615e2cf37c
commit 97ed1cd07d

View file

@ -411,10 +411,8 @@ namespace smt {
<< "," << expr_id_str(u) << "," << expr_id_str(n) << ") ";); << "," << expr_id_str(u) << "," << expr_id_str(n) << ") ";);
expr_ref is_nullable = is_nullable_wrapper(r); expr_ref is_nullable = is_nullable_wrapper(r);
if (m.is_true(is_nullable)) { if (m.is_true(is_nullable))
TRACE("seq_regex", tout << "is nullable\n";);
return; return;
}
literal null_lit = th.mk_literal(is_nullable); literal null_lit = th.mk_literal(is_nullable);
expr_ref hd = mk_first(r, n); expr_ref hd = mk_first(r, n);
expr_ref d(m); expr_ref d(m);
@ -441,7 +439,6 @@ namespace smt {
lits.push_back(th.mk_literal(next_non_empty)); lits.push_back(th.mk_literal(next_non_empty));
} }
TRACE("seq_regex", tout << lits << "\n";);
th.add_axiom(lits); th.add_axiom(lits);
} }