mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
fix expression dereference error in theory_str::gen_assign_unroll_Str2Reg
This commit is contained in:
parent
54d7e4bbb5
commit
3c8b833eeb
1 changed files with 4 additions and 3 deletions
|
@ -7772,10 +7772,11 @@ expr * theory_str::gen_assign_unroll_Str2Reg(expr * n, std::set<expr*> & unrolls
|
|||
if (canHaveNonEmptyAssign) {
|
||||
return gen_unroll_conditional_options(n, unrolls, lcmStr);
|
||||
} else {
|
||||
expr * implyL = mk_and(litems);
|
||||
expr * implyR = ctx.mk_eq_atom(n, m_strutil.mk_string(""));
|
||||
expr_ref implyL(mk_and(litems), mgr);
|
||||
expr_ref implyR(ctx.mk_eq_atom(n, m_strutil.mk_string("")), mgr);
|
||||
// want to return (implyL -> implyR)
|
||||
return mgr.mk_or(mgr.mk_not(implyL), implyR);
|
||||
expr * final_axiom = rewrite_implication(implyL, implyR);
|
||||
return final_axiom;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue