mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
disable macro finder tactic if there are recursive functions fix #5574
This commit is contained in:
parent
137e5c5263
commit
62fd22f555
3 changed files with 7 additions and 2 deletions
|
@ -17,6 +17,7 @@ Notes:
|
|||
|
||||
--*/
|
||||
#include "tactic/tactical.h"
|
||||
#include "ast/recfun_decl_plugin.h"
|
||||
#include "ast/macros/macro_manager.h"
|
||||
#include "ast/macros/macro_finder.h"
|
||||
#include "tactic/generic_model_converter.h"
|
||||
|
@ -42,6 +43,12 @@ class macro_finder_tactic : public tactic {
|
|||
tactic_report report("macro-finder", *g);
|
||||
TRACE("macro-finder", g->display(tout););
|
||||
|
||||
recfun::util rec(m());
|
||||
if (!rec.get_rec_funs().empty()) {
|
||||
result.push_back(g.get());
|
||||
return;
|
||||
}
|
||||
|
||||
bool produce_proofs = g->proofs_enabled();
|
||||
bool unsat_core_enabled = g->unsat_core_enabled();
|
||||
macro_manager mm(m_manager);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue