/*
** Automatically generated from `type_ctor_info.m'
** by the Mercury compiler,
** version 11.07, configured for x86_64-unknown-linux-gnu.
** Do not edit.
**
** The autoconfigured grade settings governing
** the generation of this C file were
**
** TAG_BITS=2
** UNBOXED_FLOAT=no
** HIGHLEVEL_CODE=no
**
** END_OF_C_GRADE_INFO
*/

/*
INIT mercury__backend_libs__type_ctor_info__init
ENDINIT
*/

#define MR_ALLOW_RESET
#include "mercury_imp.h"
#line 140 "../library/io.int2"
#include "io.mh"

#line 28 "backend_libs.type_ctor_info.c"
#line 150 "../library/io.int2"
#include "time.mh"

#line 32 "backend_libs.type_ctor_info.c"
#line 151 "../library/io.int2"
#include "string.mh"

#line 36 "backend_libs.type_ctor_info.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 40 "backend_libs.type_ctor_info.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 44 "backend_libs.type_ctor_info.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 48 "backend_libs.type_ctor_info.c"
#line 49 "backend_libs.type_ctor_info.c"
#include "backend_libs.type_ctor_info.mh"

#line 52 "backend_libs.type_ctor_info.c"
#line 53 "backend_libs.type_ctor_info.c"
#ifndef BACKEND_LIBS__TYPE_CTOR_INFO_DECL_GUARD
#define BACKEND_LIBS__TYPE_CTOR_INFO_DECL_GUARD

#line 57 "backend_libs.type_ctor_info.c"
#line 58 "backend_libs.type_ctor_info.c"

#endif
#line 61 "backend_libs.type_ctor_info.c"

#ifdef _MSC_VER
#define MR_STATIC_LINKAGE extern
#else
#define MR_STATIC_LINKAGE static
#endif

struct mercury_type_0 {
	MR_Integer f1;
};
MR_STATIC_LINKAGE const struct mercury_type_0 mercury_common_0[];

struct mercury_type_1 {
	MR_Word * f1[3];
};
MR_STATIC_LINKAGE const struct mercury_type_1 mercury_common_1[];

struct mercury_type_2 {
	MR_Word * f1;
	MR_Word * f2;
	MR_Integer f3;
	MR_Word * f4;
	MR_Word * f5;
};
MR_STATIC_LINKAGE const struct mercury_type_2 mercury_common_2[];

struct mercury_type_3 {
	MR_Word * f1[2];
};
MR_STATIC_LINKAGE const struct mercury_type_3 mercury_common_3[];

struct mercury_type_4 {
	MR_Integer f1[2];
};
MR_STATIC_LINKAGE const struct mercury_type_4 mercury_common_4[];

struct mercury_type_5 {
	MR_Word * f1;
	MR_Code * f2;
	MR_Integer f3;
};
MR_STATIC_LINKAGE const struct mercury_type_5 mercury_common_5[];

struct mercury_type_6 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[5];
};
MR_STATIC_LINKAGE const struct mercury_type_6 mercury_common_6[];

struct mercury_type_7 {
	MR_Integer f1;
	MR_Word * f2;
};
MR_STATIC_LINKAGE const struct mercury_type_7 mercury_common_7[];

struct mercury_type_8 {
	MR_Word * f1;
};
MR_STATIC_LINKAGE const struct mercury_type_8 mercury_common_8[];

struct mercury_type_9 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[6];
};
MR_STATIC_LINKAGE const struct mercury_type_9 mercury_common_9[];

struct mercury_type_10 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[3];
};
MR_STATIC_LINKAGE const struct mercury_type_10 mercury_common_10[];

struct mercury_type_11 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[4];
};
MR_STATIC_LINKAGE const struct mercury_type_11 mercury_common_11[];

extern const MR_TypeCtorInfo_Struct
	mercury_data_backend_libs__type_ctor_info__type_ctor_info_maybe_reserved_rep_0,
	mercury_data_backend_libs__type_ctor_info__type_ctor_info_name_sort_info_0,
	mercury_data_backend_libs__type_ctor_info__type_ctor_info_reserved_addr_map_0,
	mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_list_0,
	mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_map_0;
MR_decl_label1(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0, 4)
MR_decl_label10(backend_libs__type_ctor_info__builtin_type_ctor_4_0, 6,7,8,9,10,11,12,13,15,3)
MR_decl_label4(backend_libs__type_ctor_info__builtin_type_ctor_4_0, 21,22,18,1)
MR_decl_label6(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0, 45,3,5,9,10,12)
MR_decl_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0, 2,3,4,5,6,12,7,8,15,19)
MR_decl_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0, 16,17,25,22,23,31,30,33,35,37)
MR_decl_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0, 39,41,29,42,46,48,50,47,45,56)
MR_decl_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0, 55,60,61,64,66,69,63,72,75,78)
MR_decl_label3(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0, 11,3,4)
MR_decl_label4(backend_libs__type_ctor_info__find_type_info_index_6_0, 2,3,5,6)
MR_decl_label5(backend_libs__type_ctor_info__first_matching_type_class_info_6_0, 25,4,7,5,3)
MR_decl_label10(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0, 78,4,8,9,11,13,14,15,16,17)
MR_decl_label10(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0, 18,23,51,28,29,30,33,34,35,20)
MR_decl_label4(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0, 39,40,6,45)
MR_decl_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0, 2,3,4,5,10,32,15,16,17,20)
MR_decl_label5(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0, 21,22,7,25,26)
MR_decl_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0, 3,4,8,10,14,16,13,18,27,28)
MR_decl_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0, 29,30,31,32,33,34,35,24,40,41)
MR_decl_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0, 37,22,48,52,53,54,55,56,57,58)
MR_decl_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0, 59,60,61,112,63,64,66,7,6,69)
MR_decl_label4(backend_libs__type_ctor_info__generate_du_arg_info_4_0, 3,4,6,8)
MR_decl_label10(backend_libs__type_ctor_info__generate_exist_into_4_0, 4,5,6,8,9,10,13,14,16,18)
MR_decl_label1(backend_libs__type_ctor_info__generate_exist_into_4_0, 20)
MR_decl_label10(backend_libs__type_ctor_info__generate_hlds_2_0, 2,3,4,5,7,8,10,12,13,14)
MR_decl_label1(backend_libs__type_ctor_info__generate_hlds_2_0, 6)
MR_decl_label3(backend_libs__type_ctor_info__generate_rtti_2_0, 2,3,4)
MR_decl_label7(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0, 3,6,8,12,16,18,21)
MR_decl_label10(backend_libs__type_ctor_info__impl_type_ctor_4_0, 4,8,9,10,11,12,13,14,15,16)
MR_decl_label2(backend_libs__type_ctor_info__impl_type_ctor_4_0, 17,1)
MR_decl_label10(backend_libs__type_ctor_info__make_du_details_8_0, 2,4,6,7,10,11,15,17,20,13)
MR_decl_label3(backend_libs__type_ctor_info__make_du_details_8_0, 23,25,28)
MR_decl_label4(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0, 4,6,2,8)
MR_decl_label10(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0, 5,6,7,4,9,12,13,8,16,3)
MR_decl_label10(backend_libs__type_ctor_info__make_enum_functors_5_0, 31,5,7,8,10,11,13,16,17,19)
MR_decl_label2(backend_libs__type_ctor_info__make_enum_maps_5_0, 2,3)
MR_decl_label10(backend_libs__type_ctor_info__make_foreign_enum_details_7_0, 3,2,5,6,7,11,14,15,16,17)
MR_decl_label2(backend_libs__type_ctor_info__make_foreign_enum_details_7_0, 18,19)
MR_decl_label10(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0, 39,5,7,8,10,11,13,17,15,14)
MR_decl_label2(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0, 19,21)
MR_decl_label2(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0, 2,3)
MR_decl_label10(backend_libs__type_ctor_info__make_maybe_res_functors_7_0, 53,4,5,6,8,9,11,13,14,15)
MR_decl_label6(backend_libs__type_ctor_info__make_maybe_res_functors_7_0, 12,18,22,24,26,29)
MR_decl_label10(backend_libs__type_ctor_info__make_mercury_enum_details_6_0, 3,2,5,6,7,11,12,19,20,21)
MR_decl_label4(backend_libs__type_ctor_info__make_mercury_enum_details_6_0, 22,23,24,25)
MR_decl_label2(backend_libs__type_ctor_info__make_notag_details_6_0, 2,3)
MR_decl_label6(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0, 3,2,6,8,4,10)
MR_decl_label1(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0, 2)
MR_decl_label1(fn__backend_libs__type_ctor_info__is_du_functor_1_0, 1)
MR_decl_label1(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0, 1)
MR_decl_label5(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0, 4,5,6,7,8)
MR_decl_label3(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0, 16,5,1)
MR_decl_label5(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0, 3,2,7,5,10)
MR_decl_static(backend_libs__type_ctor_info__builtin_type_ctor_4_0)
MR_decl_static(backend_libs__type_ctor_info__impl_type_ctor_4_0)
MR_decl_static(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0)
MR_decl_static(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0)
MR_decl_static(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0)
MR_def_extern_entry(backend_libs__type_ctor_info__generate_hlds_2_0)
MR_decl_static(backend_libs__type_ctor_info__make_notag_details_6_0)
MR_decl_static(backend_libs__type_ctor_info__make_enum_functors_5_0)
MR_decl_static(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0)
MR_decl_static(backend_libs__type_ctor_info__make_mercury_enum_details_6_0)
MR_decl_static(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0)
MR_decl_static(backend_libs__type_ctor_info__make_foreign_enum_details_7_0)
MR_decl_static(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0)
MR_decl_static(backend_libs__type_ctor_info__generate_exist_into_4_0)
MR_decl_static(backend_libs__type_ctor_info__make_maybe_res_functors_7_0)
MR_decl_static(backend_libs__type_ctor_info__make_du_details_8_0)
MR_decl_static(backend_libs__type_ctor_info__construct_type_ctor_info_3_0)
MR_decl_static(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0)
MR_def_extern_entry(backend_libs__type_ctor_info__generate_rtti_2_0)
MR_decl_static(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0)
MR_def_extern_entry(fn__backend_libs__type_ctor_info__compute_contains_var_bit_vector_1_0)
MR_decl_static(backend_libs__type_ctor_info__make_enum_maps_5_0)
MR_decl_static(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0)
MR_decl_static(fn__backend_libs__type_ctor_info__is_du_functor_1_0)
MR_decl_static(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0)
MR_decl_static(backend_libs__type_ctor_info__generate_du_arg_info_4_0)
MR_decl_static(backend_libs__type_ctor_info__first_matching_type_class_info_6_0)
MR_decl_static(backend_libs__type_ctor_info__find_type_info_index_6_0)
MR_decl_static(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0)
MR_decl_static(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0)
MR_decl_static(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0)
MR_decl_static(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0)
MR_decl_static(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0)
MR_decl_static(__Unify___backend_libs__type_ctor_info__name_sort_info_0_0)
MR_decl_static(__Compare___backend_libs__type_ctor_info__name_sort_info_0_0)
MR_decl_static(__Unify___backend_libs__type_ctor_info__reserved_addr_map_0_0)
MR_decl_static(__Compare___backend_libs__type_ctor_info__reserved_addr_map_0_0)
MR_decl_static(__Unify___backend_libs__type_ctor_info__tag_list_0_0)
MR_decl_static(__Compare___backend_libs__type_ctor_info__tag_list_0_0)
MR_decl_static(__Unify___backend_libs__type_ctor_info__tag_map_0_0)
MR_decl_static(__Compare___backend_libs__type_ctor_info__tag_map_0_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__gen_builtin_type_ctor_gen_infos__206__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__622__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__624__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__627__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__631__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__689__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__691__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__694__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__700__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__778__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__786__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__842__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__843__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__844__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__938__1_2_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__956__1_3_0)
MR_decl_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_ptag_ordered_table__1020__1_2_0)
MR_decl_static(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0)

static const struct mercury_type_0 mercury_common_0[2] =
{
{
1
},
{
0
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_special_pred_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_type_ctor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_enum_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_enum_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_foreign_enum_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_foreign_enum_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_exist_typeinfo_locn_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_exist_typeinfo_locn_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_class_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_hlds_class_defn_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_sectag_table_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_sectag_table_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_maybe_reserved_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_maybe_reserved_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_ctor_rtti_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_sectag_locn_0;
static const struct mercury_type_1 mercury_common_1[29] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, special_pred_id),
MR_CTOR0_ADDR(parse_tree__prog_data, type_ctor)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_TAG_COMMON(0,3,0),
MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_COMMON(3,1),
MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(parse_tree__prog_data, class_id),
MR_CTOR0_ADDR(hlds__hlds_data, hlds_class_defn)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, sectag_table)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, sectag_table)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, du_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_TAG_COMMON(0,1,16)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, du_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_COMMON(1,18)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_TAG_COMMON(0,1,20)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_COMMON(1,22)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_STRING_CTOR_ADDR,
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_TAG_COMMON(0,1,24),
MR_CTOR0_ADDR(backend_libs__rtti, ctor_rtti_name)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, ctor_rtti_name)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(backend_libs__rtti, sectag_locn),
MR_TAG_COMMON(0,1,26)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_INT_CTOR_ADDR,
MR_TAG_COMMON(0,1,27)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_cons_tag_0;
static const MR_UserClosureId
mercury_data__closure_layout__fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_constructor_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_libs__globals__type_ctor_info_foreign_language_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_details_7_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_constraint_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_tc_constraint_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_4;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_maybe_reserved_functor_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_functor_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_reserved_functor_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_uses_reserved_address_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_6;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_sectag_locn_0;
static const struct mercury_type_2 mercury_common_2[23] =
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(3,2),
MR_COMMON(3,2)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(3,3),
MR_COMMON(3,3)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__hlds_data, cons_tag),
MR_CTOR0_ADDR(hlds__hlds_data, cons_tag)
},
{
(MR_Word *) &mercury_data__closure_layout__fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, constructor),
MR_COMMON(1,2)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, constructor),
MR_COMMON(1,2)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, constructor),
MR_COMMON(1,2)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(3,2),
MR_COMMON(3,2)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(3,3),
MR_COMMON(3,3)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(libs__globals, foreign_language),
MR_CTOR0_ADDR(libs__globals, foreign_language)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_details_7_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, constructor),
MR_COMMON(1,2)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint),
MR_COMMON(3,5)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint),
MR_CTOR0_ADDR(backend_libs__rtti, tc_constraint)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(3,7),
MR_COMMON(3,7)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(3,8),
MR_COMMON(3,8)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor),
MR_CTOR0_ADDR(backend_libs__rtti, du_functor)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor),
MR_CTOR0_ADDR(backend_libs__rtti, reserved_functor)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, uses_reserved_address),
MR_CTOR0_ADDR(parse_tree__prog_data, uses_reserved_address)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_6,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(parse_tree__prog_data, uses_reserved_address),
MR_CTOR0_ADDR(parse_tree__prog_data, uses_reserved_address)
},
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(backend_libs__rtti, sectag_locn),
MR_CTOR0_ADDR(backend_libs__rtti, sectag_locn)
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_var_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_tvar_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_var_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_tvar_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_constraint_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_arg_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_maybe__type_ctor_info_maybe_1;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_exist_info_0;
static const struct mercury_type_3 mercury_common_3[9] =
{
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(3,1)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(backend_libs__rtti, du_arg_info)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_CTOR0_ADDR(backend_libs__rtti, exist_info)
}
},
};

static const struct mercury_type_4 mercury_common_4[3] =
{
{
{
1,
0
}
},
{
{
5,
0
}
},
{
{
5,
1
}
},
};

MR_decl_entry(fn__backend_libs__type_class_info__generate_class_constraint_1_0);
static const struct mercury_type_5 mercury_common_5[14] =
{
{
MR_COMMON(2,5),
MR_ENTRY_AP(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0),
0
},
{
MR_COMMON(6,0),
MR_ENTRY_AP(backend_libs__type_ctor_info__make_enum_maps_5_0),
0
},
{
MR_COMMON(2,6),
MR_ENTRY_AP(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0),
0
},
{
MR_COMMON(2,7),
MR_ENTRY_AP(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0),
0
},
{
MR_COMMON(6,1),
MR_ENTRY_AP(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0),
0
},
{
MR_COMMON(2,12),
MR_ENTRY_AP(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0),
0
},
{
MR_COMMON(2,13),
MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__938__1_2_0),
0
},
{
MR_COMMON(6,2),
MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0),
0
},
{
MR_COMMON(2,14),
MR_ENTRY_AP(fn__backend_libs__type_class_info__generate_class_constraint_1_0),
0
},
{
MR_COMMON(2,18),
MR_ENTRY_AP(fn__backend_libs__type_ctor_info__is_du_functor_1_0),
0
},
{
MR_COMMON(2,19),
MR_ENTRY_AP(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0),
0
},
{
MR_COMMON(10,1),
MR_ENTRY_AP(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0),
0
},
{
MR_COMMON(10,2),
MR_ENTRY_AP(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0),
0
},
{
MR_COMMON(10,3),
MR_ENTRY_AP(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0),
0
},
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_enum_functor_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_details_7_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_foreign_enum_functor_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_2;
static const struct mercury_type_6 mercury_common_6[3] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(backend_libs__rtti, enum_functor),
MR_COMMON(1,5),
MR_COMMON(1,5),
MR_COMMON(1,6),
MR_COMMON(1,6)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_details_7_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor),
MR_COMMON(1,9),
MR_COMMON(1,9),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_2,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(3,6),
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR,
MR_COMMON(1,12),
MR_COMMON(1,12)
}
},
};

static const struct mercury_type_7 mercury_common_7[1] =
{
{
0,
MR_tbmkword(0, 0)
},
};

static const struct mercury_type_8 mercury_common_8[1] =
{
{
MR_TAG_COMMON(0,7,0)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_3;
static const struct mercury_type_9 mercury_common_9[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_3,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_COMMON(3,3),
MR_COMMON(1,13),
MR_INT_CTOR_ADDR,
MR_COMMON(3,6),
MR_COMMON(1,12),
MR_COMMON(1,12)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_5;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_exist_typeinfo_locn_0;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_5;
static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_7;
static const struct mercury_type_10 mercury_common_10[4] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_5,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_COMMON(1,12),
MR_COMMON(3,6),
MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_3,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(backend_libs__rtti, du_functor),
MR_COMMON(1,15),
MR_COMMON(1,15)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_5,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(backend_libs__rtti, du_functor),
MR_COMMON(1,19),
MR_COMMON(1,19)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_7,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor),
MR_COMMON(1,23),
MR_COMMON(1,23)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_constructor_arg_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_arg_info_0;
static const struct mercury_type_11 mercury_common_11[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_1,
(MR_Word *) (MR_Integer) 0
},
4,
{
MR_INT_CTOR_ADDR,
MR_COMMON(3,2),
MR_CTOR0_ADDR(parse_tree__prog_data, constructor_arg),
MR_CTOR0_ADDR(backend_libs__rtti, du_arg_info)
}
},
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_reserved_address_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_reserved_address_0;

const MR_PseudoTypeInfo mercury_data_backend_libs__type_ctor_info__field_types_maybe_reserved_rep_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_data__type_ctor_info_reserved_address_0
};

static const MR_DuFunctorDesc mercury_data_backend_libs__type_ctor_info__du_functor_desc_maybe_reserved_rep_0_0 = {
	"reserved_rep",
	1,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_backend_libs__type_ctor_info__field_types_maybe_reserved_rep_0_0,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_rep_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_rep_0;

const MR_PseudoTypeInfo mercury_data_backend_libs__type_ctor_info__field_types_maybe_reserved_rep_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_backend_libs__rtti__type_ctor_info_du_rep_0
};

static const MR_DuFunctorDesc mercury_data_backend_libs__type_ctor_info__du_functor_desc_maybe_reserved_rep_0_1 = {
	"du_rep",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_backend_libs__type_ctor_info__field_types_maybe_reserved_rep_0_1,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_backend_libs__type_ctor_info__du_stag_ordered_maybe_reserved_rep_0_0[] = {
	&mercury_data_backend_libs__type_ctor_info__du_functor_desc_maybe_reserved_rep_0_0

};

const MR_DuFunctorDescPtr mercury_data_backend_libs__type_ctor_info__du_stag_ordered_maybe_reserved_rep_0_1[] = {
	&mercury_data_backend_libs__type_ctor_info__du_functor_desc_maybe_reserved_rep_0_1

};

const MR_DuPtagLayout mercury_data_backend_libs__type_ctor_info__du_ptag_ordered_maybe_reserved_rep_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_backend_libs__type_ctor_info__du_stag_ordered_maybe_reserved_rep_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_backend_libs__type_ctor_info__du_stag_ordered_maybe_reserved_rep_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_backend_libs__type_ctor_info__du_name_ordered_maybe_reserved_rep_0[] = {
	&mercury_data_backend_libs__type_ctor_info__du_functor_desc_maybe_reserved_rep_0_1,
	&mercury_data_backend_libs__type_ctor_info__du_functor_desc_maybe_reserved_rep_0_0
};

const MR_Integer mercury_data_backend_libs__type_ctor_info__functor_number_map_maybe_reserved_rep_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_backend_libs__type_ctor_info__type_ctor_info_maybe_reserved_rep_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0)),
	"backend_libs.type_ctor_info",
	"maybe_reserved_rep",
	{ (void *)mercury_data_backend_libs__type_ctor_info__du_name_ordered_maybe_reserved_rep_0 },
	{ (void *)mercury_data_backend_libs__type_ctor_info__du_ptag_ordered_maybe_reserved_rep_0 },
	2,
	4,
	mercury_data_backend_libs__type_ctor_info__functor_number_map_maybe_reserved_rep_0
};

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_string_0,
	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_ctor_rtti_name_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0,
	(MR_TypeInfo) &mercury_data_backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1pair__ti_pair_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};

const MR_TypeCtorInfo_Struct mercury_data_backend_libs__type_ctor_info__type_ctor_info_name_sort_info_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___backend_libs__type_ctor_info__name_sort_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___backend_libs__type_ctor_info__name_sort_info_0_0)),
	"backend_libs.type_ctor_info",
	"name_sort_info",
	{ 0 },
	{ (void *)&mercury_data_list__ti_list_1pair__ti_pair_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 },
	-1,
	0,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_rtti_data_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_rtti_data_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2hlds__hlds_data__type_ctor_info_reserved_address_0backend_libs__rtti__type_ctor_info_rtti_data_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_data__type_ctor_info_reserved_address_0,
	(MR_TypeInfo) &mercury_data_backend_libs__rtti__type_ctor_info_rtti_data_0
}};

const MR_TypeCtorInfo_Struct mercury_data_backend_libs__type_ctor_info__type_ctor_info_reserved_addr_map_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___backend_libs__type_ctor_info__reserved_addr_map_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___backend_libs__type_ctor_info__reserved_addr_map_0_0)),
	"backend_libs.type_ctor_info",
	"reserved_addr_map",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2hlds__hlds_data__type_ctor_info_reserved_address_0backend_libs__rtti__type_ctor_info_rtti_data_0 },
	-1,
	0,
	NULL
};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_TypeInfo) &mercury_data_backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_sectag_locn_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_backend_libs__rtti__type_ctor_info_sectag_locn_0,
	(MR_TypeInfo) &mercury_data_tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2builtin__type_ctor_info_int_0pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_TypeInfo) &mercury_data_pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1pair__ti_pair_2builtin__type_ctor_info_int_0pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2builtin__type_ctor_info_int_0pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};

const MR_TypeCtorInfo_Struct mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_list_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___backend_libs__type_ctor_info__tag_list_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___backend_libs__type_ctor_info__tag_list_0_0)),
	"backend_libs.type_ctor_info",
	"tag_list",
	{ 0 },
	{ (void *)&mercury_data_list__ti_list_1pair__ti_pair_2builtin__type_ctor_info_int_0pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 },
	-1,
	0,
	NULL
};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2builtin__type_ctor_info_int_0pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_TypeInfo) &mercury_data_pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0
}};

const MR_TypeCtorInfo_Struct mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_map_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___backend_libs__type_ctor_info__tag_map_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___backend_libs__type_ctor_info__tag_map_0_0)),
	"backend_libs.type_ctor_info",
	"tag_map",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2builtin__type_ctor_info_int_0pair__ti_pair_2backend_libs__rtti__type_ctor_info_sectag_locn_0tree234__ti_tree234_2builtin__type_ctor_info_int_0backend_libs__rtti__type_ctor_info_ctor_rtti_name_0 },
	-1,
	0,
	NULL
};


static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_1020",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
1020,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_7 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"make_res_name_ordered_table",
3,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
788,
"41"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_6 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_786",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
786,
"35"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_5 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"make_du_name_ordered_table",
3,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
780,
"29"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_4 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_778",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
778,
"23"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_3 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"make_du_ptag_ordered_table",
3,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
773,
"16"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_2 = {
{
MR_FUNCTION,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"is_reserved_functor",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
772,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_du_details_8_0_1 = {
{
MR_FUNCTION,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"is_du_functor",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
771,
"13"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_4 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_844",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
844,
"54"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_3 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_843",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
843,
"48"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_2 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_842",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
842,
"42"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_maybe_res_functors_7_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"generate_du_arg_info",
4,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
824,
"24"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_5 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_956",
3,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
956,
"38"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_4 = {
{
MR_FUNCTION,
"backend_libs.type_class_info",
"backend_libs.type_class_info",
"generate_class_constraint",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
955,
"37"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_3 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"find_type_info_index",
6,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
953,
"34"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_2 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_946",
5,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
946,
"18"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__generate_exist_into_4_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_938",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
938,
"6"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_details_7_0_2 = {
{
MR_FUNCTION,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_1081",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
1081,
"6"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_details_7_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"make_foreign_enum_maps",
5,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
667,
"21"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_4 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_700",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
700,
"41"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_3 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_694",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
694,
"29"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_2 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_691",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
691,
"22"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_689",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
689,
"16"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_3 = {
{
MR_FUNCTION,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_1081",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
1081,
"6"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_2 = {
{
MR_FUNCTION,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_1081",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
1081,
"6"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_mercury_enum_details_6_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"make_enum_maps",
5,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
596,
"20"
};

static const MR_UserClosureId
mercury_data__closure_layout__fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_1 = {
{
MR_FUNCTION,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_1081",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
1081,
"6"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_4 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_631",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
631,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_3 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_627",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
627,
"27"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_2 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_624",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
624,
"20"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__make_enum_functors_5_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_622",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
622,
"14"
};

static const MR_UserClosureId
mercury_data__closure_layout__backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_1 = {
{
MR_PREDICATE,
"backend_libs.type_ctor_info",
"backend_libs.type_ctor_info",
"lambda_type_ctor_info_m_206",
2,
0
},
"backend_libs.type_ctor_info",
"type_ctor_info.m",
206,
"16"
};



MR_BEGIN_MODULE(backend_libs__type_ctor_info_module0)
	MR_init_entry1(backend_libs__type_ctor_info__builtin_type_ctor_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__builtin_type_ctor_4_0);
	MR_init_label10(backend_libs__type_ctor_info__builtin_type_ctor_4_0,6,7,8,9,10,11,12,13,15,3)
	MR_init_label4(backend_libs__type_ctor_info__builtin_type_ctor_4_0,21,22,18,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'builtin_type_ctor'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__builtin_type_ctor_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("builtin", 7)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i3);
	}
	if (MR_INT_NE(MR_r3,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("int", 3)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i6);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("func", 4)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i7);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 6);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("pred", 4)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i8);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 5);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("void", 4)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i9);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 4);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("float", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i10);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 1);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("tuple", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i11);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 7);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("string", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i12);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 3);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("c_pointer", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i13);
	}
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,0,0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("character", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i15);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 2);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("stable_c_pointer", 16)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,0,1);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("type_desc", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i18);
	}
	if (MR_INT_NE(MR_r3,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("type_desc", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i21);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 9);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("type_ctor_desc", 14)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i22);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 11);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("pseudo_type_desc", 16)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 10);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("private_builtin", 15)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("ref", 3)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	if (MR_INT_NE(MR_r3,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__builtin_type_ctor_4_0_i1);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 8);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__builtin_type_ctor_4_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module1)
	MR_init_entry1(backend_libs__type_ctor_info__impl_type_ctor_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__impl_type_ctor_4_0);
	MR_init_label10(backend_libs__type_ctor_info__impl_type_ctor_4_0,4,8,9,10,11,12,13,14,15,16)
	MR_init_label2(backend_libs__type_ctor_info__impl_type_ctor_4_0,17,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'impl_type_ctor'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__impl_type_ctor_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r3,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i1);
	}
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("table_builtin", 13)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i4);
	}
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("ml_subgoal", 10)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i1);
	}
	MR_r2 = (MR_Integer) 12;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("private_builtin", 15)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i1);
	}
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("curfr", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i8);
	}
	MR_r2 = (MR_Integer) 3;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("maxfr", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i9);
	}
	MR_r2 = (MR_Integer) 2;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("redofr", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i10);
	}
	MR_r2 = (MR_Integer) 4;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("succip", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i11);
	}
	MR_r2 = (MR_Integer) 1;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("ticket", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i12);
	}
	MR_r2 = (MR_Integer) 6;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("trail_ptr", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i13);
	}
	MR_r2 = (MR_Integer) 7;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("type_info", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i14);
	}
	MR_r2 = (MR_Integer) 8;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("heap_pointer", 12)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i15);
	}
	MR_r2 = (MR_Integer) 0;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("type_ctor_info", 14)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i16);
	}
	MR_r2 = (MR_Integer) 9;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("typeclass_info", 14)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i17);
	}
	MR_r2 = (MR_Integer) 10;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("base_typeclass_info", 19)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__impl_type_ctor_4_0_i1);
	}
	MR_r2 = (MR_Integer) 11;
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__impl_type_ctor_4_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_data__get_type_defn_status_2_0);
MR_decl_entry(hlds__hlds_module__module_info_get_globals_2_0);
MR_decl_entry(hlds__hlds_module__module_info_get_special_pred_map_2_0);
MR_decl_entry(libs__globals__lookup_bool_option_3_0);
MR_decl_entry(hlds__hlds_data__get_type_defn_body_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_id_0;
MR_decl_entry(map__lookup_3_0);
MR_decl_entry(hlds__special_pred__special_pred_mode_num_2_0);
MR_decl_entry(hlds__hlds_pred__proc_id_to_int_2_1);
MR_decl_entry(fn__mdbcomp__prim_data__mercury_private_builtin_module_0_0);
MR_decl_entry(hlds__pred_table__lookup_builtin_pred_proc_id_8_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module2)
	MR_init_entry1(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0);
	MR_init_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,2,3,4,5,10,32,15,16,17,20)
	MR_init_label5(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,21,22,7,25,26)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_type_ctor_gen_info'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_status_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i2);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i3);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_special_pred_map_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i4);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 263;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i5);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i32);
	}
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_body_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i10);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i7);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r1, 4);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i7);
	}
	}
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(8);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i15);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_np_call_localret_ent(hlds__special_pred__special_pred_mode_num_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i16);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_id_to_int_2_1,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i17);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(8);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i20);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = (MR_Integer) 2;
	MR_np_call_localret_ent(hlds__special_pred__special_pred_mode_num_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i21);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_id_to_int_2_1,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i22);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(8);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(7);
	MR_tfield(0, MR_r1, 5) = MR_sv(6);
	MR_tfield(0, MR_r1, 6) = MR_sv(1);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(11);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_private_builtin_module_0_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i25);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_string_const("unused", 6);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = (MR_Integer) 0;
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(hlds__pred_table__lookup_builtin_pred_proc_id_8_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0_i26);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(7);
	MR_tfield(0, MR_r1, 5) = MR_sv(6);
	MR_tfield(0, MR_r1, 6) = MR_tempr1;
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___mdbcomp__prim_data__sym_name_0_0);
MR_decl_entry(check_hlds__type_util__type_ctor_has_hand_defined_rtti_2_0);
MR_decl_entry(hlds__special_pred__compiler_generated_rtti_for_builtins_1_0);
MR_decl_entry(__Unify___hlds__hlds_data__hlds_type_defn_0_0);
MR_decl_entry(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module3)
	MR_init_entry1(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0);
	MR_init_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,3,4,8,10,14,16,13,18,27,28)
	MR_init_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,29,30,31,32,33,34,35,24,40,41)
	MR_init_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,37,22,48,52,53,54,55,56,57,58)
	MR_init_label10(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,59,60,61,112,63,64,66,7,6,69)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_type_ctor_gen_infos'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp(10);
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_r3, 0);
	MR_r3 = MR_tfield(1, MR_r3, 1);
	MR_np_localcall_lab(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i4);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr4 = MR_sv(3);
	MR_tempr1 = MR_tfield(0, MR_tempr4, 0);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr2,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i6);
	}
	MR_tempr3 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(4) = MR_tempr1;
	MR_sv(5) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(7) = MR_tfield(1, MR_tempr2, 0);
	MR_sv(8) = MR_tfield(1, MR_tempr2, 1);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr3;
	}
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i8);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	MR_r2 = MR_sv(3);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(9) = MR_tfield(0, MR_r2, 0);
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_body_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i10);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i14);
	}
	MR_r1 = MR_sv(1);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i13);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(check_hlds__type_util__type_ctor_has_hand_defined_rtti_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i16);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i112);
	}
	MR_r1 = MR_sv(1);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__special_pred__compiler_generated_rtti_for_builtins_1_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i18);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	if (MR_PTAG_TESTR(MR_sv(7),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	MR_r3 = MR_tfield(0, MR_sv(7), 0);
	if ((strcmp((char *) (MR_Word *) MR_r3, MR_string_const("builtin", 7)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i24);
	}
	if (MR_INT_NE(MR_sv(6),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("int", 3)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i27);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("func", 4)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i28);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("pred", 4)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i29);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("void", 4)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i30);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("float", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i31);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("tuple", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i32);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("string", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i33);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("c_pointer", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i34);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("character", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i35);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("stable_c_pointer", 16)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r3, MR_string_const("type_desc", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i37);
	}
	if (MR_INT_NE(MR_sv(6),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("type_desc", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i40);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("type_ctor_desc", 14)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i41);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("pseudo_type_desc", 16)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r3, MR_string_const("private_builtin", 15)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("ref", 3)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	if (MR_INT_NE(MR_sv(6),1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i22);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	if ((strcmp((char *) (MR_Word *) MR_r3, MR_string_const("table_builtin", 13)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i48);
	}
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("ml_subgoal", 10)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r3, MR_string_const("private_builtin", 15)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("curfr", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i52);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("maxfr", 5)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i53);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("redofr", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i54);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("succip", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i55);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("ticket", 6)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i56);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("trail_ptr", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i57);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("type_info", 9)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i58);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("heap_pointer", 12)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i59);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("type_ctor_info", 14)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i60);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("typeclass_info", 14)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i61);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i63);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_sv(8), MR_string_const("base_typeclass_info", 19)) != 0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(__Unify___hlds__hlds_data__hlds_type_defn_0_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i64);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i7);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(5);
	MR_np_call_localret_ent(backend_libs__type_ctor_info__gen_type_ctor_gen_info_7_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i66);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = MR_sv(2);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(10);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_decr_sp_and_return(10);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("unqualified type ", 17);
	MR_r2 = MR_tfield(0, MR_r3, 0);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0_i69);
MR_def_label(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.gen_type_ctor_gen_infos\'/4", 65);
	MR_r3 = MR_tempr1;
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(require__unexpected_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(require__expect_4_0);
MR_decl_entry(varset__init_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_kind_0;
MR_decl_entry(map__init_1_0);
MR_decl_entry(term__context_init_1_0);
MR_decl_entry(hlds__hlds_data__set_type_defn_9_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module4)
	MR_init_entry1(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0);
	MR_init_label10(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,78,4,8,9,11,13,14,15,16,17)
	MR_init_label10(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,18,23,51,28,29,30,33,34,35,20)
	MR_init_label4(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,39,40,6,45)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_builtin_type_ctor_gen_infos'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i78);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_r3, 0);
	MR_r3 = MR_tfield(1, MR_r3, 1);
	MR_np_localcall_lab(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i4);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(3);
	MR_tempr1 = MR_tfield(0, MR_tempr3, 0);
	MR_r5 = MR_tempr1;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i6);
	}
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr2, 0) = (MR_Word) MR_COMMON(2,0);
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__gen_builtin_type_ctor_gen_infos__206__1_2_0);
	MR_tfield(0, MR_tempr2, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr2, 3) = MR_sv(2);
	MR_tfield(0, MR_tempr2, 4) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(2) = MR_r1;
	MR_sv(4) = MR_tfield(0, MR_tempr3, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(6) = MR_tfield(1, MR_tempr1, 1);
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.gen_builtin_type_ctor_gen_infos\'/4", 73);
	MR_r4 = (MR_Word) MR_string_const("module mismatch", 15);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i8);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(varset__init_1_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i9);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, kind);
	MR_np_call_localret_ent(map__init_1_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i11);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(3,4,0);
	MR_np_call_localret_ent(term__context_init_1_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i13);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(9);
	MR_r5 = (MR_Word) MR_tbmkword(0, 8);
	MR_r6 = (MR_Integer) 0;
	MR_r7 = (MR_Integer) 1;
	MR_r8 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_data__set_type_defn_9_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i14);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_status_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i15);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i16);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_special_pred_map_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i17);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 263;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i18);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i51);
	}
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_body_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i23);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i20);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r1, 4);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i20);
	}
	}
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(9);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_sv(11) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i28);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_np_call_localret_ent(hlds__special_pred__special_pred_mode_num_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i29);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_id_to_int_2_1,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i30);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(9);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i33);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = (MR_Integer) 2;
	MR_np_call_localret_ent(hlds__special_pred__special_pred_mode_num_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i34);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_id_to_int_2_1,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i35);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 7) = MR_r2;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_tfield(1, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(12);
	}
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_private_builtin_module_0_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i39);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_string_const("unused", 6);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = (MR_Integer) 0;
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(hlds__pred_table__lookup_builtin_pred_proc_id_8_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i40);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(5);
	MR_tfield(0, MR_r2, 2) = MR_sv(6);
	MR_tfield(0, MR_r2, 3) = MR_sv(4);
	MR_tfield(0, MR_r2, 4) = MR_sv(8);
	MR_tfield(0, MR_r2, 5) = MR_sv(7);
	MR_tfield(0, MR_r2, 6) = MR_tempr1;
	MR_tfield(0, MR_r2, 7) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(12);
	}
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("unqualified type ", 17);
	MR_r2 = MR_tfield(0, MR_r5, 0);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0_i45);
MR_def_label(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.gen_builtin_type_ctor_gen_infos\'/4", 73);
	MR_r3 = MR_tempr1;
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(require__unexpected_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_get_name_2_0);
MR_decl_entry(hlds__hlds_module__module_info_get_type_table_2_0);
MR_decl_entry(hlds__hlds_data__get_all_type_ctor_defns_2_0);
MR_decl_entry(fn__mdbcomp__prim_data__mercury_public_builtin_module_0_0);
MR_decl_entry(fn__parse_tree__prog_type__builtin_type_ctors_with_no_hlds_type_defn_0_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_type_ctor_gen_info_0;
MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);
MR_decl_entry(hlds__hlds_module__module_info_set_type_ctor_gen_infos_3_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module5)
	MR_init_entry1(backend_libs__type_ctor_info__generate_hlds_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__generate_hlds_2_0);
	MR_init_label10(backend_libs__type_ctor_info__generate_hlds_2_0,2,3,4,5,7,8,10,12,13,14)
	MR_init_label1(backend_libs__type_ctor_info__generate_hlds_2_0,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_hlds'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__backend_libs__type_ctor_info__generate_hlds_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_name_2_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i2);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_type_table_2_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i3);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_data__get_all_type_ctor_defns_2_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i4);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__gen_type_ctor_gen_infos_4_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i5);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_public_builtin_module_0_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i7);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i8);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__generate_hlds_2_0_i6);
	}
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__special_pred__compiler_generated_rtti_for_builtins_1_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i10);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__generate_hlds_2_0_i6);
	}
	MR_np_call_localret_ent(fn__parse_tree__prog_type__builtin_type_ctors_with_no_hlds_type_defn_0_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i12);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__gen_builtin_type_ctor_gen_infos_4_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i13);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_module, type_ctor_gen_info);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		backend_libs__type_ctor_info__generate_hlds_2_0_i14);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(hlds__hlds_module__module_info_set_type_ctor_gen_infos_3_0);
MR_def_label(backend_libs__type_ctor_info__generate_hlds_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(hlds__hlds_module__module_info_set_type_ctor_gen_infos_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__mdbcomp__prim_data__unqualify_name_1_0);
MR_decl_entry(backend_libs__pseudo_type_info__construct_maybe_pseudo_type_info_4_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module6)
	MR_init_entry1(backend_libs__type_ctor_info__make_notag_details_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_notag_details_6_0);
	MR_init_label2(backend_libs__type_ctor_info__make_notag_details_6_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_notag_details'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_notag_details_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		backend_libs__type_ctor_info__make_notag_details_6_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_notag_details_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(backend_libs__pseudo_type_info__construct_maybe_pseudo_type_info_4_0,
		backend_libs__type_ctor_info__make_notag_details_6_0_i3);
MR_def_label(backend_libs__type_ctor_info__make_notag_details_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = MR_sv(3);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r1, 1) = MR_sv(4);
	MR_tfield(3, MR_r1, 2) = MR_r2;
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_constructor_arg_0;
MR_decl_entry(list__length_2_0);
MR_decl_entry(fn__list__length_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_cons_tag_0;

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module7)
	MR_init_entry1(backend_libs__type_ctor_info__make_enum_functors_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_enum_functors_5_0);
	MR_init_label10(backend_libs__type_ctor_info__make_enum_functors_5_0,31,5,7,8,10,11,13,16,17,19)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_enum_functors'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_enum_functors_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_enum_functors_5_0_i31);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__622__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tempr2 = MR_tfield(1, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_tfield(1, MR_r2, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_enum_functors\'/5", 60);
	MR_r4 = (MR_Word) MR_string_const("existential arguments in functor in enum", 40);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i5);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(2,2);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__624__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_enum_functors\'/5", 60);
	MR_r4 = (MR_Word) MR_string_const("class constraints on functor in enum", 36);
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i7);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor_arg);
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(list__length_2_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i8);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__627__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 0;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_enum_functors\'/5", 60);
	MR_r4 = (MR_Word) MR_string_const("functor in enum has nonzero arity", 33);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i10);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__list__length_1_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i11);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tfield(1, MR_tempr1, 2) = MR_sv(1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, cons_tag);
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i13);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr2, 0) = (MR_Word) MR_COMMON(2,4);
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__631__1_2_0);
	MR_tfield(0, MR_tempr2, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr2, 3) = MR_r1;
	MR_tfield(0, MR_tempr2, 4) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_enum_functors\'/5", 60);
	MR_r4 = (MR_Word) MR_string_const("mismatch on constant assigned to functor in enum", 48);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i16);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i17);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr3 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(4);
	MR_r3 = ((MR_Integer) MR_tempr3 + (MR_Integer) 1);
	MR_r4 = MR_sv(3);
	}
	MR_np_localcall_lab(backend_libs__type_ctor_info__make_enum_functors_5_0,
		backend_libs__type_ctor_info__make_enum_functors_5_0_i19);
MR_def_label(backend_libs__type_ctor_info__make_enum_functors_5_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(8);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_constructor_0;
MR_decl_entry(fn__list__map_2_0);
MR_decl_entry(fn__list__sort_1_0);
MR_decl_entry(fn__f_108_105_115_116_95_95_46_46_2_0);
MR_decl_entry(fn__map__from_corresponding_lists_2_0);
MR_decl_entry(fn__map__apply_to_list_2_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module8)
	MR_init_entry1(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__backend_libs__type_ctor_info__make_functor_number_map_1_0);
	MR_init_label5(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,4,5,6,7,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_functor_number_map'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(3) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,0);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(fn__list__map_2_0,
		fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_i4);
MR_def_label(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(fn__list__sort_1_0,
		fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_i5);
MR_def_label(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__length_1_0,
		fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_i6);
MR_def_label(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = ((MR_Integer) MR_tempr1 - (MR_Integer) 1);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_46_46_2_0,
		fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_i7);
MR_def_label(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__from_corresponding_lists_2_0,
		fn__backend_libs__type_ctor_info__make_functor_number_map_1_0_i8);
MR_def_label(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(fn__map__apply_to_list_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__map__init_0_0);
MR_decl_entry(list__foldl2_6_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module9)
	MR_init_entry1(backend_libs__type_ctor_info__make_mercury_enum_details_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_mercury_enum_details_6_0);
	MR_init_label10(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,3,2,5,6,7,11,12,19,20,21)
	MR_init_label4(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,22,23,24,25)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_mercury_enum_details'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_mercury_enum_details_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r4,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i3);
	}
	MR_r4 = MR_r3;
	MR_sv(2) = MR_r5;
	MR_r3 = (MR_Integer) 0;
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_sv(1) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_mercury_enum_details\'/6", 67);
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("enum with reserved tag", 22);
	}
	MR_np_call_localret_ent(require__unexpected_3_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_enum_functors_5_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i5);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(5) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, enum_functor);
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i6);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(7) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i7);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,3);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,5,1);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl2_6_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i11);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(1),0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i12);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_r5 = MR_tfield(1, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i12);
	}
	MR_r4 = MR_tempr1;
	MR_sv(4) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_sv(6) = (MR_Integer) 1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,2);
	MR_sv(8) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i19);
	}
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_sv(4) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_sv(6) = (MR_Integer) 0;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,3);
	MR_sv(8) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r4;
	MR_sv(9) = MR_r2;
	MR_np_call_localret_ent(fn__list__map_2_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i20);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__list__sort_1_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i21);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__length_1_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i22);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = ((MR_Integer) MR_tempr1 - (MR_Integer) 1);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_46_46_2_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i23);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__from_corresponding_lists_2_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i24);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__apply_to_list_2_0,
		backend_libs__type_ctor_info__make_mercury_enum_details_6_0_i25);
MR_def_label(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 6);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_sv(4);
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_tfield(0, MR_r2, 4) = MR_sv(6);
	MR_tfield(0, MR_r2, 5) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module10)
	MR_init_entry1(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_foreign_enum_functors_6_0);
	MR_init_label10(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,39,5,7,8,10,11,13,17,15,14)
	MR_init_label2(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,19,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_foreign_enum_functors'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i39);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,8);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__689__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tempr3 = MR_r3;
	MR_tempr2 = MR_tfield(1, MR_tempr3, 0);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_tfield(1, MR_tempr3, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_foreign_enum_functors\'/6", 68);
	MR_r4 = (MR_Word) MR_string_const("existential arguments in functor in foreign enum", 48);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i5);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(2,9);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__691__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = MR_sv(6);
	MR_tfield(0, MR_r1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_foreign_enum_functors\'/6", 68);
	MR_r4 = (MR_Word) MR_string_const("class constraints on functor in foreign enum", 44);
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i7);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor_arg);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(list__length_2_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i8);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,10);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__694__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 0;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_foreign_enum_functors\'/6", 68);
	MR_r4 = (MR_Word) MR_string_const("functor in foreign enum has nonzero arity", 41);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i10);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(fn__list__length_1_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i11);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tfield(1, MR_tempr1, 2) = MR_sv(1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, cons_tag);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i13);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i15);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,11);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__700__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(3, MR_r1, 1);
	MR_sv(6) = MR_tfield(3, MR_r1, 2);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_foreign_enum_functors\'/6", 68);
	MR_r4 = (MR_Word) MR_string_const("language mismatch between foreign tag and foreign enum", 54);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i17);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i19);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_foreign_enum_functors\'/6", 68);
	MR_r3 = (MR_Word) MR_string_const("non foreign tag for foreign enum functor", 40);
	MR_np_call_localret_ent(require__unexpected_3_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i14);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i19);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr3 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(6);
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_r4 = ((MR_Integer) MR_tempr3 + (MR_Integer) 1);
	MR_r5 = MR_sv(4);
	}
	MR_np_localcall_lab(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,
		backend_libs__type_ctor_info__make_foreign_enum_functors_6_0_i21);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module11)
	MR_init_entry1(backend_libs__type_ctor_info__make_foreign_enum_details_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_foreign_enum_details_7_0);
	MR_init_label10(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,3,2,5,6,7,11,14,15,16,17)
	MR_init_label2(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,18,19)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_foreign_enum_details'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_foreign_enum_details_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r5,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i3);
	}
	MR_r5 = MR_r4;
	MR_sv(3) = MR_r6;
	MR_r4 = (MR_Integer) 0;
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_sv(1) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_foreign_enum_details\'/7", 67);
	MR_sv(2) = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("foreign enum with reserved tag", 30);
	}
	MR_np_call_localret_ent(require__unexpected_3_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_foreign_enum_functors_6_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i5);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(6) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i6);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(8) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i7);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,7);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,8);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,5,4);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl2_6_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i11);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(8) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_r2 = MR_sv(9);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,5);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(fn__list__map_2_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i14);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__list__sort_1_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i15);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__length_1_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i16);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = ((MR_Integer) MR_tempr1 - (MR_Integer) 1);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_46_46_2_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i17);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__from_corresponding_lists_2_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i18);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__apply_to_list_2_0,
		backend_libs__type_ctor_info__make_foreign_enum_details_7_0_i19);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 6);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_sv(3);
	MR_tfield(1, MR_r2, 2) = MR_sv(4);
	MR_tfield(1, MR_r2, 3) = MR_sv(5);
	MR_tfield(1, MR_r2, 4) = MR_sv(6);
	MR_tfield(1, MR_r2, 5) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module12)
	MR_init_entry1(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0);
	MR_init_label7(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,3,6,8,12,16,18,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_maybe_reserved_rep'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,9)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i3);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 1);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_proceed();
	}
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,12)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i6);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,11)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(3, MR_r1, 2);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr2;
	MR_proceed();
	}
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,10)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i12);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_tfield(3, MR_r1, 2);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr2;
	MR_proceed();
	}
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,13)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i16);
	}
	MR_r1 = MR_tfield(3, MR_r1, 2);
	MR_np_localtailcall(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0);
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i18);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,8,0);
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,8)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0_i21);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.get_maybe_reserved_rep\'/2", 64);
	MR_r3 = (MR_Word) MR_string_const("bad cons_tag for du function symbol", 35);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_constraint_0;
MR_decl_entry(list__map_3_0);
MR_decl_entry(list__condense_2_0);
MR_decl_entry(parse_tree__prog_type__type_vars_list_2_0);
MR_decl_entry(list__delete_elems_3_0);
MR_decl_entry(list__foldl_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_tc_constraint_0;

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module13)
	MR_init_entry1(backend_libs__type_ctor_info__generate_exist_into_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__generate_exist_into_4_0);
	MR_init_label10(backend_libs__type_ctor_info__generate_exist_into_4_0,4,5,6,8,9,10,13,14,16,18)
	MR_init_label1(backend_libs__type_ctor_info__generate_exist_into_4_0,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_exist_into'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__generate_exist_into_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,4);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,6);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(list__map_3_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i4);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__condense_2_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i5);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__prog_type__type_vars_list_2_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i6);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,3,0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__delete_elems_3_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i8);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(list__delete_elems_3_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i9);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(map__init_1_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i10);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,1,11);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r3 = MR_sv(9);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,5,7);
	MR_r5 = MR_sv(4);
	MR_r6 = (MR_Integer) 0;
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl2_6_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i13);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(list__length_2_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i14);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(9,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__find_type_info_index_6_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(3);
	MR_tempr2 = MR_sv(4);
	MR_tfield(0, MR_tempr1, 5) = MR_tempr2;
	MR_sv(3) = ((MR_Integer) MR_r1 - (MR_Integer) MR_tempr2);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(9);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	}
	MR_np_call_localret_ent(list__foldl_4_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i16);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, tc_constraint);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,8);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i18);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(10,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__956__1_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(2);
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(list__map_3_0,
		backend_libs__type_ctor_info__generate_exist_into_4_0_i20);
MR_def_label(backend_libs__type_ctor_info__generate_exist_into_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_sv(1);
	MR_tfield(0, MR_r2, 3) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_du_arg_info_0;
MR_decl_entry(hlds__hlds_module__module_info_get_class_table_2_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module14)
	MR_init_entry1(backend_libs__type_ctor_info__make_maybe_res_functors_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_maybe_res_functors_7_0);
	MR_init_label10(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,53,4,5,6,8,9,11,13,14,15)
	MR_init_label6(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,12,18,22,24,26,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_maybe_res_functors'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_maybe_res_functors_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i53);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_tfield(1, MR_r2, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r2, 0);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(13) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor_arg);
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(10);
	}
	MR_np_call_localret_ent(list__length_2_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i4);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i5);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(fn__list__length_1_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i6);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tfield(1, MR_tempr1, 2) = MR_sv(1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, cons_tag);
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i8);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(backend_libs__type_ctor_info__get_maybe_reserved_rep_2_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i9);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(11,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__generate_du_arg_info_4_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(7);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_arg_info);
	MR_r4 = MR_sv(10);
	}
	MR_np_call_localret_ent(list__map_3_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i11);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(7),0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i13);
	}
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_sv(7) = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i12);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_class_table_2_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i14);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__generate_exist_into_4_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i15);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(7), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(7), 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r2 = MR_sv(6);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(9),1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i18);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(11);
	MR_tempr2 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 2) = MR_tempr2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(1, MR_sv(9), 0);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(10);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(7);
	MR_tag_alloc_heap(MR_sv(1), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(1), 0) = MR_tempr1;
	MR_r3 = ((MR_Integer) MR_tempr2 + (MR_Integer) 1);
	}
	MR_np_localcall_lab(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i29);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,15);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__842__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(11);
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 0;
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_r2;
	MR_sv(8) = MR_tfield(0, MR_sv(9), 0);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_maybe_res_functors\'/7", 65);
	MR_r4 = (MR_Word) MR_string_const("bad arity", 9);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i22);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(2,16);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__843__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = MR_sv(10);
	MR_tfield(0, MR_r1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_maybe_res_functors\'/7", 65);
	MR_r4 = (MR_Word) MR_string_const("bad args", 8);
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i24);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(2,17);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__844__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = MR_sv(7);
	MR_tfield(0, MR_r1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_maybe_res_functors\'/7", 65);
	MR_r4 = (MR_Word) MR_string_const("bad exist", 9);
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i26);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(12);
	MR_tempr3 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_r1 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_sv(1) = MR_tempr2;
	MR_r3 = ((MR_Integer) MR_tempr3 + (MR_Integer) 1);
	}
	MR_np_localcall_lab(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,
		backend_libs__type_ctor_info__make_maybe_res_functors_7_0_i29);
MR_def_label(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(14);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__list__filter_map_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_reserved_functor_0;

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module15)
	MR_init_entry1(backend_libs__type_ctor_info__make_du_details_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_du_details_8_0);
	MR_init_label10(backend_libs__type_ctor_info__make_du_details_8_0,2,4,6,7,10,11,15,17,20,13)
	MR_init_label3(backend_libs__type_ctor_info__make_du_details_8_0,23,25,28)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_du_details'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_du_details_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r5;
	MR_sv(3) = MR_r6;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r3;
	MR_r3 = (MR_Integer) 0;
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr2;
	MR_r6 = MR_r7;
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_maybe_res_functors_7_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor);
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_functor);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,9);
	MR_r4 = MR_sv(4);
	MR_np_call_localret_ent(fn__list__filter_map_2_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i4);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, reserved_functor);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,10);
	MR_r4 = MR_sv(4);
	MR_np_call_localret_ent(fn__list__filter_map_2_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i6);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_sv(9) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, sectag_table);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i7);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = (MR_Word) MR_CTOR_ADDR(tree234, tree234, 2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,14);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,11);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl_4_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i10);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__backend_libs__type_ctor_info__make_functor_number_map_1_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i11);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(6),0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_details_8_0_i13);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,20);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__778__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 1;
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_du_details\'/8", 57);
	MR_r4 = (MR_Word) MR_string_const("ReservedAddr is not does_not_use_reserved_addr", 46);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i15);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,1,16);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i17);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,17);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,12);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl_4_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i20);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 5);
	MR_tfield(2, MR_r2, 0) = MR_sv(2);
	MR_tfield(2, MR_r2, 1) = MR_sv(5);
	MR_tfield(2, MR_r2, 2) = MR_sv(1);
	MR_tfield(2, MR_r2, 3) = MR_r1;
	MR_tfield(2, MR_r2, 4) = MR_sv(3);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,21);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__786__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 0;
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_du_details\'/8", 57);
	MR_r4 = (MR_Word) MR_string_const("ReservedAddr is not uses_reserved_addr", 38);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i23);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,1,20);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(fn__map__init_0_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i25);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,21);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,13);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl_4_0,
		backend_libs__type_ctor_info__make_du_details_8_0_i28);
MR_def_label(backend_libs__type_ctor_info__make_du_details_8_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 7);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(6);
	MR_tfield(3, MR_tempr1, 4) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 5) = MR_r1;
	MR_tfield(3, MR_tempr1, 6) = MR_sv(3);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_rtti__type_ctor_info_rtti_proc_label_0;
MR_decl_entry(univ__type_to_univ_2_1);
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_type_ctor_flag_0;
MR_decl_entry(backend_libs__foreign__foreign_type_body_to_exported_type_5_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_foreign_type_assertion_0;
MR_decl_entry(list__member_2_0);
MR_decl_entry(fn__set__init_0_0);
MR_decl_entry(set__insert_3_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module16)
	MR_init_entry1(backend_libs__type_ctor_info__construct_type_ctor_info_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__construct_type_ctor_info_3_0);
	MR_init_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,2,3,4,5,6,12,7,8,15,19)
	MR_init_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,16,17,25,22,23,31,30,33,35,37)
	MR_init_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,39,41,29,42,46,48,50,47,45,56)
	MR_init_label10(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,55,60,61,64,66,69,63,72,75,78)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'construct_type_ctor_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__construct_type_ctor_info_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	MR_sv(3) = MR_tfield(0, MR_r1, 1);
	MR_sv(4) = MR_tfield(0, MR_r1, 2);
	MR_sv(5) = MR_tfield(0, MR_r1, 3);
	MR_sv(6) = MR_tfield(0, MR_r1, 5);
	MR_sv(7) = MR_tfield(0, MR_r1, 7);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_tempr2 = MR_tfield(0, MR_tempr1, 6);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i2);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i3);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_rtti, rtti_proc_label);
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(univ__type_to_univ_2_1,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i4);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(univ__type_to_univ_2_1,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i5);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_body_2_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i6);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i8);
	}
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__special_pred__compiler_generated_rtti_for_builtins_1_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i12);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i7);
	}
	MR_r1 = MR_sv(8);
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.construct_type_ctor_info\'/3", 66);
	MR_r3 = (MR_Word) MR_string_const("abstract_type", 13);
	MR_np_call_localret_ent(require__unexpected_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i15);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(8);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_sv(8) = MR_r1;
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(3),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i17);
	}
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = MR_tfield(0, MR_sv(3), 0);
	MR_np_call_localret_ent(backend_libs__type_ctor_info__builtin_type_ctor_4_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i19);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i16);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, type_ctor_flag);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(3),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i23);
	}
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = MR_tfield(0, MR_sv(3), 0);
	MR_np_call_localret_ent(backend_libs__type_ctor_info__impl_type_ctor_4_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i25);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i22);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, type_ctor_flag);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(8),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i29);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_r6 = MR_tfield(0, MR_tempr1, 4);
	if (MR_LTAGS_TESTR(MR_r6,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i31);
	}
	MR_r1 = MR_sv(2);
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr1, 1);
	MR_r6 = MR_tfield(0, MR_tempr1, 3);
	MR_r4 = MR_tfield(0, MR_tempr1, 6);
	MR_r7 = MR_tfield(0, MR_tempr1, 7);
	MR_r5 = (MR_Integer) 0;
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i30);
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr1, 1);
	MR_r6 = MR_tfield(0, MR_tempr1, 3);
	MR_r4 = MR_tfield(0, MR_tempr1, 6);
	MR_r7 = MR_tfield(0, MR_tempr1, 7);
	MR_r5 = (MR_Integer) 1;
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r6,0,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i33);
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i41);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r6,0,2)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i35);
	}
	MR_r4 = MR_sv(5);
	MR_r6 = MR_r7;
	MR_r7 = MR_sv(1);
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_du_details_8_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i41);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r6,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i37);
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_mercury_enum_details_6_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i41);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r6,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i39);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_tfield(1, MR_r6, 0);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_tempr3 = MR_r4;
	MR_r4 = MR_tempr2;
	MR_tempr4 = MR_r5;
	MR_r5 = MR_tempr3;
	MR_r6 = MR_tempr4;
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_foreign_enum_details_7_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i41);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_r2 = MR_tfield(2, MR_tempr1, 0);
	MR_r3 = MR_tfield(2, MR_tempr1, 1);
	MR_r4 = MR_tfield(2, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__make_notag_details_6_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i41);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, type_ctor_flag);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(8),1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i42);
	}
	MR_sv(4) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tfield(1, MR_sv(8), 0);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(backend_libs__pseudo_type_info__construct_maybe_pseudo_type_info_4_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i56);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(8),2)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i45);
	}
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(2, MR_sv(8), 0);
	MR_np_call_localret_ent(backend_libs__foreign__foreign_type_body_to_exported_type_5_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i46);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r3;
	MR_sv(2) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, foreign_type_assertion);
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(list__member_2_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i48);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i47);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(list__member_2_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i50);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i47);
	}
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,4,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, type_ctor_flag);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,4,2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, type_ctor_flag);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(8),3,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i55);
	}
	MR_sv(4) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tfield(3, MR_sv(8), 1), 0);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(backend_libs__pseudo_type_info__construct_maybe_pseudo_type_info_4_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i56);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, type_ctor_flag);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_sv(4) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.construct_type_ctor_info\'/3", 66);
	MR_sv(5) = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("abstract_type", 13);
	MR_np_call_localret_ent(require__unexpected_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i60);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_np_call_localret_ent(fn__set__init_0_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i61);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(8),0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i63);
	}
	MR_sv(2) = MR_tfield(0, MR_sv(8), 6);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = (MR_Integer) 2;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i64);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(2),1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i66);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r2, 0) = (MR_Integer) 14;
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_sv(4);
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_tfield(0, MR_r2, 4) = MR_sv(7);
	MR_tfield(0, MR_r2, 5) = MR_sv(6);
	MR_tfield(0, MR_r2, 6) = MR_r1;
	MR_tfield(0, MR_r2, 7) = MR_sv(1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_decr_sp_and_return(10);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i69);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r2, 0) = (MR_Integer) 14;
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_sv(4);
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_tfield(0, MR_r2, 4) = MR_sv(7);
	MR_tfield(0, MR_r2, 5) = MR_sv(6);
	MR_tfield(0, MR_r2, 6) = MR_r1;
	MR_tfield(0, MR_r2, 7) = MR_sv(1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_decr_sp_and_return(10);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(8),1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i72);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 14;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tfield(0, MR_tempr1, 7) = MR_sv(1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(8),2)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i75);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 14;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tfield(0, MR_tempr1, 7) = MR_sv(1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(8),3,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_info_3_0_i78);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r2, 0) = (MR_Integer) 14;
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_sv(4);
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_tfield(0, MR_r2, 4) = MR_sv(7);
	MR_tfield(0, MR_r2, 5) = MR_sv(6);
	MR_tfield(0, MR_r2, 6) = MR_r1;
	MR_tfield(0, MR_r2, 7) = MR_sv(1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_decr_sp_and_return(10);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 14;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tfield(0, MR_tempr1, 7) = MR_sv(1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module17)
	MR_init_entry1(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__construct_type_ctor_infos_6_0);
	MR_init_label3(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0,11,3,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'construct_type_ctor_infos'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0_i3);
	}
	MR_r1 = MR_r3;
	MR_r2 = MR_r4;
	MR_decr_sp_and_return(5);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(backend_libs__type_ctor_info__construct_type_ctor_info_3_0,
		backend_libs__type_ctor_info__construct_type_ctor_infos_6_0_i4);
MR_def_label(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0_i11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_get_type_ctor_gen_infos_2_0);
MR_decl_entry(fn__list__remove_dups_1_0);
MR_decl_entry(list__append_3_1);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module18)
	MR_init_entry1(backend_libs__type_ctor_info__generate_rtti_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__generate_rtti_2_0);
	MR_init_label3(backend_libs__type_ctor_info__generate_rtti_2_0,2,3,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_rtti'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__backend_libs__type_ctor_info__generate_rtti_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_type_ctor_gen_infos_2_0,
		backend_libs__type_ctor_info__generate_rtti_2_0_i2);
MR_def_label(backend_libs__type_ctor_info__generate_rtti_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(backend_libs__type_ctor_info__construct_type_ctor_infos_6_0,
		backend_libs__type_ctor_info__generate_rtti_2_0_i3);
MR_def_label(backend_libs__type_ctor_info__generate_rtti_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, rtti_data);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__list__remove_dups_1_0,
		backend_libs__type_ctor_info__generate_rtti_2_0_i4);
MR_def_label(backend_libs__type_ctor_info__generate_rtti_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(list__append_3_1);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__f_105_110_116_95_95_60_60_2_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module19)
	MR_init_entry1(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0);
	MR_init_label6(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,45,3,5,9,10,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compute_contains_var_bit_vector_2'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
MR_def_label(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i3);
	}
	MR_r1 = MR_r3;
	MR_decr_sp_and_return(4);
MR_def_label(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_tfield(1, MR_r1, 0);
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i5);
	}
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	if (MR_INT_LT(MR_r2,15)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i10);
	}
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_r2 = (MR_Integer) 15;
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(fn__f_105_110_116_95_95_60_60_2_0,
		backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i12);
MR_def_label(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,2)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i9);
	}
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = ((MR_Integer) MR_r2 + (MR_Integer) 1);
	MR_succip_word = MR_sv(4);
	MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i45);
MR_def_label(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	if (MR_INT_LT(MR_r2,15)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i10);
	}
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_r2 = (MR_Integer) 15;
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(fn__f_105_110_116_95_95_60_60_2_0,
		backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i12);
MR_def_label(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(fn__f_105_110_116_95_95_60_60_2_0,
		backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i12);
MR_def_label(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r3 = ((MR_Integer) MR_sv(2) | (MR_Integer) MR_tempr1);
	MR_r2 = ((MR_Integer) MR_sv(1) + (MR_Integer) 1);
	MR_succip_word = MR_sv(4);
	MR_GOTO_LAB(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0_i45);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module20)
	MR_init_entry1(fn__backend_libs__type_ctor_info__compute_contains_var_bit_vector_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__backend_libs__type_ctor_info__compute_contains_var_bit_vector_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compute_contains_var_bit_vector'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__backend_libs__type_ctor_info__compute_contains_var_bit_vector_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 0;
	MR_r3 = (MR_Integer) 0;
	MR_np_tailcall_ent(backend_libs__type_ctor_info__compute_contains_var_bit_vector_2_4_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0);
MR_decl_entry(map__det_insert_4_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module21)
	MR_init_entry1(backend_libs__type_ctor_info__make_enum_maps_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_enum_maps_5_0);
	MR_init_label2(backend_libs__type_ctor_info__make_enum_maps_5_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_enum_maps'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_enum_maps_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	MR_sv(3) = MR_r3;
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, enum_functor);
	MR_r1 = MR_sv(4);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0,
		backend_libs__type_ctor_info__make_enum_maps_5_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_enum_maps_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(3);
	}
	MR_np_call_localret_ent(map__det_insert_4_0,
		backend_libs__type_ctor_info__make_enum_maps_5_0_i3);
MR_def_label(backend_libs__type_ctor_info__make_enum_maps_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module22)
	MR_init_entry1(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_foreign_enum_maps_5_0);
	MR_init_label2(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_foreign_enum_maps'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	MR_sv(3) = MR_r3;
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, foreign_enum_functor);
	MR_r1 = MR_sv(4);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0,
		backend_libs__type_ctor_info__make_foreign_enum_maps_5_0_i2);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(3);
	}
	MR_np_call_localret_ent(map__det_insert_4_0,
		backend_libs__type_ctor_info__make_foreign_enum_maps_5_0_i3);
MR_def_label(backend_libs__type_ctor_info__make_foreign_enum_maps_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module23)
	MR_init_entry1(fn__backend_libs__type_ctor_info__is_du_functor_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__backend_libs__type_ctor_info__is_du_functor_1_0);
	MR_init_label1(fn__backend_libs__type_ctor_info__is_du_functor_1_0,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'is_du_functor'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__backend_libs__type_ctor_info__is_du_functor_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(fn__backend_libs__type_ctor_info__is_du_functor_1_0_i1);
	}
	MR_r2 = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(fn__backend_libs__type_ctor_info__is_du_functor_1_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module24)
	MR_init_entry1(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__backend_libs__type_ctor_info__is_reserved_functor_1_0);
	MR_init_label1(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'is_reserved_functor'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0_i1);
	}
	MR_r2 = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(fn__backend_libs__type_ctor_info__is_reserved_functor_1_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module25)
	MR_init_entry1(backend_libs__type_ctor_info__generate_du_arg_info_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__generate_du_arg_info_4_0);
	MR_init_label4(backend_libs__type_ctor_info__generate_du_arg_info_4_0,3,4,6,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_du_arg_info'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__generate_du_arg_info_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_r3;
	MR_r4 = MR_tfield(0, MR_tempr3, 0);
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__generate_du_arg_info_4_0_i3);
	}
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_tempr3;
	MR_r3 = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr2, 1);
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(backend_libs__pseudo_type_info__construct_maybe_pseudo_type_info_4_0,
		backend_libs__type_ctor_info__generate_du_arg_info_4_0_i6);
MR_def_label(backend_libs__type_ctor_info__generate_du_arg_info_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(0, MR_r3, 1);
	MR_r1 = MR_tfield(1, MR_r4, 0);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		backend_libs__type_ctor_info__generate_du_arg_info_4_0_i4);
MR_def_label(backend_libs__type_ctor_info__generate_du_arg_info_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r1 = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	}
	MR_np_call_localret_ent(backend_libs__pseudo_type_info__construct_maybe_pseudo_type_info_4_0,
		backend_libs__type_ctor_info__generate_du_arg_info_4_0_i6);
MR_def_label(backend_libs__type_ctor_info__generate_du_arg_info_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__generate_du_arg_info_4_0_i8);
	}
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_r2, 0) = MR_tfield(1, MR_r1, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(1);
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(backend_libs__type_ctor_info__generate_du_arg_info_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(1);
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__nth_member_search_3_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module26)
	MR_init_entry1(backend_libs__type_ctor_info__first_matching_type_class_info_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__first_matching_type_class_info_6_0);
	MR_init_label5(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,25,4,7,5,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'first_matching_type_class_info'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__first_matching_type_class_info_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
MR_def_label(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__first_matching_type_class_info_6_0_i3);
	}
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_r1, 0);
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_sv(3), 1);
	MR_np_call_localret_ent(parse_tree__prog_type__type_vars_list_2_0,
		backend_libs__type_ctor_info__first_matching_type_class_info_6_0_i4);
MR_def_label(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(1);
	}
	MR_np_call_localret_ent(list__nth_member_search_3_0,
		backend_libs__type_ctor_info__first_matching_type_class_info_6_0_i7);
MR_def_label(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__first_matching_type_class_info_6_0_i5);
	}
	MR_r1 = MR_sv(3);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
MR_def_label(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = ((MR_Integer) MR_sv(2) + (MR_Integer) 1);
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(backend_libs__type_ctor_info__first_matching_type_class_info_6_0_i25);
MR_def_label(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.first_matching_type_class_info\'/6", 72);
	MR_r3 = (MR_Word) MR_string_const("not found", 9);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_class_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_hlds_class_defn_0;
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module27)
	MR_init_entry1(backend_libs__type_ctor_info__find_type_info_index_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__find_type_info_index_6_0);
	MR_init_label4(backend_libs__type_ctor_info__find_type_info_index_6_0,2,3,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'find_type_info_index'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__find_type_info_index_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(2) = MR_tempr1;
	MR_sv(6) = MR_r5;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(backend_libs__type_ctor_info__first_matching_type_class_info_6_0,
		backend_libs__type_ctor_info__find_type_info_index_6_0_i2);
MR_def_label(backend_libs__type_ctor_info__find_type_info_index_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_sv(5) = MR_tfield(0, MR_r1, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(list__length_2_0,
		backend_libs__type_ctor_info__find_type_info_index_6_0_i3);
MR_def_label(backend_libs__type_ctor_info__find_type_info_index_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, class_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, hlds_class_defn);
	MR_r3 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		backend_libs__type_ctor_info__find_type_info_index_6_0_i5);
MR_def_label(backend_libs__type_ctor_info__find_type_info_index_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(list__length_2_0,
		backend_libs__type_ctor_info__find_type_info_index_6_0_i6);
MR_def_label(backend_libs__type_ctor_info__find_type_info_index_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = ((MR_Integer) MR_sv(4) + (MR_Integer) MR_r1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn);
	MR_r4 = MR_sv(2);
	MR_r6 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_101_97_114_99_104_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_3_0);
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_100_101_116_95_117_112_100_97_116_101_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0);
MR_decl_entry(fn__map__singleton_2_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module28)
	MR_init_entry1(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0);
	MR_init_label10(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,5,6,7,4,9,12,13,8,16,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_du_ptag_ordered_table'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_tfield(0, MR_r1, 3);
	if (MR_PTAG_TESTR(MR_r4,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i3);
	}
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_r5 = MR_tfield(0, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i5);
	}
	MR_sv(1) = MR_r1;
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	MR_sv(3) = (MR_Integer) 0;
	MR_sv(4) = (MR_Integer) 0;
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i4);
	}
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r5,0,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i6);
	}
	MR_sv(1) = MR_r1;
	MR_r3 = MR_tfield(0, MR_r4, 0);
	MR_sv(3) = (MR_Integer) 1;
	MR_sv(4) = (MR_Integer) 0;
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i4);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i7);
	}
	MR_sv(1) = MR_r1;
	MR_r3 = MR_tfield(0, MR_r4, 0);
	MR_sv(3) = (MR_Integer) 2;
	MR_sv(4) = MR_tfield(1, MR_r5, 0);
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i4);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r3 = MR_tfield(0, MR_r4, 0);
	MR_sv(3) = (MR_Integer) 3;
	MR_sv(4) = MR_tfield(2, MR_r5, 0);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	MR_sv(7) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, sectag_table);
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_101_97_114_99_104_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_3_0,
		backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i9);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i8);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(2,22);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_ptag_ordered_table__1020__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = MR_sv(3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r1, 4);
	MR_sv(5) = MR_tfield(0, MR_r2, 1);
	MR_sv(6) = MR_tfield(0, MR_r2, 2);
	MR_r2 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r3 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_du_ptag_ordered_table\'/3", 68);
	MR_r4 = (MR_Word) MR_string_const("sectag locn disagreement", 24);
	MR_np_call_localret_ent(require__expect_4_0,
		backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i12);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_functor);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(6);
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0,
		backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i13);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = ((MR_Integer) MR_sv(5) + (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, sectag_table);
	MR_r2 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_100_101_116_95_117_112_100_97_116_101_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0);
	}
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_functor);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(fn__map__singleton_2_0,
		backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0_i16);
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, sectag_table);
	MR_r2 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0);
	}
MR_def_label(backend_libs__type_ctor_info__make_du_ptag_ordered_table_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("backend_libs.type_ctor_info", 27);
	MR_r2 = (MR_Word) MR_string_const("predicate \140backend_libs.type_ctor_info.make_du_ptag_ordered_table\'/3", 68);
	MR_r3 = (MR_Word) MR_string_const("du_hl_rep", 9);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__search_3_0);
MR_decl_entry(map__det_update_4_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module29)
	MR_init_entry1(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_du_name_ordered_table_3_0);
	MR_init_label4(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0,4,6,2,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_du_name_ordered_table'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(3) = MR_tfield(0, MR_r1, 1);
	MR_r4 = MR_tfield(0, MR_r1, 0);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r4;
	MR_sv(4) = MR_r2;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,1,16);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(map__search_3_0,
		backend_libs__type_ctor_info__make_du_name_ordered_table_3_0_i4);
MR_def_label(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0_i2);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_functor);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0,
		backend_libs__type_ctor_info__make_du_name_ordered_table_3_0_i6);
MR_def_label(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(4);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(map__det_update_4_0);
	}
MR_def_label(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_functor);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__singleton_2_0,
		backend_libs__type_ctor_info__make_du_name_ordered_table_3_0_i8);
MR_def_label(backend_libs__type_ctor_info__make_du_name_ordered_table_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,16);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(4);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(map__det_insert_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module30)
	MR_init_entry1(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__make_res_name_ordered_table_3_0);
	MR_init_label6(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,3,2,6,8,4,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_res_name_ordered_table'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_r5 = MR_tempr1;
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_r2;
	MR_GOTO_LAB(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0_i2);
	}
MR_def_label(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r4 = MR_tfield(0, MR_tfield(0, MR_r1, 0), 0);
	MR_sv(3) = (MR_Integer) 0;
	MR_r3 = MR_r2;
MR_def_label(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r4;
	MR_sv(4) = MR_r3;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,1,20);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(map__search_3_0,
		backend_libs__type_ctor_info__make_res_name_ordered_table_3_0_i6);
MR_def_label(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0_i4);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_105_110_116_93_95_48_95_49_4_0,
		backend_libs__type_ctor_info__make_res_name_ordered_table_3_0_i8);
MR_def_label(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(4);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(map__det_update_4_0);
	}
MR_def_label(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_INT_CTOR_ADDR;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, maybe_reserved_functor);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__map__singleton_2_0,
		backend_libs__type_ctor_info__make_res_name_ordered_table_3_0_i10);
MR_def_label(backend_libs__type_ctor_info__make_res_name_ordered_table_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,20);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(4);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(map__det_insert_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___backend_libs__rtti__du_rep_0_0);
MR_decl_entry(__Unify___hlds__hlds_data__reserved_address_0_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module31)
	MR_init_entry1(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0);
	MR_init_label3(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,16,5,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i16);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,1)) {
		MR_GOTO_LAB(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i1);
	}
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_tfield(1, MR_tempr2, 0);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___backend_libs__rtti__du_rep_0_0);
	}
MR_def_label(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i1);
	}
	MR_r1 = MR_tfield(0, MR_sv(1), 0);
	MR_r2 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_data__reserved_address_0_0);
MR_def_label(__Unify___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___backend_libs__rtti__du_rep_0_0);
MR_decl_entry(__Compare___hlds__hlds_data__reserved_address_0_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module32)
	MR_init_entry1(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0);
	MR_init_label5(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,3,2,7,5,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i2);
MR_def_label(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i7);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___backend_libs__rtti__du_rep_0_0);
MR_def_label(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0_i10);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___backend_libs__type_ctor_info__maybe_reserved_rep_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_sv(1), 0);
	MR_r2 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_data__reserved_address_0_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___list__list_1_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module33)
	MR_init_entry1(__Unify___backend_libs__type_ctor_info__name_sort_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___backend_libs__type_ctor_info__name_sort_info_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___backend_libs__type_ctor_info__name_sort_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,25);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___list__list_1_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module34)
	MR_init_entry1(__Compare___backend_libs__type_ctor_info__name_sort_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___backend_libs__type_ctor_info__name_sort_info_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___backend_libs__type_ctor_info__name_sort_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,25);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___tree234__tree234_2_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module35)
	MR_init_entry1(__Unify___backend_libs__type_ctor_info__reserved_addr_map_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___backend_libs__type_ctor_info__reserved_addr_map_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___backend_libs__type_ctor_info__reserved_addr_map_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, reserved_address);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, rtti_data);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___tree234__tree234_2_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module36)
	MR_init_entry1(__Compare___backend_libs__type_ctor_info__reserved_addr_map_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___backend_libs__type_ctor_info__reserved_addr_map_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___backend_libs__type_ctor_info__reserved_addr_map_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, reserved_address);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, rtti_data);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module37)
	MR_init_entry1(__Unify___backend_libs__type_ctor_info__tag_list_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___backend_libs__type_ctor_info__tag_list_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___backend_libs__type_ctor_info__tag_list_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,28);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module38)
	MR_init_entry1(__Compare___backend_libs__type_ctor_info__tag_list_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___backend_libs__type_ctor_info__tag_list_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___backend_libs__type_ctor_info__tag_list_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,28);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module39)
	MR_init_entry1(__Unify___backend_libs__type_ctor_info__tag_map_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___backend_libs__type_ctor_info__tag_map_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___backend_libs__type_ctor_info__tag_map_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,27);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module40)
	MR_init_entry1(__Compare___backend_libs__type_ctor_info__tag_map_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___backend_libs__type_ctor_info__tag_map_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___backend_libs__type_ctor_info__tag_map_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,27);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module41)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__gen_builtin_type_ctor_gen_infos__206__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__gen_builtin_type_ctor_gen_infos__206__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__gen_builtin_type_ctor_gen_infos__206__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__gen_builtin_type_ctor_gen_infos__206__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(__Unify___mdbcomp__prim_data__sym_name_0_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module42)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__622__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__622__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_enum_functors__622__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__622__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module43)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__624__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__624__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_enum_functors__624__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__624__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module44)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__627__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__627__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_enum_functors__627__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__627__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___hlds__hlds_data__cons_tag_0_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module45)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__631__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__631__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_enum_functors__631__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_enum_functors__631__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(__Unify___hlds__hlds_data__cons_tag_0_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module46)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__689__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__689__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_foreign_enum_functors__689__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__689__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module47)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__691__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__691__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_foreign_enum_functors__691__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__691__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_constraint);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module48)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__694__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__694__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_foreign_enum_functors__694__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__694__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module49)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__700__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__700__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_foreign_enum_functors__700__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_foreign_enum_functors__700__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module50)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__778__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__778__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_du_details__778__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__778__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module51)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__786__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__786__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_du_details__786__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_details__786__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module52)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__842__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__842__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_maybe_res_functors__842__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__842__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module53)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__843__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__843__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_maybe_res_functors__843__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__843__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, du_arg_info);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__rtti__type_ctor_info_exist_info_0;
MR_decl_entry(__Unify___maybe__maybe_1_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module54)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__844__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__844__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_maybe_res_functors__844__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_maybe_res_functors__844__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, exist_info);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module55)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__938__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__938__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_exist_into__938__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__938__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module56)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0);
	MR_init_label1(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_exist_into__946__1'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_tag_alloc_heap(MR_r5, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r5, 0) = MR_r2;
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn);
	MR_r4 = MR_tempr1;
	MR_r6 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0_i4);
MR_def_label(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__946__1_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = ((MR_Integer) MR_sv(1) + (MR_Integer) 1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);

MR_BEGIN_MODULE(backend_libs__type_ctor_info_module57)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__956__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__956__1_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_exist_into__956__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__generate_exist_into__956__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(backend_libs__rtti, exist_typeinfo_locn);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr2;
	MR_np_tailcall_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module58)
	MR_init_entry1(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_ptag_ordered_table__1020__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_ptag_ordered_table__1020__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__make_du_ptag_ordered_table__1020__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(backend_libs__type_ctor_info__IntroducedFrom__pred__make_du_ptag_ordered_table__1020__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(backend_libs__type_ctor_info_module59)
	MR_init_entry1(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0);
	MR_init_label1(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__make_functor_number_map__1081__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor_arg);
	MR_r2 = MR_tfield(0, MR_tempr1, 3);
	}
	MR_np_call_localret_ent(fn__list__length_1_0,
		fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0_i2);
MR_def_label(fn__backend_libs__type_ctor_info__IntroducedFrom__func__make_functor_number_map__1081__1_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

static void mercury__backend_libs__type_ctor_info_maybe_bunch_0(void)
{
	backend_libs__type_ctor_info_module0();
	backend_libs__type_ctor_info_module1();
	backend_libs__type_ctor_info_module2();
	backend_libs__type_ctor_info_module3();
	backend_libs__type_ctor_info_module4();
	backend_libs__type_ctor_info_module5();
	backend_libs__type_ctor_info_module6();
	backend_libs__type_ctor_info_module7();
	backend_libs__type_ctor_info_module8();
	backend_libs__type_ctor_info_module9();
	backend_libs__type_ctor_info_module10();
	backend_libs__type_ctor_info_module11();
	backend_libs__type_ctor_info_module12();
	backend_libs__type_ctor_info_module13();
	backend_libs__type_ctor_info_module14();
	backend_libs__type_ctor_info_module15();
	backend_libs__type_ctor_info_module16();
	backend_libs__type_ctor_info_module17();
	backend_libs__type_ctor_info_module18();
	backend_libs__type_ctor_info_module19();
	backend_libs__type_ctor_info_module20();
	backend_libs__type_ctor_info_module21();
	backend_libs__type_ctor_info_module22();
	backend_libs__type_ctor_info_module23();
	backend_libs__type_ctor_info_module24();
	backend_libs__type_ctor_info_module25();
	backend_libs__type_ctor_info_module26();
	backend_libs__type_ctor_info_module27();
	backend_libs__type_ctor_info_module28();
	backend_libs__type_ctor_info_module29();
	backend_libs__type_ctor_info_module30();
	backend_libs__type_ctor_info_module31();
	backend_libs__type_ctor_info_module32();
	backend_libs__type_ctor_info_module33();
	backend_libs__type_ctor_info_module34();
	backend_libs__type_ctor_info_module35();
	backend_libs__type_ctor_info_module36();
	backend_libs__type_ctor_info_module37();
	backend_libs__type_ctor_info_module38();
	backend_libs__type_ctor_info_module39();
}

static void mercury__backend_libs__type_ctor_info_maybe_bunch_1(void)
{
	backend_libs__type_ctor_info_module40();
	backend_libs__type_ctor_info_module41();
	backend_libs__type_ctor_info_module42();
	backend_libs__type_ctor_info_module43();
	backend_libs__type_ctor_info_module44();
	backend_libs__type_ctor_info_module45();
	backend_libs__type_ctor_info_module46();
	backend_libs__type_ctor_info_module47();
	backend_libs__type_ctor_info_module48();
	backend_libs__type_ctor_info_module49();
	backend_libs__type_ctor_info_module50();
	backend_libs__type_ctor_info_module51();
	backend_libs__type_ctor_info_module52();
	backend_libs__type_ctor_info_module53();
	backend_libs__type_ctor_info_module54();
	backend_libs__type_ctor_info_module55();
	backend_libs__type_ctor_info_module56();
	backend_libs__type_ctor_info_module57();
	backend_libs__type_ctor_info_module58();
	backend_libs__type_ctor_info_module59();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__backend_libs__type_ctor_info__init(void);
void mercury__backend_libs__type_ctor_info__init_type_tables(void);
void mercury__backend_libs__type_ctor_info__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__backend_libs__type_ctor_info__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__backend_libs__type_ctor_info__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__backend_libs__type_ctor_info__init_threadscope_string_table(void);
#endif

void mercury__backend_libs__type_ctor_info__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__backend_libs__type_ctor_info_maybe_bunch_0();
	mercury__backend_libs__type_ctor_info_maybe_bunch_1();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_backend_libs__type_ctor_info__type_ctor_info_maybe_reserved_rep_0,
		backend_libs__type_ctor_info__maybe_reserved_rep_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_backend_libs__type_ctor_info__type_ctor_info_name_sort_info_0,
		backend_libs__type_ctor_info__name_sort_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_backend_libs__type_ctor_info__type_ctor_info_reserved_addr_map_0,
		backend_libs__type_ctor_info__reserved_addr_map_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_list_0,
		backend_libs__type_ctor_info__tag_list_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_map_0,
		backend_libs__type_ctor_info__tag_map_0_0);
	mercury__backend_libs__type_ctor_info__init_debugger();
}

void mercury__backend_libs__type_ctor_info__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_backend_libs__type_ctor_info__type_ctor_info_maybe_reserved_rep_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_backend_libs__type_ctor_info__type_ctor_info_name_sort_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_backend_libs__type_ctor_info__type_ctor_info_reserved_addr_map_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_list_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_backend_libs__type_ctor_info__type_ctor_info_tag_map_0);
	}
}


void mercury__backend_libs__type_ctor_info__init_debugger(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
}

#ifdef MR_DEEP_PROFILING

void mercury__backend_libs__type_ctor_info__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__backend_libs__type_ctor_info);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__backend_libs__type_ctor_info__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__backend_libs__type_ctor_info__init_threadscope_string_table(void)
{
}

#endif

/* ensure everything is compiled with the same grade */
static const void *const MR_grade = &MR_GRADE_VAR;
