3683 {
3684 array<unsigned> sort_refs(n);
3685 array<Z3_sort> sorts(n);
3686 array<Z3_symbol> _names(n);
3687 for (unsigned i = 0; i < n; ++i) sorts[i] = fields[i], _names[i] = names[i];
3688 cons.push_back(
Z3_mk_constructor(ctx, name, rec, n, _names.ptr(), sorts.ptr(), sort_refs.ptr()));
3689 num_fields.push_back(n);
3690 }
Z3_constructor Z3_API Z3_mk_constructor(Z3_context c, Z3_symbol name, Z3_symbol recognizer, unsigned num_fields, Z3_symbol const field_names[], Z3_sort const sorts[], unsigned sort_refs[])
Create a constructor.