3733 {
3734 array<unsigned> sort_refs(n);
3735 array<Z3_sort> sorts(n);
3736 array<Z3_symbol> _names(n);
3737 for (unsigned i = 0; i < n; ++i) sorts[i] = fields[i], _names[i] = names[i];
3738 cons.push_back(
Z3_mk_constructor(ctx, name, rec, n, _names.ptr(), sorts.ptr(), sort_refs.ptr()));
3739 num_fields.push_back(n);
3740 }
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.