3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-28 17:08:45 +00:00

build fixes

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-07-13 09:13:41 -07:00
parent 939bf1c725
commit b909b87acc
2 changed files with 30 additions and 27 deletions

View file

@ -38,6 +38,7 @@ namespace polymorphism {
if (!u.has_type_vars(e)) if (!u.has_type_vars(e))
return; return;
// insert e into the occurs list for polymorphic roots // insert e into the occurs list for polymorphic roots
ast_mark seen; ast_mark seen;
for (auto* f : inst.m_poly_fns) { for (auto* f : inst.m_poly_fns) {

View file

@ -41,8 +41,10 @@ namespace polymorphism {
vector<parameter> ps; vector<parameter> ps;
for (unsigned i = 0; i < n; ++i) { for (unsigned i = 0; i < n; ++i) {
auto p = s->get_parameter(i); auto p = s->get_parameter(i);
if (p.is_ast() && is_sort(p.get_ast())) if (p.is_ast() && is_sort(p.get_ast())) {
ps.push_back(parameter((*this)(to_sort(p.get_ast())))); sort_ref s = (*this)(to_sort(p.get_ast()));
ps.push_back(parameter(s.get()));
}
else else
ps.push_back(p); ps.push_back(p);
} }
@ -101,11 +103,11 @@ namespace polymorphism {
if (pending) if (pending)
continue; continue;
todo.pop_back(); todo.pop_back();
ptr_buffer<sort> sorts; domain.reset();
for (unsigned i = 0; i < q->get_num_decls(); ++i) for (unsigned i = 0; i < q->get_num_decls(); ++i)
sorts.push_back((*this)(q->get_decl_sort(i))); domain.push_back((*this)(q->get_decl_sort(i)));
quantifier* q2 = quantifier* q2 =
m.mk_quantifier(q->get_kind(), q->get_num_decls(), sorts.data(), q->get_decl_names(), result.get(q->get_expr()->get_id()), m.mk_quantifier(q->get_kind(), q->get_num_decls(), domain.data(), q->get_decl_names(), result.get(q->get_expr()->get_id()),
q->get_weight(), q->get_weight(),
q->get_qid(), q->get_skid(), q->get_qid(), q->get_skid(),
q->get_num_patterns(), patterns.data(), q->get_num_no_patterns(), no_patterns.data() q->get_num_patterns(), patterns.data(), q->get_num_no_patterns(), no_patterns.data()