/*
** Automatically generated from `term_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_errors__init
ENDINIT
*/

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

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

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

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

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

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

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

#line 52 "transform_hlds.term_errors.c"
#line 53 "transform_hlds.term_errors.c"
#ifndef TRANSFORM_HLDS__TERM_ERRORS_DECL_GUARD
#define TRANSFORM_HLDS__TERM_ERRORS_DECL_GUARD

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

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

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

struct mercury_type_0 {
	MR_String f1;
	MR_Word * 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_Integer f1;
	MR_String f2;
};
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_Word * f1;
	MR_Word * f2;
	MR_Integer f3;
	MR_Word * f4;
	MR_Word * f5;
};
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_Integer f1;
};
MR_STATIC_LINKAGE const struct mercury_type_6 mercury_common_6[];

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

extern const MR_TypeCtorInfo_Struct
	mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_0,
	mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_context_0,
	mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_contexts_0;
MR_decl_label10(transform_hlds__term_errors__description_5_0, 3,6,7,10,13,14,15,16,20,19)
MR_decl_label10(transform_hlds__term_errors__description_5_0, 23,27,31,32,17,37,36,40,44,48)
MR_decl_label10(transform_hlds__term_errors__description_5_0, 49,34,55,52,63,51,69,75,78,74)
MR_decl_label10(transform_hlds__term_errors__description_5_0, 80,70,87,86,95,84,108,107,111,115)
MR_decl_label10(transform_hlds__term_errors__description_5_0, 117,118,105,124,123,127,131,135,136,137)
MR_decl_label10(transform_hlds__term_errors__description_5_0, 120,363,143,142,148,146,150,156,157,158)
MR_decl_label4(transform_hlds__term_errors__description_5_0, 160,163,165,170)
MR_decl_label10(transform_hlds__term_errors__output_term_error_7_0, 2,4,5,9,3,12,13,16,17,14)
MR_decl_label3(transform_hlds__term_errors__output_term_errors_7_0, 11,5,13)
MR_decl_label10(transform_hlds__term_errors__report_arg_size_errors_5_0, 2,3,9,10,4,17,18,20,28,29)
MR_decl_label5(transform_hlds__term_errors__report_arg_size_errors_5_0, 24,34,35,37,22)
MR_decl_label10(transform_hlds__term_errors__report_term_errors_5_0, 2,3,9,10,4,16,17,18,23,20)
MR_decl_label6(transform_hlds__term_errors__report_term_errors_5_0, 29,30,26,34,35,37)
MR_decl_label1(transform_hlds__term_errors__term_errors_var_bag_description_3_0, 3)
MR_decl_label9(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0, 49,5,7,8,10,11,16,15,18)
MR_decl_label10(fn__transform_hlds__term_errors__is_fatal_error_1_0, 3,4,5,6,7,8,9,10,11,12)
MR_decl_label3(fn__transform_hlds__term_errors__is_fatal_error_1_0, 13,14,94)
MR_decl_label10(fn__transform_hlds__term_errors__is_indirect_error_1_0, 3,4,5,6,7,8,9,10,11,12)
MR_decl_label3(fn__transform_hlds__term_errors__is_indirect_error_1_0, 13,93,14)
MR_decl_label10(__Unify___transform_hlds__term_errors__termination_error_0_0, 5,6,7,8,9,10,11,12,15,13)
MR_decl_label10(__Unify___transform_hlds__term_errors__termination_error_0_0, 21,19,27,25,32,36,40,38,46,44)
MR_decl_label7(__Unify___transform_hlds__term_errors__termination_error_0_0, 52,50,116,56,59,62,1)
MR_decl_label3(__Unify___transform_hlds__term_errors__termination_error_context_0_0, 4,8,1)
MR_decl_label10(__Index___transform_hlds__term_errors__termination_error_0_0, 3,4,5,6,7,8,9,10,11,12)
MR_decl_label7(__Index___transform_hlds__term_errors__termination_error_0_0, 13,14,15,16,17,18,19)
MR_decl_label10(__Compare___transform_hlds__term_errors__termination_error_0_0, 4,5,6,7,10,11,12,13,14,15)
MR_decl_label10(__Compare___transform_hlds__term_errors__termination_error_0_0, 16,143,17,21,18,29,26,37,34,43)
MR_decl_label10(__Compare___transform_hlds__term_errors__termination_error_0_0, 46,52,49,60,57,68,65,73,78,83)
MR_decl_label2(__Compare___transform_hlds__term_errors__termination_error_0_0, 8,94)
MR_decl_label4(__Compare___transform_hlds__term_errors__termination_error_context_0_0, 3,2,5,21)
MR_decl_static(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0)
MR_decl_static(transform_hlds__term_errors__term_errors_var_bag_description_3_0)
MR_decl_static(transform_hlds__term_errors__description_5_0)
MR_decl_static(transform_hlds__term_errors__report_arg_size_errors_5_0)
MR_decl_static(transform_hlds__term_errors__output_term_errors_7_0)
MR_decl_static(transform_hlds__term_errors__output_term_error_7_0)
MR_def_extern_entry(transform_hlds__term_errors__report_term_errors_5_0)
MR_def_extern_entry(fn__transform_hlds__term_errors__is_indirect_error_1_0)
MR_def_extern_entry(fn__transform_hlds__term_errors__is_fatal_error_1_0)
MR_def_extern_entry(__Unify___transform_hlds__term_errors__termination_error_0_0)
MR_def_extern_entry(__Index___transform_hlds__term_errors__termination_error_0_0)
MR_def_extern_entry(__Compare___transform_hlds__term_errors__termination_error_0_0)
MR_def_extern_entry(__Unify___transform_hlds__term_errors__termination_error_context_0_0)
MR_def_extern_entry(__Compare___transform_hlds__term_errors__termination_error_context_0_0)
MR_def_extern_entry(__Unify___transform_hlds__term_errors__termination_error_contexts_0_0)
MR_def_extern_entry(__Compare___transform_hlds__term_errors__termination_error_contexts_0_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__378__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__540__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__442__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__403__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__359__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__421__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__482__1_2_0)
MR_decl_static(transform_hlds__term_errors__IntroducedFrom__pred__description__486__1_2_0)

static const struct mercury_type_0 mercury_common_0[2] =
{
{
MR_string_const("{}", 2),
MR_tbmkword(0, 0)
},
{
MR_string_const(":", 1),
MR_tbmkword(0, 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_prog_var_type_0;
static const struct mercury_type_1 mercury_common_1[51] =
{
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_TAG_COMMON(3,2,0),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,1),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,2),
MR_TAG_COMMON(1,1,2)
}
},
{
{
MR_TAG_COMMON(3,2,3),
MR_TAG_COMMON(1,1,3)
}
},
{
{
MR_TAG_COMMON(3,2,4),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,5),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,6),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,7),
MR_TAG_COMMON(1,1,7)
}
},
{
{
MR_TAG_COMMON(3,2,8),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(1,3,0),
MR_TAG_COMMON(1,1,9)
}
},
{
{
MR_TAG_COMMON(3,2,9),
MR_TAG_COMMON(1,1,10)
}
},
{
{
MR_TAG_COMMON(3,2,10),
MR_TAG_COMMON(1,1,11)
}
},
{
{
MR_TAG_COMMON(3,2,11),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,12),
MR_TAG_COMMON(1,1,13)
}
},
{
{
MR_TAG_COMMON(3,2,13),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,14),
MR_TAG_COMMON(1,1,15)
}
},
{
{
MR_TAG_COMMON(3,2,16),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,17),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,18),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,21),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,20),
MR_TAG_COMMON(1,1,20)
}
},
{
{
MR_TAG_COMMON(3,2,22),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,23),
MR_TAG_COMMON(1,1,22)
}
},
{
{
MR_TAG_COMMON(1,1,21),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,24),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,25),
MR_TAG_COMMON(1,1,25)
}
},
{
{
MR_TAG_COMMON(3,2,26),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,27),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,28),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,31),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,30),
MR_TAG_COMMON(1,1,30)
}
},
{
{
MR_TAG_COMMON(3,2,29),
MR_TAG_COMMON(1,1,31)
}
},
{
{
MR_TAG_COMMON(3,2,32),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,33),
MR_TAG_COMMON(1,1,33)
}
},
{
{
MR_TAG_COMMON(3,2,34),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,35),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,37),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,38),
MR_TAG_COMMON(1,1,37)
}
},
{
{
MR_TAG_COMMON(3,2,40),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,41),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,44),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,43),
MR_TAG_COMMON(1,1,41)
}
},
{
{
MR_TAG_COMMON(3,2,45),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,46),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,47),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,49),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,48),
MR_TAG_COMMON(1,1,46)
}
},
{
{
MR_TAG_COMMON(3,2,50),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,51),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,2,52),
MR_tbmkword(0, 0)
}
},
};

static const struct mercury_type_2 mercury_common_2[53] =
{
{
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("The termination pragmas are inconsistent.", 41)
},
{
4,
MR_string_const("It contains a typeclass method call.", 36)
},
{
4,
MR_string_const("between the arguments of this group of procedures.", 50)
},
{
4,
MR_string_const("The analysis was unable to form any constraints", 47)
},
{
4,
MR_string_const("declaration.", 12)
},
{
4,
MR_string_const("foreign language code included via a", 36)
},
{
4,
MR_string_const("It depends on the properties of", 31)
},
{
4,
MR_string_const("by the analysis to be infeasible.", 33)
},
{
4,
MR_string_const("The solver found the constraints produced", 41)
},
{
4,
MR_string_const("for the analysis to process.", 28)
},
{
4,
MR_string_const("There are too many execution paths", 34)
},
{
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("with one or more higher order arguments.", 40)
},
{
4,
MR_string_const("At the recursive call to", 24)
},
{
4,
MR_string_const("the arguments are", 17)
},
{
4,
MR_string_const("not guaranteed to decrease in size.", 35)
},
{
4,
MR_string_const("through the calls to", 20)
},
{
4,
MR_string_const("In the recursive cycle", 22)
},
{
4,
MR_string_const("may make one or more calls back to Mercury.", 43)
},
{
4,
MR_string_const("It contains foreign code that", 29)
},
{
4,
MR_string_const("There is a \140:- pragma does_not_terminate\' declaration for", 57)
},
{
3,
MR_string_const(".", 1)
},
{
4,
MR_string_const("it.", 3)
},
{
4,
MR_string_const("makes one or more higher-order calls.", 37)
},
{
4,
MR_string_const("Each of these higher-order calls has a", 38)
},
{
4,
MR_string_const("termination constant of infinity.", 33)
},
{
4,
MR_string_const("in the size of the input arguments.", 35)
},
{
4,
MR_string_const("with an unbounded increase", 26)
},
{
4,
MR_string_const("which has a termination constant of infinity.", 45)
},
{
4,
MR_string_const("It is a builtin predicate.", 26)
},
{
4,
MR_string_const("The set of output supplier variables of", 39)
},
{
4,
MR_string_const("its output supplier variables", 29)
},
{
4,
MR_string_const("The set of", 10)
},
{
4,
MR_string_const("output supplier variables of", 28)
},
{
4,
MR_string_const("is not a subset of the head variables", 37)
},
{
4,
MR_string_const("Termination constant of", 23)
},
{
4,
MR_string_const("set to infinity for the following", 33)
},
{
4,
MR_string_const("Termination constants", 21)
},
{
4,
MR_string_const("of the mutually recursive procedures", 36)
},
{
4,
MR_string_const("reason:", 7)
},
{
4,
MR_string_const("reasons:", 8)
},
{
4,
MR_string_const("Termination of", 14)
},
{
4,
MR_string_const("Termination of the ", 19)
},
{
4,
MR_string_const("mutually recursive procedures", 29)
},
{
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_3 mercury_common_3[1] =
{
{
MR_string_const("\140:- pragma foreign_proc\'", 24)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_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_errors__description_5_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_4;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_5;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_6;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_7;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_format_component_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_8;
static const struct mercury_type_4 mercury_common_4[8] =
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_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_errors__description_5_0_2,
(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_errors__description_5_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_4,
(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_errors__description_5_0_5,
(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_errors__description_5_0_6,
(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_errors__description_5_0_7,
(MR_Word *) (MR_Integer) 0,
2,
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_8,
(MR_Word *) (MR_Integer) 0,
2,
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
};

static const struct mercury_type_5 mercury_common_5[2] =
{
{
MR_COMMON(4,6),
MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__482__1_2_0),
0
},
{
MR_COMMON(4,7),
MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__486__1_2_0),
0
},
};

static const struct mercury_type_6 mercury_common_6[1] =
{
{
1
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
static const struct mercury_type_7 mercury_common_7[1] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_CTOR0_ADDR(term, context)
}
},
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_0 = {
	"pragma_foreign_code",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	0,
	0,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_1 = {
	"imported_pred",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	1,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};
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_errors__field_types_termination_error_0_2[] = {
	(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_errors__du_functor_desc_termination_error_0_2 = {
	"can_loop_proc_called",
	2,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_2,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_errors__field_types_termination_error_0_3[] = {
	(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_errors__du_functor_desc_termination_error_0_3 = {
	"horder_args",
	2,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	3,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_3,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_4 = {
	"horder_call",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	2,
	4,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_5 = {
	"method_call",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	3,
	5,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_errors__field_types_termination_error_0_6[] = {
	(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_errors__du_functor_desc_termination_error_0_6 = {
	"inf_termination_const",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	0,
	6,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_6,
	NULL,
	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_1hlds__hlds_pred__type_ctor_info_pred_proc_id_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0
}};

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

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_7 = {
	"ho_inf_termination_const",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	1,
	7,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_7,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_bag__type_ctor_info_bag_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0 = {
	&mercury_data_term__type_ctor_info_var_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_bag__ti_bag_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0 = {
	&mercury_data_bag__type_ctor_info_bag_1,
{	(MR_TypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
}};

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

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_8 = {
	"not_subset",
	3,
	0,
	MR_SECTAG_REMOTE,
	3,
	2,
	8,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_8,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_errors__field_types_termination_error_0_9[] = {
	(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_errors__du_functor_desc_termination_error_0_9 = {
	"inf_call",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	3,
	9,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_9,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2hlds__hlds_pred__type_ctor_info_pred_proc_id_0term__type_ctor_info_context_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0,
	(MR_TypeInfo) &mercury_data_term__type_ctor_info_context_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1pair__ti_pair_2hlds__hlds_pred__type_ctor_info_pred_proc_id_0term__type_ctor_info_context_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2hlds__hlds_pred__type_ctor_info_pred_proc_id_0term__type_ctor_info_context_0
}};

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

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_10 = {
	"cycle",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	4,
	10,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_10,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_11 = {
	"no_eqns",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	4,
	11,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_12 = {
	"too_many_paths",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	5,
	12,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_13 = {
	"solver_failed",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	6,
	13,
	(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_errors__field_types_termination_error_0_14[] = {
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_14 = {
	"is_builtin",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	5,
	14,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_14,
	NULL,
	NULL
};

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

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_15 = {
	"does_not_term_pragma",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	6,
	15,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_15,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_16 = {
	"inconsistent_annotations",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	7,
	16,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

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

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_17 = {
	"does_not_term_foreign",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	7,
	17,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_0_17,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_0[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_0,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_1,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_4,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_5,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_11,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_12,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_13,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_16

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_1[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_2

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_2[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_3

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_3[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_6,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_7,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_8,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_9,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_10,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_14,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_15,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_17

};

const MR_DuPtagLayout mercury_data_transform_hlds__term_errors__du_ptag_ordered_termination_error_0[] = {
	{ 8, MR_SECTAG_LOCAL,
	mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_2 },
	{ 8, MR_SECTAG_REMOTE,
	mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_name_ordered_termination_error_0[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_2,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_10,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_17,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_15,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_7,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_3,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_4,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_1,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_16,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_9,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_6,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_14,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_5,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_11,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_8,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_0,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_13,
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_0_12
};

const MR_Integer mercury_data_transform_hlds__term_errors__functor_number_map_termination_error_0[] = {
	15,
	7,
	0,
	5,
	6,
	12,
	10,
	4,
	14,
	9,
	1,
	13,
	17,
	16,
	11,
	3,
	8,
	2 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__term_errors__termination_error_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__term_errors__termination_error_0_0)),
	"transform_hlds.term_errors",
	"termination_error",
	{ (void *)mercury_data_transform_hlds__term_errors__du_name_ordered_termination_error_0 },
	{ (void *)mercury_data_transform_hlds__term_errors__du_ptag_ordered_termination_error_0 },
	18,
	4,
	mercury_data_transform_hlds__term_errors__functor_number_map_termination_error_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_0;

const MR_PseudoTypeInfo mercury_data_transform_hlds__term_errors__field_types_termination_error_context_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_0,
	(MR_PseudoTypeInfo) &mercury_data_term__type_ctor_info_context_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_context_0_0 = {
	"termination_error_context",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__term_errors__field_types_termination_error_context_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_context_0_0[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_context_0_0

};

const MR_DuPtagLayout mercury_data_transform_hlds__term_errors__du_ptag_ordered_termination_error_context_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__term_errors__du_stag_ordered_termination_error_context_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__term_errors__du_name_ordered_termination_error_context_0[] = {
	&mercury_data_transform_hlds__term_errors__du_functor_desc_termination_error_context_0_0
};

const MR_Integer mercury_data_transform_hlds__term_errors__functor_number_map_termination_error_context_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_context_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__term_errors__termination_error_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__term_errors__termination_error_context_0_0)),
	"transform_hlds.term_errors",
	"termination_error_context",
	{ (void *)mercury_data_transform_hlds__term_errors__du_name_ordered_termination_error_context_0 },
	{ (void *)mercury_data_transform_hlds__term_errors__du_ptag_ordered_termination_error_context_0 },
	1,
	4,
	mercury_data_transform_hlds__term_errors__functor_number_map_termination_error_context_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_context_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1transform_hlds__term_errors__type_ctor_info_termination_error_context_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_context_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_contexts_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__term_errors__termination_error_contexts_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__term_errors__termination_error_contexts_0_0)),
	"transform_hlds.term_errors",
	"termination_error_contexts",
	{ 0 },
	{ (void *)&mercury_data_list__ti_list_1transform_hlds__term_errors__type_ctor_info_termination_error_context_0 },
	-1,
	0,
	NULL
};


static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_8 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_486",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
486,
"295"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_7 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_482",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
482,
"283"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_6 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_421",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
421,
"183"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_5 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_359",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
359,
"52"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_4 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_442",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
442,
"219"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_3 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_540",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
540,
"427"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_2 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_403",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
403,
"147"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__term_errors__description_5_0_1 = {
{
MR_PREDICATE,
"transform_hlds.term_errors",
"transform_hlds.term_errors",
"lambda_term_errors_m_378",
2,
0
},
"transform_hlds.term_errors",
"term_errors.m",
378,
"93"
};


MR_decl_entry(varset__lookup_name_3_0);
MR_decl_entry(string__append_3_2);
MR_decl_entry(string__int_to_string_2_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module0)
	MR_init_entry1(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__term_errors_var_bag_description_2_4_0);
	MR_init_label9(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,49,5,7,8,10,11,16,15,18)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'term_errors_var_bag_description_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(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i49);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,0,0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(varset__lookup_name_3_0,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i5);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_LE(MR_sv(3),1)) {
		MR_GOTO_LAB(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i10);
	}
	MR_r2 = (MR_Word) MR_string_const("*", 1);
	MR_np_call_localret_ent(string__append_3_2,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i7);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(string__int_to_string_2_0,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i8);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(string__append_3_2,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i10);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_sv(2),0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i11);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("{", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(string__append_3_2,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i11);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i15);
	}
	MR_r2 = (MR_Word) MR_string_const("}.", 2);
	MR_np_call_localret_ent(string__append_3_2,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i16);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,16)
	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_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,15)
	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(4);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_localcall_lab(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,
		transform_hlds__term_errors__term_errors_var_bag_description_2_4_0_i18);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_2_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_r1 = 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_decl_entry(bag__to_assoc_list_2_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module1)
	MR_init_entry1(transform_hlds__term_errors__term_errors_var_bag_description_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__term_errors_var_bag_description_3_0);
	MR_init_label1(transform_hlds__term_errors__term_errors_var_bag_description_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'term_errors_var_bag_description'/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(transform_hlds__term_errors__term_errors_var_bag_description_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(bag__to_assoc_list_2_0,
		transform_hlds__term_errors__term_errors_var_bag_description_3_0_i3);
MR_def_label(transform_hlds__term_errors__term_errors_var_bag_description_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 1;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(transform_hlds__term_errors__term_errors_var_bag_description_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(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_call_site_3_0);
MR_decl_entry(fn__hlds__hlds_error_util__describe_several_call_sites_3_0);
MR_decl_entry(list__condense_2_0);
MR_decl_entry(fn__hlds__hlds_error_util__describe_one_pred_name_3_0);
MR_decl_entry(list__append_3_1);
MR_decl_entry(hlds__hlds_module__module_info_pred_proc_info_5_0);
MR_decl_entry(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_varset_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
MR_decl_entry(list__map_3_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module2)
	MR_init_entry1(transform_hlds__term_errors__description_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__description_5_0);
	MR_init_label10(transform_hlds__term_errors__description_5_0,3,6,7,10,13,14,15,16,20,19)
	MR_init_label10(transform_hlds__term_errors__description_5_0,23,27,31,32,17,37,36,40,44,48)
	MR_init_label10(transform_hlds__term_errors__description_5_0,49,34,55,52,63,51,69,75,78,74)
	MR_init_label10(transform_hlds__term_errors__description_5_0,80,70,87,86,95,84,108,107,111,115)
	MR_init_label10(transform_hlds__term_errors__description_5_0,117,118,105,124,123,127,131,135,136,137)
	MR_init_label10(transform_hlds__term_errors__description_5_0,120,363,143,142,148,146,150,156,157,158)
	MR_init_label4(transform_hlds__term_errors__description_5_0,160,163,165,170)
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_errors__description_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(transform_hlds__term_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_errors__description_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i6);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,4);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,7)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i7);
	}
	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_errors__description_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i10);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,6);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i13);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,8);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i14);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,12);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,6)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i15);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,14);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,5)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i16);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,16);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i17);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i19);
	}
	{
	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_errors__description_5_0_i20);
MR_def_label(transform_hlds__term_errors__description_5_0,20)
	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,2,15);
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i27);
MR_def_label(transform_hlds__term_errors__description_5_0,19)
	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(4,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__378__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_errors", 26);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.description\'/5", 52);
	MR_r4 = (MR_Word) MR_string_const("can_loop_proc_called: caller outside this SCC", 45);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_errors__description_5_0_i23);
MR_def_label(transform_hlds__term_errors__description_5_0,23)
	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,17);
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,2,15);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i27);
MR_def_label(transform_hlds__term_errors__description_5_0,27)
	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,18);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i31);
MR_def_label(transform_hlds__term_errors__description_5_0,31)
	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_errors__description_5_0_i32);
MR_def_label(transform_hlds__term_errors__description_5_0,32)
	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_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i34);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i36);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(1) = MR_tempr2;
	MR_sv(2) = MR_tfield(2, MR_r1, 1);
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tempr2;
	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_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i37);
MR_def_label(transform_hlds__term_errors__description_5_0,37)
	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,2,15);
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i44);
MR_def_label(transform_hlds__term_errors__description_5_0,36)
	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(4,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__403__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(1, MR_r2, 0);
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_tfield(2, MR_r1, 1);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.description\'/5", 52);
	MR_r4 = (MR_Word) MR_string_const("horder_args: caller outside this SCC", 36);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_errors__description_5_0_i40);
MR_def_label(transform_hlds__term_errors__description_5_0,40)
	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,17);
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,2,15);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i44);
MR_def_label(transform_hlds__term_errors__description_5_0,44)
	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,19);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i48);
MR_def_label(transform_hlds__term_errors__description_5_0,48)
	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_errors__description_5_0_i49);
MR_def_label(transform_hlds__term_errors__description_5_0,49)
	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_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i51);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_r1, 2);
	MR_r4 = MR_tempr1;
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i52);
	}
	MR_tempr2 = MR_tfield(1, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_tempr2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i52);
	}
	MR_r1 = MR_r3;
	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_call_site_3_0,
		transform_hlds__term_errors__description_5_0_i55);
MR_def_label(transform_hlds__term_errors__description_5_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(3,2,19);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,21);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,23);
	MR_r1 = MR_r3;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_r4;
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_several_call_sites_3_0,
		transform_hlds__term_errors__description_5_0_i63);
MR_def_label(transform_hlds__term_errors__description_5_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_TAG_COMMON(1,1,24);
	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_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	}
	MR_np_call_localret_ent(list__condense_2_0,
		transform_hlds__term_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,7)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i69);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,26);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i70);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i74);
	}
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,27);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r3;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_pred_name_3_0,
		transform_hlds__term_errors__description_5_0_i75);
MR_def_label(transform_hlds__term_errors__description_5_0,75)
	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,28);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i78);
MR_def_label(transform_hlds__term_errors__description_5_0,78)
	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(list__append_3_1,
		transform_hlds__term_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,74)
	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(4,2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__540__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(3, MR_r1, 1);
	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,27);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.description\'/5", 52);
	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_errors__description_5_0_i80);
MR_def_label(transform_hlds__term_errors__description_5_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,29);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_np_call_localret_ent(list__append_3_1,
		transform_hlds__term_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i84);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i86);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r3;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i87);
MR_def_label(transform_hlds__term_errors__description_5_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,32);
	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_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,86)
	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(4,3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__442__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(1, MR_r2, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.description\'/5", 52);
	MR_r4 = (MR_Word) MR_string_const("ho_info_termination_const: caller outside this SCC", 50);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_errors__description_5_0_i95);
MR_def_label(transform_hlds__term_errors__description_5_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,1,17);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,32);
	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_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i105);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i107);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(1) = MR_tempr2;
	MR_sv(2) = MR_tfield(3, MR_r1, 2);
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i108);
MR_def_label(transform_hlds__term_errors__description_5_0,108)
	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,2,15);
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i115);
MR_def_label(transform_hlds__term_errors__description_5_0,107)
	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(4,4);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__359__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(1, MR_r2, 0);
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_tfield(3, MR_r1, 2);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.description\'/5", 52);
	MR_r4 = (MR_Word) MR_string_const("inf_call: caller outside this SCC", 33);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_errors__description_5_0_i111);
MR_def_label(transform_hlds__term_errors__description_5_0,111)
	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,17);
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,2,15);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i115);
MR_def_label(transform_hlds__term_errors__description_5_0,115)
	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,34);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i117);
MR_def_label(transform_hlds__term_errors__description_5_0,117)
	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_errors__description_5_0_i118);
MR_def_label(transform_hlds__term_errors__description_5_0,118)
	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_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i120);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(3, MR_r1, 2);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i123);
	}
	MR_tempr3 = MR_r3;
	MR_sv(1) = MR_tempr3;
	MR_sv(3) = MR_tfield(1, MR_tempr1, 0);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr3;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i124);
MR_def_label(transform_hlds__term_errors__description_5_0,124)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(3,2,15);
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i131);
MR_def_label(transform_hlds__term_errors__description_5_0,123)
	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(4,5);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__term_errors__IntroducedFrom__pred__description__421__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(1, MR_r2, 0);
	MR_sv(1) = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_sv(2), 0);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.description\'/5", 52);
	MR_r4 = (MR_Word) MR_string_const("inf_termination_const: caller outside this SCC", 46);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__term_errors__description_5_0_i127);
MR_def_label(transform_hlds__term_errors__description_5_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,17);
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(3,2,15);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i131);
MR_def_label(transform_hlds__term_errors__description_5_0,131)
	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(3);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = 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,35);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i135);
MR_def_label(transform_hlds__term_errors__description_5_0,135)
	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(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__description_5_0_i136);
MR_def_label(transform_hlds__term_errors__description_5_0,136)
	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_errors__description_5_0_i137);
MR_def_label(transform_hlds__term_errors__description_5_0,137)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_decr_sp_and_return(7);
MR_def_label(transform_hlds__term_errors__description_5_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i363);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,36);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__term_errors__description_5_0,363)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i142);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_tfield(3, MR_r1, 1);
	MR_sv(3) = MR_tfield(3, MR_r1, 2);
	MR_sv(4) = MR_tfield(3, MR_r1, 3);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i143);
MR_def_label(transform_hlds__term_errors__description_5_0,143)
	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_Word) MR_TAG_COMMON(3,2,36);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_sv(2);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_proc_info_5_0,
		transform_hlds__term_errors__description_5_0_i156);
MR_def_label(transform_hlds__term_errors__description_5_0,142)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_tfield(3, MR_r1, 3);
	MR_sv(3) = MR_tfield(3, MR_r1, 2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(1, MR_r2, 0);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		transform_hlds__term_errors__description_5_0_i148);
MR_def_label(transform_hlds__term_errors__description_5_0,148)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__term_errors__description_5_0_i146);
	}
	MR_r1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,1,38);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_proc_info_5_0,
		transform_hlds__term_errors__description_5_0_i156);
MR_def_label(transform_hlds__term_errors__description_5_0,146)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_r3 = MR_tempr1;
	MR_tempr2 = MR_sv(2);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__description_5_0_i150);
MR_def_label(transform_hlds__term_errors__description_5_0,150)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(3,2,39);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = (MR_Word) MR_TAG_COMMON(3,2,38);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_r1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	MR_tempr3 = MR_sv(2);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr3, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_proc_info_5_0,
		transform_hlds__term_errors__description_5_0_i156);
MR_def_label(transform_hlds__term_errors__description_5_0,156)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_varset_2_0,
		transform_hlds__term_errors__description_5_0_i157);
MR_def_label(transform_hlds__term_errors__description_5_0,157)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(transform_hlds__term_errors__term_errors_var_bag_description_3_0,
		transform_hlds__term_errors__description_5_0_i158);
MR_def_label(transform_hlds__term_errors__description_5_0,158)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,0);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__map_3_0,
		transform_hlds__term_errors__description_5_0_i160);
MR_def_label(transform_hlds__term_errors__description_5_0,160)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(1,1,39);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__term_errors__term_errors_var_bag_description_3_0,
		transform_hlds__term_errors__description_5_0_i163);
MR_def_label(transform_hlds__term_errors__description_5_0,163)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,5,1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__map_3_0,
		transform_hlds__term_errors__description_5_0_i165);
MR_def_label(transform_hlds__term_errors__description_5_0,165)
	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_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	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_tempr2;
	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_tempr1;
	MR_r1 = MR_sv(6);
	}
	MR_np_call_localret_ent(list__condense_2_0,
		transform_hlds__term_errors__description_5_0_i170);
MR_def_label(transform_hlds__term_errors__description_5_0,170)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(7);
#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(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_decl_entry(parse_tree__error_util__write_error_pieces_6_0);
MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module3)
	MR_init_entry1(transform_hlds__term_errors__report_arg_size_errors_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__report_arg_size_errors_5_0);
	MR_init_label10(transform_hlds__term_errors__report_arg_size_errors_5_0,2,3,9,10,4,17,18,20,28,29)
	MR_init_label5(transform_hlds__term_errors__report_arg_size_errors_5_0,24,34,35,37,22)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'report_arg_size_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_errors__report_arg_size_errors_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (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_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i2);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(transform_hlds__term_util__get_context_from_scc_3_0,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i3);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(1),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__report_arg_size_errors_5_0_i4);
	}
	{
	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_errors__report_arg_size_errors_5_0_i4);
	}
	MR_tempr1 = MR_tempr2;
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(1,1,40);
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i9);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,9)
	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(6);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i10);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_sv(5) = MR_tempr1;
	MR_r2 = (MR_Word) MR_TAG_COMMON(3,2,42);
	MR_GOTO_LAB(transform_hlds__term_errors__report_arg_size_errors_5_0_i20);
	}
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(1,1,42);
	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_errors__report_arg_size_errors_5_0_i17);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,17)
	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_errors__report_arg_size_errors_5_0_i18);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(3,2,42);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(2),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__report_arg_size_errors_5_0_i22);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_sv(2), 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__report_arg_size_errors_5_0_i24);
	}
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_r2;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_TAG_COMMON(1,1,43);
	MR_sv(2) = MR_tfield(1, MR_sv(2), 0);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__append_3_1,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i28);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,28)
	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_errors__report_arg_size_errors_5_0_i29);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,29)
	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(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(transform_hlds__term_errors__output_term_error_7_0);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_TAG_COMMON(1,1,44);
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr2;
	}
	MR_np_call_localret_ent(list__append_3_1,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i34);
MR_def_label(transform_hlds__term_errors__report_arg_size_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_errors__report_arg_size_errors_5_0_i35);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,6,0);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(3);
	}
	MR_np_call_localret_ent(transform_hlds__term_errors__output_term_error_7_0,
		transform_hlds__term_errors__report_arg_size_errors_5_0_i37);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Integer) 2;
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(3);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(transform_hlds__term_errors__output_term_errors_7_0);
MR_def_label(transform_hlds__term_errors__report_arg_size_errors_5_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.report_arg_size_errors\'/5", 63);
	MR_r3 = (MR_Word) MR_string_const("empty list of errors", 20);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	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_BEGIN_MODULE(transform_hlds__term_errors_module4)
	MR_init_entry1(transform_hlds__term_errors__output_term_errors_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__output_term_errors_7_0);
	MR_init_label3(transform_hlds__term_errors__output_term_errors_7_0,11,5,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'output_term_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_errors__output_term_errors_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__term_errors__output_term_errors_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__output_term_errors_7_0_i13);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tempr2 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__term_errors__output_term_error_7_0,
		transform_hlds__term_errors__output_term_errors_7_0_i5);
MR_def_label(transform_hlds__term_errors__output_term_errors_7_0,5)
	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(6);
	MR_GOTO_LAB(transform_hlds__term_errors__output_term_errors_7_0_i11);
MR_def_label(transform_hlds__term_errors__output_term_errors_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(string__append_list_2_0);
MR_decl_entry(transform_hlds__term_util__lookup_proc_arg_size_info_3_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module5)
	MR_init_entry1(transform_hlds__term_errors__output_term_error_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__output_term_error_7_0);
	MR_init_label10(transform_hlds__term_errors__output_term_error_7_0,2,4,5,9,3,12,13,16,17,14)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'output_term_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_errors__output_term_error_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__term_errors__description_5_0,
		transform_hlds__term_errors__output_term_error_7_0_i2);
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__output_term_error_7_0_i4);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_sv(5) = MR_r2;
	MR_GOTO_LAB(transform_hlds__term_errors__output_term_error_7_0_i3);
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(string__int_to_string_2_0,
		transform_hlds__term_errors__output_term_error_7_0_i5);
MR_def_label(transform_hlds__term_errors__output_term_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,0,1);
	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_errors__output_term_error_7_0_i9);
MR_def_label(transform_hlds__term_errors__output_term_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(1);
	MR_r1 = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	}
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,3)
	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_errors__output_term_error_7_0_i12);
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_6_0,
		transform_hlds__term_errors__output_term_error_7_0_i13);
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(5),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__output_term_error_7_0_i14);
	}
	MR_sv(1) = MR_tfield(1, MR_sv(5), 0);
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(transform_hlds__term_util__lookup_proc_arg_size_info_3_0,
		transform_hlds__term_errors__output_term_error_7_0_i16);
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__output_term_error_7_0_i17);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(transform_hlds__term_errors__output_term_error_7_0_i17);
	}
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_sv(3);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(transform_hlds__term_errors__report_arg_size_errors_5_0);
	}
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.term_errors", 26);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.term_errors.output_term_error\'/7", 58);
	MR_r3 = (MR_Word) MR_string_const("inf arg size procedure does not have inf arg size", 49);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__term_errors__output_term_error_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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_BEGIN_MODULE(transform_hlds__term_errors_module6)
	MR_init_entry1(transform_hlds__term_errors__report_term_errors_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__report_term_errors_5_0);
	MR_init_label10(transform_hlds__term_errors__report_term_errors_5_0,2,3,9,10,4,16,17,18,23,20)
	MR_init_label6(transform_hlds__term_errors__report_term_errors_5_0,29,30,26,34,35,37)
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_define_entry(mercury__transform_hlds__term_errors__report_term_errors_5_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (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_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__term_errors__report_term_errors_5_0_i2);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(transform_hlds__term_util__get_context_from_scc_3_0,
		transform_hlds__term_errors__report_term_errors_5_0_i3);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(1),0,0)) {
		MR_GOTO_LAB(transform_hlds__term_errors__report_term_errors_5_0_i4);
	}
	{
	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_errors__report_term_errors_5_0_i4);
	}
	MR_tempr1 = MR_tempr2;
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(1,1,45);
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__term_errors__report_term_errors_5_0_i9);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,9)
	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(6);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__term_errors__report_term_errors_5_0_i10);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_r2 = MR_r1;
	MR_sv(5) = MR_tempr1;
	MR_GOTO_LAB(transform_hlds__term_errors__report_term_errors_5_0_i18);
	}
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(1,1,47);
	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_errors__report_term_errors_5_0_i16);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,16)
	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_errors__report_term_errors_5_0_i17);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(transform_hlds__term_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_errors__report_term_errors_5_0_i20);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,48);
	MR_np_call_localret_ent(list__append_3_1,
		transform_hlds__term_errors__report_term_errors_5_0_i23);
MR_def_label(transform_hlds__term_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(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(parse_tree__error_util__write_error_pieces_6_0);
	}
MR_def_label(transform_hlds__term_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_errors__report_term_errors_5_0_i26);
	}
	MR_sv(2) = MR_tfield(1, MR_sv(2), 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,49);
	}
	MR_np_call_localret_ent(list__append_3_1,
		transform_hlds__term_errors__report_term_errors_5_0_i29);
MR_def_label(transform_hlds__term_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_errors__report_term_errors_5_0_i30);
MR_def_label(transform_hlds__term_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(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(transform_hlds__term_errors__output_term_error_7_0);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,1,50);
	MR_np_call_localret_ent(list__append_3_1,
		transform_hlds__term_errors__report_term_errors_5_0_i34);
MR_def_label(transform_hlds__term_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_errors__report_term_errors_5_0_i35);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,6,0);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(3);
	}
	MR_np_call_localret_ent(transform_hlds__term_errors__output_term_error_7_0,
		transform_hlds__term_errors__report_term_errors_5_0_i37);
MR_def_label(transform_hlds__term_errors__report_term_errors_5_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Integer) 2;
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(3);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(transform_hlds__term_errors__output_term_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_BEGIN_MODULE(transform_hlds__term_errors_module7)
	MR_init_entry1(fn__transform_hlds__term_errors__is_indirect_error_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__term_errors__is_indirect_error_1_0);
	MR_init_label10(fn__transform_hlds__term_errors__is_indirect_error_1_0,3,4,5,6,7,8,9,10,11,12)
	MR_init_label3(fn__transform_hlds__term_errors__is_indirect_error_1_0,13,93,14)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'is_indirect_error'/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__transform_hlds__term_errors__is_indirect_error_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i3);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i4);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,7)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i5);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i6);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i8);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,6)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i9);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,5)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i10);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i11);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i12);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i13);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,7)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i14);
	}
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_indirect_error_1_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_indirect_error_1_0_i93);
	}
	MR_r1 = (MR_Integer) 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(transform_hlds__term_errors_module8)
	MR_init_entry1(fn__transform_hlds__term_errors__is_fatal_error_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__term_errors__is_fatal_error_1_0);
	MR_init_label10(fn__transform_hlds__term_errors__is_fatal_error_1_0,3,4,5,6,7,8,9,10,11,12)
	MR_init_label3(fn__transform_hlds__term_errors__is_fatal_error_1_0,13,14,94)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'is_fatal_error'/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__transform_hlds__term_errors__is_fatal_error_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i3);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i4);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,7)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i5);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i6);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i8);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,6)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i9);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,5)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i10);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i11);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i12);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i13);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,7)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i14);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(fn__transform_hlds__term_errors__is_fatal_error_1_0_i94);
	}
MR_def_label(fn__transform_hlds__term_errors__is_fatal_error_1_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	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___list__list_1_0);
MR_decl_entry(__Unify___bag__bag_1_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module9)
	MR_init_entry1(__Unify___transform_hlds__term_errors__termination_error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__term_errors__termination_error_0_0);
	MR_init_label10(__Unify___transform_hlds__term_errors__termination_error_0_0,5,6,7,8,9,10,11,12,15,13)
	MR_init_label10(__Unify___transform_hlds__term_errors__termination_error_0_0,21,19,27,25,32,36,40,38,46,44)
	MR_init_label7(__Unify___transform_hlds__term_errors__termination_error_0_0,52,50,116,56,59,62,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_errors__termination_error_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i116);
	}
	MR_incr_sp(5);
	MR_sv(5) = (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,2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(5);
	MR_proceed();
	}
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,7)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i7);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,3)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,4)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i9);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i10);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,6)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i11);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,5)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i12);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i13);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_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_errors__termination_error_0_0_i15);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i19);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(2, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(2, MR_tempr2, 1);
	MR_r1 = MR_tfield(2, MR_tempr1, 0);
	MR_r2 = MR_tfield(2, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i21);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i25);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i27);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,7,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,7)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i32);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,6)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i36);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_sv(1), 1);
	MR_tempr2 = MR_tfield(3, MR_sv(2), 1);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(5);
	}
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i38);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i40);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,3)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i44);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i46);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i50);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i52);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,5)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i56);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_sv(1), 1);
	MR_tempr2 = MR_tfield(3, MR_sv(2), 1);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(5);
	}
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_proc_id_0_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i59);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(__Unify___bag__bag_1_0,
		__Unify___transform_hlds__term_errors__termination_error_0_0_i62);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___bag__bag_1_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	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(transform_hlds__term_errors_module10)
	MR_init_entry1(__Index___transform_hlds__term_errors__termination_error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Index___transform_hlds__term_errors__termination_error_0_0);
	MR_init_label10(__Index___transform_hlds__term_errors__termination_error_0_0,3,4,5,6,7,8,9,10,11,12)
	MR_init_label7(__Index___transform_hlds__term_errors__termination_error_0_0,13,14,15,16,17,18,19)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Index__'/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____Index___transform_hlds__term_errors__termination_error_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i3);
	}
	MR_r1 = (MR_Integer) 4;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i4);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,7)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i5);
	}
	MR_r1 = (MR_Integer) 16;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i6);
	}
	MR_r1 = (MR_Integer) 5;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i7);
	}
	MR_r1 = (MR_Integer) 11;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,6)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i9);
	}
	MR_r1 = (MR_Integer) 13;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,5)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i10);
	}
	MR_r1 = (MR_Integer) 12;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i11);
	}
	MR_r1 = (MR_Integer) 2;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i12);
	}
	MR_r1 = (MR_Integer) 3;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i13);
	}
	MR_r1 = (MR_Integer) 10;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,7)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i14);
	}
	MR_r1 = (MR_Integer) 17;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i15);
	}
	MR_r1 = (MR_Integer) 15;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i16);
	}
	MR_r1 = (MR_Integer) 7;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i17);
	}
	MR_r1 = (MR_Integer) 9;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i18);
	}
	MR_r1 = (MR_Integer) 6;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(__Index___transform_hlds__term_errors__termination_error_0_0_i19);
	}
	MR_r1 = (MR_Integer) 14;
	MR_proceed();
MR_def_label(__Index___transform_hlds__term_errors__termination_error_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 8;
	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(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_decl_entry(__Compare___list__list_1_0);
MR_decl_entry(private_builtin__builtin_compare_int_3_0);
MR_decl_entry(__Compare___bag__bag_1_0);
MR_decl_entry(private_builtin__compare_error_0_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module11)
	MR_init_entry1(__Compare___transform_hlds__term_errors__termination_error_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__term_errors__termination_error_0_0);
	MR_init_label10(__Compare___transform_hlds__term_errors__termination_error_0_0,4,5,6,7,10,11,12,13,14,15)
	MR_init_label10(__Compare___transform_hlds__term_errors__termination_error_0_0,16,143,17,21,18,29,26,37,34,43)
	MR_init_label10(__Compare___transform_hlds__term_errors__termination_error_0_0,46,52,49,60,57,68,65,73,78,83)
	MR_init_label2(__Compare___transform_hlds__term_errors__termination_error_0_0,8,94)
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_errors__termination_error_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i143);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(__Index___transform_hlds__term_errors__termination_error_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i4);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(__Index___transform_hlds__term_errors__termination_error_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) MR_sv(3) >= (MR_Integer) MR_r1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i6);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) MR_sv(3) <= (MR_Integer) MR_r1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i7);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i10);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i11);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,7)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i12);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,3)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i13);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,4)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i14);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i15);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,6)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i16);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,5)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i17);
	}
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,143)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i18);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(1, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	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_errors__termination_error_0_0_i21);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i26);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(2, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(2, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(2, MR_tempr3, 0);
	MR_r2 = MR_tfield(2, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i29);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i34);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i37);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,7,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,7)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i43);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,6)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i46);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i49);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i52);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,3)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i57);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i60);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i65);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i68);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,5)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i73);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(3, MR_tempr5, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr6, 3);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_proc_id_0_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i78);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___bag__bag_1_0,
		__Compare___transform_hlds__term_errors__termination_error_0_0_i83);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_0_0_i94);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___bag__bag_1_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(private_builtin__compare_error_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_0_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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_decl_entry(__Unify___term__context_0_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module12)
	MR_init_entry1(__Unify___transform_hlds__term_errors__termination_error_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__term_errors__termination_error_context_0_0);
	MR_init_label3(__Unify___transform_hlds__term_errors__termination_error_context_0_0,4,8,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_errors__termination_error_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_context_0_0_i8);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___transform_hlds__term_errors__termination_error_0_0,
		__Unify___transform_hlds__term_errors__termination_error_context_0_0_i4);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_context_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__term_errors__termination_error_context_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___term__context_0_0);
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_context_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__term_errors__termination_error_context_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___term__context_0_0);

MR_BEGIN_MODULE(transform_hlds__term_errors_module13)
	MR_init_entry1(__Compare___transform_hlds__term_errors__termination_error_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__term_errors__termination_error_context_0_0);
	MR_init_label4(__Compare___transform_hlds__term_errors__termination_error_context_0_0,3,2,5,21)
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_errors__termination_error_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_context_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___transform_hlds__term_errors__termination_error_context_0_0_i2);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_context_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_context_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___transform_hlds__term_errors__termination_error_0_0,
		__Compare___transform_hlds__term_errors__termination_error_context_0_0_i5);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__term_errors__termination_error_context_0_0_i21);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___term__context_0_0);
MR_def_label(__Compare___transform_hlds__term_errors__termination_error_context_0_0,21)
	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_BEGIN_MODULE(transform_hlds__term_errors_module14)
	MR_init_entry1(__Unify___transform_hlds__term_errors__termination_error_contexts_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__term_errors__termination_error_contexts_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_errors__termination_error_contexts_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(transform_hlds__term_errors, termination_error_context);
	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(transform_hlds__term_errors_module15)
	MR_init_entry1(__Compare___transform_hlds__term_errors__termination_error_contexts_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__term_errors__termination_error_contexts_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_errors__termination_error_contexts_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(transform_hlds__term_errors, termination_error_context);
	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(transform_hlds__term_errors_module16)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__378__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__378__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__378__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_errors__IntroducedFrom__pred__description__378__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_errors_module17)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__540__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__540__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__540__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_errors__IntroducedFrom__pred__description__540__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(transform_hlds__term_errors_module18)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__442__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__442__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__442__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_errors__IntroducedFrom__pred__description__442__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_errors_module19)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__403__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__403__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__403__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_errors__IntroducedFrom__pred__description__403__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_errors_module20)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__359__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__359__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__359__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_errors__IntroducedFrom__pred__description__359__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_errors_module21)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__421__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__421__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__421__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_errors__IntroducedFrom__pred__description__421__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_errors_module22)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__482__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__482__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__482__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_errors__IntroducedFrom__pred__description__482__1_2_0)
	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_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(transform_hlds__term_errors_module23)
	MR_init_entry1(transform_hlds__term_errors__IntroducedFrom__pred__description__486__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__term_errors__IntroducedFrom__pred__description__486__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__description__486__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_errors__IntroducedFrom__pred__description__486__1_2_0)
	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_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_errors_maybe_bunch_0(void)
{
	transform_hlds__term_errors_module0();
	transform_hlds__term_errors_module1();
	transform_hlds__term_errors_module2();
	transform_hlds__term_errors_module3();
	transform_hlds__term_errors_module4();
	transform_hlds__term_errors_module5();
	transform_hlds__term_errors_module6();
	transform_hlds__term_errors_module7();
	transform_hlds__term_errors_module8();
	transform_hlds__term_errors_module9();
	transform_hlds__term_errors_module10();
	transform_hlds__term_errors_module11();
	transform_hlds__term_errors_module12();
	transform_hlds__term_errors_module13();
	transform_hlds__term_errors_module14();
	transform_hlds__term_errors_module15();
	transform_hlds__term_errors_module16();
	transform_hlds__term_errors_module17();
	transform_hlds__term_errors_module18();
	transform_hlds__term_errors_module19();
	transform_hlds__term_errors_module20();
	transform_hlds__term_errors_module21();
	transform_hlds__term_errors_module22();
	transform_hlds__term_errors_module23();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__transform_hlds__term_errors__init(void);
void mercury__transform_hlds__term_errors__init_type_tables(void);
void mercury__transform_hlds__term_errors__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__transform_hlds__term_errors__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__transform_hlds__term_errors__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__transform_hlds__term_errors__init_threadscope_string_table(void);
#endif

void mercury__transform_hlds__term_errors__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__transform_hlds__term_errors_maybe_bunch_0();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_0,
		transform_hlds__term_errors__termination_error_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_context_0,
		transform_hlds__term_errors__termination_error_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_contexts_0,
		transform_hlds__term_errors__termination_error_contexts_0_0);
	mercury__transform_hlds__term_errors__init_debugger();
}

void mercury__transform_hlds__term_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_errors__type_ctor_info_termination_error_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__term_errors__type_ctor_info_termination_error_contexts_0);
	}
}


void mercury__transform_hlds__term_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_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_errors);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__transform_hlds__term_errors__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__transform_hlds__term_errors__init_threadscope_string_table(void)
{
}

#endif

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