3588 {
3589 array<unsigned> sort_refs(n);
3590 array<Z3_sort> sorts(n);
3591 array<Z3_symbol> _names(n);
3592 for (unsigned i = 0; i < n; ++i) sorts[i] = fields[i], _names[i] = names[i];
3593 cons.push_back(
Z3_mk_constructor(ctx, name, rec, n, _names.ptr(), sorts.ptr(), sort_refs.ptr()));
3594 num_fields.push_back(n);
3595 }
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.