Skip to content

Commit

Permalink
fix #7331
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Aug 6, 2024
1 parent 26b8d63 commit 3e518b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ast/ast_smt_pp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Revision History:
#include "ast/datatype_decl_plugin.h"
#include "ast/seq_decl_plugin.h"
#include "ast/fpa_decl_plugin.h"
#include "ast/recfun_decl_plugin.h"
#include "ast/for_each_ast.h"
#include "ast/decl_collector.h"
#include "math/polynomial/algebraic_numbers.h"
Expand Down Expand Up @@ -1000,6 +1001,18 @@ void ast_smt_pp::display_smt2(std::ostream& strm, expr* n) {
}
}

vector<std::pair<func_decl*, expr*>> recfuns;
recfun::util u(m);
for (auto f : decls.get_rec_decls())
recfuns.push_back({f, u.get_def(f).get_rhs()});


if (!recfuns.empty()) {
smt2_pp_environment_dbg env(m);
ast_smt2_pp_recdefs(strm, recfuns, env);
}


#endif

for (expr* a : m_assumptions) {
Expand Down

0 comments on commit 3e518b9

Please sign in to comment.