mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
fix #6124
expression pointers were changed within a function, but not pinned. So the pointers got stale. To enforce their life-time within the function body (for use in logging) pin the expressions.
This commit is contained in:
parent
f82ca197d2
commit
d7472f0726
|
@ -492,6 +492,7 @@ namespace smt {
|
|||
void theory_arith<Ext>::mk_axiom(expr * ante, expr * conseq, bool simplify_conseq) {
|
||||
th_rewriter & s = ctx.get_rewriter();
|
||||
expr_ref s_ante(m), s_conseq(m);
|
||||
expr_ref p_ante(ante, m), p_conseq(conseq, m); // pinned versions
|
||||
expr* s_conseq_n, * s_ante_n;
|
||||
bool negated;
|
||||
|
||||
|
|
Loading…
Reference in a new issue