mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 14:23:40 +00:00
have theory_recfun use recursive function discriminator to control when it is enabled
This commit is contained in:
parent
f004478565
commit
cbc5b1f4f6
2 changed files with 7 additions and 7 deletions
|
@ -442,17 +442,18 @@ namespace recfun {
|
|||
return promise_def(&u(), d);
|
||||
}
|
||||
|
||||
void plugin::inherit(decl_plugin* other, ast_translation& tr) {
|
||||
for (auto [k, v] : static_cast<plugin*>(other)->m_defs) {
|
||||
void plugin::inherit(decl_plugin* _other, ast_translation& tr) {
|
||||
plugin* other = static_cast<plugin*>(_other);
|
||||
for (auto [k, v] : other->m_defs) {
|
||||
func_decl_ref f(tr(k), tr.to());
|
||||
if (m_defs.contains(f))
|
||||
continue;
|
||||
def* d = v->copy(u(), tr);
|
||||
m_defs.insert(f, d);
|
||||
for (case_def & c : d->get_cases())
|
||||
m_case_defs.insert(c.get_decl(), &c);
|
||||
|
||||
m_case_defs.insert(c.get_decl(), &c);
|
||||
}
|
||||
m_has_rec_defs = other->m_has_rec_defs;
|
||||
}
|
||||
|
||||
promise_def plugin::ensure_def(symbol const& name, unsigned n, sort *const * params, sort * range, bool is_generated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue