mirror of
https://github.com/Z3Prover/z3
synced 2025-04-05 09:04:07 +00:00
fix bug in model compression that skips dependencies in function entries. Exposed in t171.smt2
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c5df6ce96e
commit
81d322b79f
|
@ -277,6 +277,13 @@ model::func_decl_set* model::collect_deps(top_sort& ts, func_interp * fi) {
|
|||
fi->compress();
|
||||
expr* e = fi->get_else();
|
||||
if (e) for_each_expr(collector, e);
|
||||
unsigned num_args = fi->get_arity();
|
||||
for (func_entry* fe : *fi) {
|
||||
for (unsigned i = 0; i < num_args; ++i) {
|
||||
for_each_expr(collector, fe->get_arg(i));
|
||||
}
|
||||
for_each_expr(collector, fe->get_result());
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue