3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Bugfix for func_interp else-case compression

This commit is contained in:
Christoph M. Wintersteiger 2016-04-06 19:24:08 +01:00
parent e662427060
commit 3a532c08a6

View file

@ -141,8 +141,10 @@ bool func_interp::is_fi_entry_expr(expr * e, ptr_vector<expr> & args) {
}
void func_interp::set_else(expr * e) {
if (e == m_else)
return;
reset_interp_cache();
m_manager.dec_ref(m_else);
ptr_vector<expr> args;
while (e && is_fi_entry_expr(e, args)) {
@ -152,6 +154,7 @@ void func_interp::set_else(expr * e) {
}
m_manager.inc_ref(e);
m_manager.dec_ref(m_else);
m_else = e;
}