mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
This commit is contained in:
parent
1935e86966
commit
eed87807c5
|
@ -275,6 +275,9 @@ namespace arith {
|
||||||
else {
|
else {
|
||||||
if (is_app(n)) {
|
if (is_app(n)) {
|
||||||
internalize_args(to_app(n));
|
internalize_args(to_app(n));
|
||||||
|
for (expr* arg : *to_app(n))
|
||||||
|
if (a.is_arith_expr(arg))
|
||||||
|
internalize_term(arg);
|
||||||
}
|
}
|
||||||
theory_var v = mk_evar(n);
|
theory_var v = mk_evar(n);
|
||||||
coeffs[vars.size()] = coeffs[index];
|
coeffs[vars.size()] = coeffs[index];
|
||||||
|
@ -291,10 +294,9 @@ namespace arith {
|
||||||
st.to_ensure_enode().reset();
|
st.to_ensure_enode().reset();
|
||||||
for (unsigned i = st.to_ensure_var().size(); i-- > 0; ) {
|
for (unsigned i = st.to_ensure_var().size(); i-- > 0; ) {
|
||||||
expr* n = st.to_ensure_var()[i];
|
expr* n = st.to_ensure_var()[i];
|
||||||
if (is_app(n)) {
|
if (is_app(n))
|
||||||
internalize_term(to_app(n));
|
internalize_term(to_app(n));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
st.to_ensure_var().reset();
|
st.to_ensure_var().reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -388,7 +390,6 @@ namespace arith {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool solver::internalize_term(expr* term) {
|
bool solver::internalize_term(expr* term) {
|
||||||
if (!has_var(term))
|
if (!has_var(term))
|
||||||
register_theory_var_in_lar_solver(internalize_def(term));
|
register_theory_var_in_lar_solver(internalize_def(term));
|
||||||
|
|
Loading…
Reference in a new issue