3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

fix regression exposed by segfault2.smt2 crash

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-08-21 14:13:43 -07:00
parent e47cd27c8d
commit ebe9db14d5
3 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@ Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2007-03-08.
Revision History:
@ -359,8 +359,8 @@ void proto_model::complete_partial_funcs() {
// m_func_decls may be "expanded" when we invoke get_some_value.
// So, we must not use iterators to traverse it.
for (func_decl* f : m_func_decls) {
complete_partial_func(f);
for (unsigned i = 0; i < m_func_decls.size(); i++) {
complete_partial_func(m_func_decls[i]);
}
}

View file

@ -427,7 +427,7 @@ bool theory_seq::branch_unit_variable() {
break;
}
}
CTRACE("seq", result, "branch unit variable";);
CTRACE("seq", result, tout << "branch unit variable";);
return result;
}
@ -3552,7 +3552,7 @@ bool theory_seq::get_length(expr* e, rational& val) const {
}
}
}
CTRACE("seq", !val.is_int(), "length is not an integer\n";);
CTRACE("seq", !val.is_int(), tout << "length is not an integer\n";);
return val.is_int();
}