Skip to content

Commit

Permalink
Only print func-decl names for indexed parameters (#6663)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgvk94 committed Apr 2, 2023
1 parent e0a066e commit 6324db2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ast/ast_smt2_pp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ format * smt2_pp_environment::pp_fdecl_params(format * fname, func_decl * f) {
std::string str = f->get_parameter(i).get_rational().to_string();
fs.push_back(mk_string(get_manager(), str));
}
else
fs.push_back(pp_fdecl_ref(to_func_decl(f->get_parameter(i).get_ast())));
else {
unsigned len;
fs.push_back(pp_fdecl_name(to_func_decl(f->get_parameter(i).get_ast()), len));
}
}
return mk_seq1(get_manager(), fs.begin(), fs.end(), f2f(), "_");
}
Expand Down

0 comments on commit 6324db2

Please sign in to comment.