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:
parent
c572fc2e4f
commit
c6f58c8bf7
4 changed files with 19 additions and 20 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue