Skip to content

Commit 3e518b9

Browse files
fix #7331
1 parent 26b8d63 commit 3e518b9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/ast/ast_smt_pp.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Revision History:
3131
#include "ast/datatype_decl_plugin.h"
3232
#include "ast/seq_decl_plugin.h"
3333
#include "ast/fpa_decl_plugin.h"
34+
#include "ast/recfun_decl_plugin.h"
3435
#include "ast/for_each_ast.h"
3536
#include "ast/decl_collector.h"
3637
#include "math/polynomial/algebraic_numbers.h"
@@ -1000,6 +1001,18 @@ void ast_smt_pp::display_smt2(std::ostream& strm, expr* n) {
10001001
}
10011002
}
10021003

1004+
vector<std::pair<func_decl*, expr*>> recfuns;
1005+
recfun::util u(m);
1006+
for (auto f : decls.get_rec_decls())
1007+
recfuns.push_back({f, u.get_def(f).get_rhs()});
1008+
1009+
1010+
if (!recfuns.empty()) {
1011+
smt2_pp_environment_dbg env(m);
1012+
ast_smt2_pp_recdefs(strm, recfuns, env);
1013+
}
1014+
1015+
10031016
#endif
10041017

10051018
for (expr* a : m_assumptions) {

0 commit comments

Comments
 (0)