3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 03:27:52 +00:00

updates to some_string_in_re per code review comments

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-01-11 17:47:27 -08:00
parent c572fc2e4f
commit c6f58c8bf7
4 changed files with 19 additions and 20 deletions

View file

@ -882,14 +882,13 @@ public:
return false;
case OP_SEQ_IN_RE:
if (uncnstr(args[0]) && seq.re.is_ground(args[1]) && seq.is_string(args[0]->get_sort())) {
#if 1
zstring s1;
expr* re = args[1];
if (!rw.some_string_in_re(re, s1))
if (l_true != rw.some_string_in_re(re, s1))
return false;
zstring s2;
expr_ref not_re(seq.re.mk_complement(re), m);
if (!rw.some_string_in_re(not_re, s2))
if (l_true != rw.some_string_in_re(not_re, s2))
return false;
mk_fresh_uncnstr_var_for(f, r);
@ -898,7 +897,6 @@ public:
if (m_mc)
add_def(args[0], m.mk_ite(r, witness1, witness2));
return true;
#endif
}
return false;
default: