/*
** Automatically generated from `term_constr_errors.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__transform_hlds__term_constr_errors__init
ENDINIT
*/

#define MR_ALLOW_RESET
#include "mercury_imp.h"
#line 526 "../library/io.int"
#include "io.mh"

#line 28 "transform_hlds.term_constr_errors.c"
#line 536 "../library/io.int"
#include "time.mh"

#line 32 "transform_hlds.term_constr_errors.c"
#line 537 "../library/io.int"
#include "string.mh"

#line 36 "transform_hlds.term_constr_errors.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 40 "transform_hlds.term_constr_errors.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 44 "transform_hlds.term_constr_errors.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 48 "transform_hlds.term_constr_errors.c"
#line 49 "transform_hlds.term_constr_errors.c"
#include "transform_hlds.term_constr_errors.mh"

#line 52 "transform_hlds.term_constr_errors.c"
#line 53 "transform_hlds.term_constr_errors.c"
#ifndef TRANSFORM_HLDS__TERM_CONSTR_ERRORS_DECL_GUARD
#define TRANSFORM_HLDS__TERM_CONSTR_ERRORS_DECL_GUARD

#line 57 "transform_hlds.term_constr_errors.c"
#line 58 "transform_hlds.term_constr_errors.c"

#endif
#line 61 "transform_hlds.term_constr_errors.c"

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

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

struct mercury_type_1 {
	MR_Word * f1[2];
};
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_String f1;
};
MR_STATIC_LINKAGE const struct mercury_type_3 mercury_common_3[];

struct mercury_type_4 {
	MR_String f1;
	MR_Word * f2;
};
MR_STATIC_LINKAGE const struct mercury_type_4 mercury_common_4[];

struct mercury_type_5 {
	MR_Word * f1[3];
};
MR_STATIC_LINKAGE const struct mercury_type_5 mercury_common_5[];

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

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

extern const MR_TypeCtorInfo_Struct
	mercury_data_transform_hlds__term_constr_errors__type_ctor_info_error_0,
	mercury_data_transform_hlds__term_constr_errors__type_ctor_info_term2_errors_0,
	mercury_data_transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0;
MR_decl_label3(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0, 2,5,1)
MR_decl_label1(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0, 1)
MR_decl_label4(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0, 2,5,7,1)
MR_decl_label10(transform_hlds__term_constr_errors__description_5_0, 3,4,94,11,10,14,18,22,23,8)
MR_decl_label8(transform_hlds__term_constr_errors__description_5_0, 28,31,27,33,25,37,42,43)
MR_decl_label5(transform_hlds__term_constr_errors__output_error_7_0, 2,4,5,9,12)
MR_decl_label7(transform_hlds__term_constr_errors__output_errors_7_0, 23,5,6,10,13,14,25)
MR_decl_label10(transform_hlds__term_constr_errors__report_term_errors_5_0, 2,8,9,3,15,16,17,18,23,20)
MR_decl_label5(transform_hlds__term_constr_errors__report_term_errors_5_0, 29,30,26,34,35)
MR_decl_label10(transform_hlds__term_constr_errors__report_termination2_errors_6_0, 2,3,4,7,8,10,11,5,15,16)
MR_decl_label5(transform_hlds__term_constr_errors__report_termination2_errors_6_0, 23,33,25,18,13)
MR_decl_label8(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0, 5,6,7,10,8,33,14,1)
MR_decl_label10(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0, 7,8,9,10,5,14,15,16,17,12)
MR_decl_label10(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0, 21,22,108,23,24,19,28,184,29,30)
MR_decl_label10(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0, 33,26,41,42,43,44,39,48,49,50)
MR_decl_label3(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0, 51,52,54)
MR_decl_static(transform_hlds__term_constr_errors__description_5_0)
MR_decl_static(transform_hlds__term_constr_errors__output_error_7_0)
MR_decl_static(transform_hlds__term_constr_errors__output_errors_7_0)
MR_decl_static(transform_hlds__term_constr_errors__report_term_errors_5_0)
MR_def_extern_entry(transform_hlds__term_constr_errors__report_termination2_errors_6_0)
MR_def_extern_entry(__Unify___transform_hlds__term_constr_errors__error_0_0)
MR_def_extern_entry(__Compare___transform_hlds__term_constr_errors__error_0_0)
MR_def_extern_entry(__Unify___transform_hlds__term_constr_errors__term2_errors_0_0)
MR_def_extern_entry(__Compare___transform_hlds__term_constr_errors__term2_errors_0_0)
MR_def_extern_entry(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0)
MR_def_extern_entry(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0)
MR_decl_static(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0)
MR_decl_static(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0)
MR_decl_static(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0)
MR_decl_static(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__234__1_2_0)
MR_decl_static(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__261__1_2_0)

static const struct mercury_type_0 mercury_common_0[21] =
{
{
4,
MR_string_const("is not satisfiable.", 19)
},
{
4,
MR_string_const("The termination condition", 25)
},
{
4,
MR_string_const("It contains a higher-order call.", 32)
},
{
4,
MR_string_const("imported from another module.", 29)
},
{
4,
MR_string_const("predicates and/or functions", 27)
},
{
4,
MR_string_const("It contains one or more", 23)
},
{
4,
MR_string_const("calls", 5)
},
{
4,
MR_string_const("It", 2)
},
{
4,
MR_string_const("which could not be proven to terminate.", 39)
},
{
4,
MR_string_const("declaration for", 15)
},
{
4,
MR_string_const("There is a", 10)
},
{
4,
MR_string_const(".", 1)
},
{
4,
MR_string_const("it.", 3)
},
{
4,
MR_string_const("There is a call the foreign procedure", 37)
},
{
4,
MR_string_const("which is not known to terminate.", 32)
},
{
4,
MR_string_const("Termination of", 14)
},
{
4,
MR_string_const("Termination of the mutually", 27)
},
{
4,
MR_string_const("recursive procedures", 20)
},
{
4,
MR_string_const("not proven, for unknown reason(s).", 34)
},
{
4,
MR_string_const("not proven for the following reason:", 36)
},
{
4,
MR_string_const("not proven for the following reasons:", 37)
},
};

static const struct mercury_type_1 mercury_common_1[21] =
{
{
{
MR_TAG_COMMON(3,0,0),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,1),
MR_TAG_COMMON(1,1,0)
}
},
{
{
MR_TAG_COMMON(3,0,2),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,3),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,4),
MR_TAG_COMMON(1,1,3)
}
},
{
{
MR_TAG_COMMON(3,0,5),
MR_TAG_COMMON(1,1,4)
}
},
{
{
MR_TAG_COMMON(3,0,7),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,8),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,9),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(1,3,0),
MR_TAG_COMMON(1,1,8)
}
},
{
{
MR_TAG_COMMON(3,0,10),
MR_TAG_COMMON(1,1,9)
}
},
{
{
MR_TAG_COMMON(3,0,11),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,12),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,13),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,14),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,15),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,17),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,16),
MR_TAG_COMMON(1,1,16)
}
},
{
{
MR_TAG_COMMON(3,0,18),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,19),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,0,20),
MR_tbmkword(0, 0)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__description_5_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__description_5_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_module_info_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_2;
static const struct mercury_type_2 mercury_common_2[4] =
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_constr_errors__description_5_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_constr_errors__description_5_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id)
},
};

static const struct mercury_type_3 mercury_common_3[1] =
{
{
MR_string_const("\140:- pragma does_not_terminate\'", 30)
},
};

static const struct mercury_type_4 mercury_common_4[1] =
{
{
MR_string_const(":", 1),
MR_tbmkword(0, 0)
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0;
static const struct mercury_type_5 mercury_common_5[2] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(term, context),
MR_CTOR0_ADDR(transform_hlds__term_constr_errors, termination2_error)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(term, context),
MR_CTOR0_ADDR(transform_hlds__term_constr_errors, termination2_error)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_3;
static const struct mercury_type_6 mercury_common_6[1] =
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_3,
(MR_Word *) (MR_Integer) 0,
1,
MR_COMMON(5,1)
},
};

static const struct mercury_type_7 mercury_common_7[1] =
{
{
MR_COMMON(6,0),
MR_ENTRY_AP(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0),
0
},
};

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2term__type_ctor_info_context_0transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_term__type_ctor_info_context_0,
	(MR_TypeInfo) &mercury_data_transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_constr_errors__type_ctor_info_error_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__term_constr_errors__error_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__term_constr_errors__error_0_0)),
	"transform_hlds.term_constr_errors",
	"error",
	{ 0 },
	{ (void *)&mercury_data_pair__ti_pair_2term__type_ctor_info_context_0transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0 },
	-1,
	0,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1pair__ti_pair_2term__type_ctor_info_context_0transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2term__type_ctor_info_context_0transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_constr_errors__type_ctor_info_term2_errors_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__term_constr_errors__term2_errors_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__term_constr_errors__term2_errors_0_0)),
	"transform_hlds.term_constr_errors",
	"term2_errors",
	{ 0 },
	{ (void *)&mercury_data_list__ti_list_1pair__ti_pair_2term__type_ctor_info_context_0transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0 },
	-1,
	0,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_0 = {
	"imported_pred",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	0,
	0,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_constr_errors__field_types_termination2_error_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_1 = {
	"can_loop_proc_called",
	2,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_constr_errors__field_types_termination2_error_0_1,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_2 = {
	"cond_not_satisfied",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	2,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_3 = {
	"horder_call",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	2,
	3,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_constr_errors__field_types_termination2_error_0_4[] = {
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_4 = {
	"does_not_term_pragma",
	1,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	4,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_constr_errors__field_types_termination2_error_0_4,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_constr_errors__field_types_termination2_error_0_5[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_5 = {
	"foreign_proc_called",
	1,
	0,
	MR_SECTAG_NONE,
	3,
	-1,
	5,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_constr_errors__field_types_termination2_error_0_5,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_0[] = {
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_0,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_2,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_3

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_1[] = {
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_1

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_2[] = {
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_4

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_3[] = {
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_5

};

const MR_DuPtagLayout mercury_data_transform_hlds__term_constr_errors__du_ptag_ordered_termination2_error_0[] = {
	{ 3, MR_SECTAG_LOCAL,
	mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_2 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__term_constr_errors__du_stag_ordered_termination2_error_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_constr_errors__du_name_ordered_termination2_error_0[] = {
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_1,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_2,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_4,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_5,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_3,
	&mercury_data_transform_hlds__term_constr_errors__du_functor_desc_termination2_error_0_0
};

const MR_Integer mercury_data_transform_hlds__term_constr_errors__functor_number_map_termination2_error_0[] = {
	5,
	0,
	1,
	4,
	2,
	3 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0)),
	"transform_hlds.term_constr_errors",
	"termination2_error",
	{ (void *)mercury_data_transform_hlds__term_constr_errors__du_name_ordered_termination2_error_0 },
	{ (void *)mercury_data_transform_hlds__term_constr_errors__du_ptag_ordered_termination2_error_0 },
	6,
	4,
	mercury_data_transform_hlds__term_constr_errors__functor_number_map_termination2_error_0
};


static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_3 = {
{
MR_PREDICATE,
"transform_hlds.term_constr_errors",
"transform_hlds.term_constr_errors",
"lambda_term_constr_errors_m_121",
1,
0
},
"transform_hlds.term_constr_errors",
"term_constr_errors.m",
121,
"53"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_2 = {
{
MR_PREDICATE,
"transform_hlds.term_constr_errors",
"transform_hlds.term_constr_errors",
"lambda_term_constr_errors_m_108",
2,
0
},
"transform_hlds.term_constr_errors",
"term_constr_errors.m",
108,
"35"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__report_termination2_errors_6_0_1 = {
{
MR_PREDICATE,
"transform_hlds.term_constr_errors",
"transform_hlds.term_constr_errors",
"lambda_term_constr_errors_m_95",
2,
0
},
"transform_hlds.term_constr_errors",
"term_constr_errors.m",
95,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__description_5_0_2 = {
{
MR_PREDICATE,
"transform_hlds.term_constr_errors",
"transform_hlds.term_constr_errors",
"lambda_term_constr_errors_m_261",
2,
0
},
"transform_hlds.term_constr_errors",
"term_constr_errors.m",
261,
"102"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_constr_errors__description_5_0_1 = {
{
MR_PREDICATE,
"transform_hlds.term_constr_errors",
"transform_hlds.term_constr_errors",
"lambda_term_constr_errors_m_234",
2,
0
},
"transform_hlds.term_constr_errors",
"term_constr_errors.m",
234,
"43"
};


MR_decl_entry(fn__hlds__hlds_error_util__describe_one_proc_name_3_0);
MR_decl_entry(require__expect_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_format_component_0;
MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);
MR_decl_entry(fn__hlds__hlds_error_util__describe_one_pred_name_3_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module0)
	MR_init_entry1(transform_hlds__term_constr_errors__description_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__description_5_0);
	MR_init_label10(transform_hlds__term_constr_errors__description_5_0,3,4,94,11,10,14,18,22,23,8)
	MR_init_label8(transform_hlds__term_constr_errors__description_5_0,28,31,27,33,25,37,42,43)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'description'/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(transform_hlds__term_constr_errors__description_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,1);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_constr_errors__description_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i4);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,2);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_constr_errors__description_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i94);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,5);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_constr_errors__description_5_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i8);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i10);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(1) = MR_tempr2;
	MR_sv(2) = MR_tfield(1, MR_r1, 1);
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_constr_errors__description_5_0_i11);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,0,6);
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_constr_errors__description_5_0_i18);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,10)
	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,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__234__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(1, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(1, MR_r2, 0);
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_constr_errors", 33);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_constr_errors.description\'/5", 59);
	MR_r4 = (MR_Word) MR_string_const("caller outside this SCC", 23);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_constr_errors__description_5_0_i14);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,6);
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,0,6);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_constr_errors__description_5_0_i18);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(2) = MR_tempr1;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr2;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,7);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i22);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i23);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i43);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i25);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__description_5_0_i27);
	}
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,10);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r3;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(2, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_pred_name_3_0,
		transform_hlds__term_constr_errors__description_5_0_i28);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,11);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i31);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i43);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,27)
	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,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__261__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(2, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tfield(1, MR_r2, 0), 0);
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,10);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_constr_errors", 33);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_constr_errors.description\'/5", 59);
	MR_r4 = (MR_Word) MR_string_const("does not terminate pragma outside this SCC", 42);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_constr_errors__description_5_0_i33);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,12);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i43);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r3;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(3, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_constr_errors__description_5_0_i37);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,13);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,14);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i42);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__description_5_0_i43);
MR_def_label(transform_hlds__term_constr_errors__description_5_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	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(hlds__hlds_module__module_info_get_globals_2_0);
MR_decl_entry(string__int_to_string_2_0);
MR_decl_entry(string__append_list_2_0);
MR_decl_entry(parse_tree__error_util__write_error_pieces_6_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module1)
	MR_init_entry1(transform_hlds__term_constr_errors__output_error_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__output_error_7_0);
	MR_init_label5(transform_hlds__term_constr_errors__output_error_7_0,2,4,5,9,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'output_error'/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(transform_hlds__term_constr_errors__output_error_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(4) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__term_constr_errors__description_5_0,
		transform_hlds__term_constr_errors__output_error_7_0_i2);
MR_def_label(transform_hlds__term_constr_errors__output_error_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__output_error_7_0_i4);
	}
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_constr_errors__output_error_7_0_i12);
MR_def_label(transform_hlds__term_constr_errors__output_error_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_tfield(1, MR_r2, 0);
	MR_np_call_localret_ent(string__int_to_string_2_0,
		transform_hlds__term_constr_errors__output_error_7_0_i5);
MR_def_label(transform_hlds__term_constr_errors__output_error_7_0,5)
	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_Word) MR_TAG_COMMON(1,4,0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Word) MR_string_const("Reason ", 7);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	MR_np_call_localret_ent(string__append_list_2_0,
		transform_hlds__term_constr_errors__output_error_7_0_i9);
MR_def_label(transform_hlds__term_constr_errors__output_error_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	MR_r1 = MR_sv(4);
	MR_sv(2) = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_constr_errors__output_error_7_0_i12);
MR_def_label(transform_hlds__term_constr_errors__output_error_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(parse_tree__error_util__write_error_pieces_6_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(transform_hlds__term_constr_errors_module2)
	MR_init_entry1(transform_hlds__term_constr_errors__output_errors_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__output_errors_7_0);
	MR_init_label7(transform_hlds__term_constr_errors__output_errors_7_0,23,5,6,10,13,14,25)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'output_errors'/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(transform_hlds__term_constr_errors__output_errors_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__output_errors_7_0_i25);
	}
	MR_tag_alloc_heap(MR_sv(6), 1, (MR_Integer) 1);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr2 = MR_r3;
	MR_tfield(1, MR_sv(6), 0) = MR_tempr2;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_sv(3) = MR_r4;
	MR_tempr3 = MR_r5;
	MR_sv(4) = MR_tempr3;
	MR_sv(5) = MR_tfield(1, MR_r1, 1);
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 0);
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tempr3;
	}
	MR_np_call_localret_ent(transform_hlds__term_constr_errors__description_5_0,
		transform_hlds__term_constr_errors__output_errors_7_0_i5);
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_tfield(1, MR_r2, 0);
	MR_np_call_localret_ent(string__int_to_string_2_0,
		transform_hlds__term_constr_errors__output_errors_7_0_i6);
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,6)
	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_Word) MR_TAG_COMMON(1,4,0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Word) MR_string_const("Reason ", 7);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	MR_np_call_localret_ent(string__append_list_2_0,
		transform_hlds__term_constr_errors__output_errors_7_0_i10);
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(6);
	MR_sv(6) = MR_tempr1;
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_constr_errors__output_errors_7_0_i13);
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(6);
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_6_0,
		transform_hlds__term_constr_errors__output_errors_7_0_i14);
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r3 = ((MR_Integer) MR_sv(2) + (MR_Integer) 1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_succip_word = MR_sv(8);
	MR_GOTO_LAB(transform_hlds__term_constr_errors__output_errors_7_0_i23);
MR_def_label(transform_hlds__term_constr_errors__output_errors_7_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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

MR_decl_entry(transform_hlds__term_util__get_context_from_scc_3_0);
MR_decl_entry(fn__hlds__hlds_error_util__describe_several_proc_names_3_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module3)
	MR_init_entry1(transform_hlds__term_constr_errors__report_term_errors_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__report_term_errors_5_0);
	MR_init_label10(transform_hlds__term_constr_errors__report_term_errors_5_0,2,8,9,3,15,16,17,18,23,20)
	MR_init_label5(transform_hlds__term_constr_errors__report_term_errors_5_0,29,30,26,34,35)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'report_term_errors'/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(transform_hlds__term_constr_errors__report_term_errors_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__term_util__get_context_from_scc_3_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i2);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(1),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_term_errors_5_0_i3);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_sv(1);
	MR_tempr1 = MR_tfield(1, MR_tempr2, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_term_errors_5_0_i3);
	}
	MR_tempr1 = MR_tempr2;
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(1,1,15);
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i8);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i9);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(5), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(5), 0) = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_GOTO_LAB(transform_hlds__term_constr_errors__report_term_errors_5_0_i17);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(1,1,17);
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_several_proc_names_3_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i15);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i16);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i18);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_term_errors_5_0_i20);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,18);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i23);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_tempr1;
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__error_util__write_error_pieces_6_0);
	}
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_sv(2), 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_term_errors_5_0_i26);
	}
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_sv(2) = MR_tfield(1, MR_sv(2), 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,19);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i29);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_6_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i30);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(3);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(transform_hlds__term_constr_errors__output_error_7_0);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,20);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i34);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_6_0,
		transform_hlds__term_constr_errors__report_term_errors_5_0_i35);
MR_def_label(transform_hlds__term_constr_errors__report_term_errors_5_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Integer) 1;
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(3);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(transform_hlds__term_constr_errors__output_errors_7_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(libs__globals__lookup_bool_option_3_0);
MR_decl_entry(fn__list__filter_2_0);
MR_decl_entry(list__is_not_empty_1_0);
MR_decl_entry(io__set_exit_status_3_0);
MR_decl_entry(hlds__hlds_module__module_info_incr_errors_2_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module4)
	MR_init_entry1(transform_hlds__term_constr_errors__report_termination2_errors_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__report_termination2_errors_6_0);
	MR_init_label10(transform_hlds__term_constr_errors__report_termination2_errors_6_0,2,3,4,7,8,10,11,5,15,16)
	MR_init_label5(transform_hlds__term_constr_errors__report_termination2_errors_6_0,23,33,25,18,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'report_termination2_errors'/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_define_entry(mercury__transform_hlds__term_constr_errors__report_termination2_errors_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i2);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r2 = (MR_Integer) 410;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i3);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 411;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i4);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(2,2);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(fn__list__filter_2_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i7);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__is_not_empty_1_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i8);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_termination2_errors_6_0_i5);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(transform_hlds__term_constr_errors__report_term_errors_5_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i10);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i11);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(hlds__hlds_module__module_info_incr_errors_2_0);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(2,3);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(fn__list__filter_2_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i15);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__is_not_empty_1_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i16);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_termination2_errors_6_0_i13);
	}
	if (MR_INT_NE(MR_sv(4),0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_termination2_errors_6_0_i33);
	}
	if (MR_INT_NE(MR_sv(3),1)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_termination2_errors_6_0_i13);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,5,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,7,0);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(fn__list__filter_2_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i23);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__report_termination2_errors_6_0_i25);
	}
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_GOTO_LAB(transform_hlds__term_constr_errors__report_termination2_errors_6_0_i18);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_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_sv(5);
	}
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r3;
	MR_np_call_localret_ent(transform_hlds__term_constr_errors__report_term_errors_5_0,
		transform_hlds__term_constr_errors__report_termination2_errors_6_0_i13);
MR_def_label(transform_hlds__term_constr_errors__report_termination2_errors_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
#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___pair__pair_2_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module5)
	MR_init_entry1(__Unify___transform_hlds__term_constr_errors__error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__term_constr_errors__error_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_define_entry(mercury____Unify___transform_hlds__term_constr_errors__error_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(term, context);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__term_constr_errors, termination2_error);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___pair__pair_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___pair__pair_2_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module6)
	MR_init_entry1(__Compare___transform_hlds__term_constr_errors__error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__term_constr_errors__error_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_define_entry(mercury____Compare___transform_hlds__term_constr_errors__error_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(term, context);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__term_constr_errors, termination2_error);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___pair__pair_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(__Unify___list__list_1_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module7)
	MR_init_entry1(__Unify___transform_hlds__term_constr_errors__term2_errors_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__term_constr_errors__term2_errors_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_define_entry(mercury____Unify___transform_hlds__term_constr_errors__term2_errors_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,5,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_decl_entry(__Compare___list__list_1_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module8)
	MR_init_entry1(__Compare___transform_hlds__term_constr_errors__term2_errors_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__term_constr_errors__term2_errors_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_define_entry(mercury____Compare___transform_hlds__term_constr_errors__term2_errors_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,5,0);
	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___hlds__hlds_pred__pred_proc_id_0_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module9)
	MR_init_entry1(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__term_constr_errors__termination2_error_0_0);
	MR_init_label8(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,5,6,7,10,8,33,14,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_define_entry(mercury____Unify___transform_hlds__term_constr_errors__termination2_error_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i33);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i7);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i8);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr2, 1);
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i10);
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i14);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(2, MR_sv(1), 0);
	MR_tempr2 = MR_tfield(2, MR_sv(2), 0);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(3);
	}
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_constr_errors__termination2_error_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 0);
	MR_r2 = MR_tfield(3, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_constr_errors__termination2_error_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___hlds__hlds_pred__pred_proc_id_0_0);
MR_decl_entry(private_builtin__builtin_compare_int_3_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module10)
	MR_init_entry1(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__term_constr_errors__termination2_error_0_0);
	MR_init_label10(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,7,8,9,10,5,14,15,16,17,12)
	MR_init_label10(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,21,22,108,23,24,19,28,184,29,30)
	MR_init_label10(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,33,26,41,42,43,44,39,48,49,50)
	MR_init_label3(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,51,52,54)
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_define_entry(mercury____Compare___transform_hlds__term_constr_errors__termination2_error_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i108);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp(3);
	MR_proceed();
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i8);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i9);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i10);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i184);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i12);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i14);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i15);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i16);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i17);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i184);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i19);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i21);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i22);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i23);
	}
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i24);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i184);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i26);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i28);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i29);
	}
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,184)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i30);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i184);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(1, MR_tempr5, 1);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(1, MR_tempr3, 0);
	MR_r2 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i33);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i54);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i39);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i41);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i42);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i43);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i44);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i184);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i48);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i49);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i50);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i51);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0_i52);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(3, MR_sv(1), 0);
	MR_r2 = MR_tfield(3, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_constr_errors__termination2_error_0_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(hlds__hlds_module__module_info_pred_proc_info_4_0);
MR_decl_entry(hlds__hlds_pred__pred_info_is_imported_1_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_markers_2_0);
MR_decl_entry(hlds__hlds_pred__check_marker_2_0);

MR_BEGIN_MODULE(transform_hlds__term_constr_errors_module11)
	MR_init_entry1(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0);
	MR_init_label4(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0,2,5,7,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__report_termination2_errors__95__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(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_proc_info_4_0,
		transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0_i2);
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_is_imported_1_0,
		transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0_i5);
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_markers_2_0,
		transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0_i7);
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 19;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(hlds__hlds_pred__check_marker_2_0);
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__95__1_2_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	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(transform_hlds__term_constr_errors_module12)
	MR_init_entry1(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0);
	MR_init_label3(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0,2,5,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__report_termination2_errors__108__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(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_proc_info_4_0,
		transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0_i2);
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_is_imported_1_0,
		transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0_i5);
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0_i1);
	}
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__108__1_2_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	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(transform_hlds__term_constr_errors_module13)
	MR_init_entry1(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0);
	MR_init_label1(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__report_termination2_errors__121__1'/1 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(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 1);
	if (MR_LTAGS_TEST(MR_r2,0,2)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0_i1);
	}
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0_i1);
	}
	if (MR_PTAG_TEST(MR_r2,1)) {
		MR_GOTO_LAB(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_1_0_i1);
	}
	MR_r1 = (MR_tag(MR_r2) != MR_mktag((MR_Integer) 2));
	MR_proceed();
MR_def_label(transform_hlds__term_constr_errors__IntroducedFrom__pred__report_termination2_errors__121__1_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(transform_hlds__term_constr_errors_module14)
	MR_init_entry1(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__234__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__IntroducedFrom__pred__description__234__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__234__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(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__234__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___hlds__hlds_pred__pred_proc_id_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(transform_hlds__term_constr_errors_module15)
	MR_init_entry1(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__261__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_constr_errors__IntroducedFrom__pred__description__261__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__261__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(transform_hlds__term_constr_errors__IntroducedFrom__pred__description__261__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

static void mercury__transform_hlds__term_constr_errors_maybe_bunch_0(void)
{
	transform_hlds__term_constr_errors_module0();
	transform_hlds__term_constr_errors_module1();
	transform_hlds__term_constr_errors_module2();
	transform_hlds__term_constr_errors_module3();
	transform_hlds__term_constr_errors_module4();
	transform_hlds__term_constr_errors_module5();
	transform_hlds__term_constr_errors_module6();
	transform_hlds__term_constr_errors_module7();
	transform_hlds__term_constr_errors_module8();
	transform_hlds__term_constr_errors_module9();
	transform_hlds__term_constr_errors_module10();
	transform_hlds__term_constr_errors_module11();
	transform_hlds__term_constr_errors_module12();
	transform_hlds__term_constr_errors_module13();
	transform_hlds__term_constr_errors_module14();
	transform_hlds__term_constr_errors_module15();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__transform_hlds__term_constr_errors__init(void);
void mercury__transform_hlds__term_constr_errors__init_type_tables(void);
void mercury__transform_hlds__term_constr_errors__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__transform_hlds__term_constr_errors__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__transform_hlds__term_constr_errors__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__transform_hlds__term_constr_errors__init_threadscope_string_table(void);
#endif

void mercury__transform_hlds__term_constr_errors__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__transform_hlds__term_constr_errors_maybe_bunch_0();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__term_constr_errors__type_ctor_info_error_0,
		transform_hlds__term_constr_errors__error_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__term_constr_errors__type_ctor_info_term2_errors_0,
		transform_hlds__term_constr_errors__term2_errors_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0,
		transform_hlds__term_constr_errors__termination2_error_0_0);
	mercury__transform_hlds__term_constr_errors__init_debugger();
}

void mercury__transform_hlds__term_constr_errors__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__term_constr_errors__type_ctor_info_error_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__term_constr_errors__type_ctor_info_term2_errors_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__term_constr_errors__type_ctor_info_termination2_error_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__transform_hlds__term_constr_errors__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__transform_hlds__term_constr_errors);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__transform_hlds__term_constr_errors__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__transform_hlds__term_constr_errors__init_threadscope_string_table(void)
{
}

#endif

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