mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Fixed bug reported by Heizmann at codeplex
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
8d6a091083
commit
c5b91aef68
2 changed files with 7 additions and 4 deletions
|
@ -623,10 +623,11 @@ void proto_model::complete_partial_funcs() {
|
|||
if (m_params.m_model_partial)
|
||||
return;
|
||||
|
||||
ptr_vector<func_decl>::iterator it = m_func_decls.begin();
|
||||
ptr_vector<func_decl>::iterator end = m_func_decls.end();
|
||||
for (; it != end; ++it)
|
||||
complete_partial_func(*it);
|
||||
// m_func_decls may be "expanded" when we invoke get_some_value.
|
||||
// So, we must not use iterators to traverse it.
|
||||
for (unsigned i = 0; i < m_func_decls.size(); i++) {
|
||||
complete_partial_func(m_func_decls[i]);
|
||||
}
|
||||
}
|
||||
|
||||
model * proto_model::mk_model() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue