mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
parent
d745d03afd
commit
3d26b501e7
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,8 @@ Revision History:
|
||||||
|
|
||||||
expr_ref func_decl_replace::operator()(expr* e) {
|
expr_ref func_decl_replace::operator()(expr* e) {
|
||||||
m_todo.push_back(e);
|
m_todo.push_back(e);
|
||||||
|
m_refs.push_back(e);
|
||||||
|
|
||||||
while (!m_todo.empty()) {
|
while (!m_todo.empty()) {
|
||||||
expr* a = m_todo.back(), *b;
|
expr* a = m_todo.back(), *b;
|
||||||
if (m_cache.contains(a)) {
|
if (m_cache.contains(a)) {
|
||||||
|
|
|
@ -375,7 +375,6 @@ namespace smt {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SASSERT(is_app(n));
|
SASSERT(is_app(n));
|
||||||
SASSERT(!gate_ctx);
|
|
||||||
internalize_term(to_app(n));
|
internalize_term(to_app(n));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -297,7 +297,7 @@ namespace smt {
|
||||||
TRACE("datatype", tout << "internalizing term:\n" << mk_pp(term, m) << "\n";);
|
TRACE("datatype", tout << "internalizing term:\n" << mk_pp(term, m) << "\n";);
|
||||||
unsigned num_args = term->get_num_args();
|
unsigned num_args = term->get_num_args();
|
||||||
for (unsigned i = 0; i < num_args; i++)
|
for (unsigned i = 0; i < num_args; i++)
|
||||||
ctx.internalize(term->get_arg(i), has_quantifiers(term));
|
ctx.internalize(term->get_arg(i), m.is_bool(term) && has_quantifiers(term));
|
||||||
// the internalization of the arguments may trigger the internalization of term.
|
// the internalization of the arguments may trigger the internalization of term.
|
||||||
if (ctx.e_internalized(term))
|
if (ctx.e_internalized(term))
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue