get_tuple_sort_field_decl method

Z3_func_decl get_tuple_sort_field_decl(
  1. Z3_context c,
  2. Z3_sort t,
  3. int i
)

\brief Return the i-th field declaration (i.e., projection function declaration) of the given tuple sort.

\pre Z3_get_sort_kind(t) == Z3_DATATYPE_SORT \pre i < Z3_get_tuple_sort_num_fields(c, t)

\sa Z3_mk_tuple_sort \sa Z3_get_sort_kind

def_API('Z3_get_tuple_sort_field_decl', FUNC_DECL, (_in(CONTEXT), _in(SORT), _in(UINT)))

Implementation

Z3_func_decl get_tuple_sort_field_decl(
  Z3_context c,
  Z3_sort t,
  int i,
) {
  return _get_tuple_sort_field_decl(
    c,
    t,
    i,
  );
}