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

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

#line 28 "parse_tree.module_qual.c"
#line 150 "../library/io.int2"
#include "time.mh"

#line 32 "parse_tree.module_qual.c"
#line 151 "../library/io.int2"
#include "string.mh"

#line 36 "parse_tree.module_qual.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 40 "parse_tree.module_qual.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 44 "parse_tree.module_qual.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 48 "parse_tree.module_qual.c"
#line 49 "parse_tree.module_qual.c"
#include "parse_tree.module_qual.mh"

#line 52 "parse_tree.module_qual.c"
#line 53 "parse_tree.module_qual.c"
#ifndef PARSE_TREE__MODULE_QUAL_DECL_GUARD
#define PARSE_TREE__MODULE_QUAL_DECL_GUARD

#line 57 "parse_tree.module_qual.c"
#line 58 "parse_tree.module_qual.c"

#endif
#line 61 "parse_tree.module_qual.c"

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

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

struct mercury_type_1 {
	MR_Word * f1;
	MR_Code * f2;
	MR_Integer f3;
};
MR_STATIC_LINKAGE const struct mercury_type_1 mercury_common_1[];

struct mercury_type_2 {
	MR_Integer f1;
};
MR_STATIC_LINKAGE const struct mercury_type_2 mercury_common_2[];

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

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

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

struct mercury_type_6 {
	MR_Integer f1;
	MR_String f2;
};
MR_STATIC_LINKAGE const struct mercury_type_6 mercury_common_6[];

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

struct mercury_type_8 {
	MR_String f1;
};
MR_STATIC_LINKAGE const struct mercury_type_8 mercury_common_8[];

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

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

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

struct mercury_type_12 {
	MR_Word * f1;
	MR_Integer f2;
};
MR_STATIC_LINKAGE const struct mercury_type_12 mercury_common_12[];

extern const MR_TypeCtorInfo_Struct
	mercury_data_parse_tree__module_qual__type_ctor_info_class_id_set_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_error_context_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_id_set_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_id_type_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_inst_id_set_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_mode_id_set_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_module_id_set_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_mq_error_context_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_mq_import_status_0;

extern const MR_TypeCtorInfo_Struct
	mercury_data_parse_tree__module_qual__type_ctor_info_mq_info_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_partial_qualifier_info_0,
	mercury_data_parse_tree__module_qual__type_ctor_info_type_id_set_0;
MR_decl_label2(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0, 1,2)
MR_decl_label3(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0, 6,4,3)
MR_decl_label3(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0, 2,11,12)
MR_decl_label2(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0, 14,4)
MR_decl_label10(parse_tree__module_qual__add_imports_3_0, 4,5,3,8,2,10,13,14,16,18)
MR_decl_label3(parse_tree__module_qual__add_imports_3_0, 22,23,25)
MR_decl_label1(parse_tree__module_qual__add_module_defn_3_0, 3)
MR_decl_label4(parse_tree__module_qual__collect_mq_info_3_0, 20,3,4,7)
MR_decl_label10(parse_tree__module_qual__collect_mq_info_item_3_0, 3,5,6,8,9,10,13,14,12,17)
MR_decl_label10(parse_tree__module_qual__collect_mq_info_item_3_0, 18,19,21,11,27,28,30,31,24,34)
MR_decl_label10(parse_tree__module_qual__collect_mq_info_item_3_0, 37,38,36,41,42,43,45,35,48,49)
MR_decl_label10(parse_tree__module_qual__collect_mq_info_item_3_0, 50,252,53,56,55,52,62,63,61,66)
MR_decl_label10(parse_tree__module_qual__collect_mq_info_item_3_0, 67,68,69,71,72,73,60,77,78,109)
MR_decl_label5(parse_tree__module_qual__collect_mq_info_item_3_0, 76,81,82,83,85)
MR_decl_label1(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0, 3)
MR_decl_label2(parse_tree__module_qual__do_module_qualify_event_attr_9_0, 6,7)
MR_decl_label3(parse_tree__module_qual__do_module_qualify_event_specs_7_0, 21,6,9)
MR_decl_label4(parse_tree__module_qual__do_module_qualify_items_6_0, 27,4,6,8)
MR_decl_label2(parse_tree__module_qual__do_module_qualify_mutable_6_0, 5,6)
MR_decl_label10(parse_tree__module_qual__find_unique_match_8_0, 2,4,6,8,3,9,13,14,11,19)
MR_decl_label10(parse_tree__module_qual__find_unique_match_8_0, 22,24,27,30,35,18,37,38,39,40)
MR_decl_label1(parse_tree__module_qual__find_unique_match_8_0, 36)
MR_decl_label1(parse_tree__module_qual__get_partial_qualifiers_3_0, 3)
MR_decl_label8(parse_tree__module_qual__get_partial_qualifiers_2_5_0, 37,3,8,10,2,13,15,16)
MR_decl_label9(parse_tree__module_qual__id_set_insert_4_0, 9,4,11,12,13,16,15,22,3)
MR_decl_label8(parse_tree__module_qual__id_set_search_sym_arity_5_0, 2,8,11,13,14,16,18,3)
MR_decl_label3(parse_tree__module_qual__id_type_to_string_2_0, 3,4,5)
MR_decl_label10(parse_tree__module_qual__init_mq_info_5_0, 2,7,8,9,10,11,12,14,18,19)
MR_decl_label2(parse_tree__module_qual__init_mq_info_5_0, 21,23)
MR_decl_label1(parse_tree__module_qual__maybe_process_assert_3_0, 3)
MR_decl_label9(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0, 53,4,6,11,19,20,24,32,33)
MR_decl_label10(parse_tree__module_qual__module_qualify_item_7_0, 4,3,7,11,12,5,16,20,22,23)
MR_decl_label10(parse_tree__module_qual__module_qualify_item_7_0, 25,21,27,28,29,30,15,34,38,39)
MR_decl_label10(parse_tree__module_qual__module_qualify_item_7_0, 42,33,47,51,52,45,56,55,60,61)
MR_decl_label10(parse_tree__module_qual__module_qualify_item_7_0, 58,65,69,70,71,74,76,64,81,85)
MR_decl_label8(parse_tree__module_qual__module_qualify_item_7_0, 86,79,91,95,96,98,101,89)
MR_decl_label10(parse_tree__module_qual__module_qualify_items_13_0, 2,5,6,7,8,4,9,10,11,12)
MR_decl_label8(parse_tree__module_qual__module_qualify_items_13_0, 13,14,16,17,18,19,20,21)
MR_decl_label3(parse_tree__module_qual__mq_info_set_error_flag_3_0, 3,5,7)
MR_decl_label5(parse_tree__module_qual__mq_info_set_module_used_3_0, 24,3,5,8,2)
MR_decl_label10(parse_tree__module_qual__process_assert_3_0, 295,3,8,9,14,16,19,20,21,18)
MR_decl_label10(parse_tree__module_qual__process_assert_3_0, 29,31,23,35,40,49,51,45,55,56)
MR_decl_label10(parse_tree__module_qual__process_assert_3_0, 57,58,59,60,54,63,64,65,62,67)
MR_decl_label10(parse_tree__module_qual__process_assert_3_0, 69,71,73,75,77,79,81,83,85,88)
MR_decl_label10(parse_tree__module_qual__process_assert_3_0, 89,90,93,95,100,105,110,87,111,112)
MR_decl_label4(parse_tree__module_qual__process_assert_3_0, 114,116,118,113)
MR_decl_label7(parse_tree__module_qual__process_assert_catch_3_0, 2,5,8,4,12,13,3)
MR_decl_label5(parse_tree__module_qual__process_assert_list_3_0, 18,4,5,6,7)
MR_decl_label10(parse_tree__module_qual__process_module_defn_3_0, 3,6,7,8,10,14,12,16,19,21)
MR_decl_label5(parse_tree__module_qual__process_module_defn_3_0, 25,27,31,29,33)
MR_decl_label10(parse_tree__module_qual__qualify_bound_inst_list_6_0, 94,5,8,6,9,10,11,12,13,14)
MR_decl_label3(parse_tree__module_qual__qualify_bound_inst_list_6_0, 15,21,23)
MR_decl_label3(parse_tree__module_qual__qualify_class_interface_6_0, 17,4,5)
MR_decl_label7(parse_tree__module_qual__qualify_class_method_6_0, 4,5,8,10,3,12,15)
MR_decl_label6(parse_tree__module_qual__qualify_constraint_stores_6_0, 33,9,10,4,14,15)
MR_decl_label3(parse_tree__module_qual__qualify_constructor_arg_list_6_0, 18,4,6)
MR_decl_label4(parse_tree__module_qual__qualify_constructors_6_0, 19,4,5,6)
MR_decl_label2(parse_tree__module_qual__qualify_ho_inst_info_6_0, 17,4)
MR_decl_label10(parse_tree__module_qual__qualify_inst_6_0, 4,3,7,6,10,9,13,12,16,15)
MR_decl_label5(parse_tree__module_qual__qualify_inst_6_0, 18,20,19,23,98)
MR_decl_label2(parse_tree__module_qual__qualify_inst_defn_6_0, 16,4)
MR_decl_label3(parse_tree__module_qual__qualify_inst_list_6_0, 17,4,5)
MR_decl_label10(parse_tree__module_qual__qualify_inst_name_6_0, 4,8,9,5,12,13,15,3,18,20)
MR_decl_label1(parse_tree__module_qual__qualify_inst_name_6_0, 22)
MR_decl_label4(parse_tree__module_qual__qualify_instance_body_3_0, 3,7,9,5)
MR_decl_label2(parse_tree__module_qual__qualify_maybe_type_6_0, 16,4)
MR_decl_label6(parse_tree__module_qual__qualify_mode_6_0, 4,5,3,7,8,10)
MR_decl_label6(parse_tree__module_qual__qualify_mode_defn_6_0, 4,5,3,7,8,10)
MR_decl_label3(parse_tree__module_qual__qualify_mode_list_6_0, 17,4,5)
MR_decl_label10(parse_tree__module_qual__qualify_pragma_6_0, 4,5,6,7,3,11,9,14,13,18)
MR_decl_label10(parse_tree__module_qual__qualify_pragma_6_0, 16,21,20,24,23,137,30,26,34,33)
MR_decl_label6(parse_tree__module_qual__qualify_pragma_6_0, 37,36,41,42,44,141)
MR_decl_label8(parse_tree__module_qual__qualify_pragma_vars_6_0, 34,6,7,5,10,11,13,16)
MR_decl_label5(parse_tree__module_qual__qualify_prog_constraint_list_6_0, 21,4,6,7,9)
MR_decl_label2(parse_tree__module_qual__qualify_prog_constraints_6_0, 2,3)
MR_decl_label10(parse_tree__module_qual__qualify_type_6_0, 6,9,13,3,15,17,18,19,14,23)
MR_decl_label8(parse_tree__module_qual__qualify_type_6_0, 22,26,27,25,30,29,32,96)
MR_decl_label9(parse_tree__module_qual__qualify_type_and_mode_6_0, 4,7,8,6,11,12,14,3,17)
MR_decl_label3(parse_tree__module_qual__qualify_type_ctor_6_0, 2,11,13)
MR_decl_label9(parse_tree__module_qual__qualify_type_defn_6_0, 5,4,8,7,11,12,13,14,34)
MR_decl_label3(parse_tree__module_qual__qualify_type_list_6_0, 17,4,5)
MR_decl_label3(parse_tree__module_qual__qualify_type_spec_subst_6_0, 18,4,6)
MR_decl_label3(parse_tree__module_qual__qualify_types_and_modes_6_0, 17,4,5)
MR_decl_label2(parse_tree__module_qual__qualify_user_sharing_6_0, 6,19)
MR_decl_label10(parse_tree__module_qual__report_ambiguous_match_6_0, 3,5,7,2,10,13,28,29,30,31)
MR_decl_label10(parse_tree__module_qual__report_undefined_6_0, 2,3,6,10,20,21,25,27,30,22)
MR_decl_label8(parse_tree__module_qual__report_undefined_6_0, 23,39,41,44,49,54,55,57)
MR_decl_label4(parse_tree__module_qual__term_qualified_symbols_2_0, 3,6,2,1)
MR_decl_label7(parse_tree__module_qual__term_qualified_symbols_list_2_0, 50,5,8,4,12,14,1)
MR_decl_label10(parse_tree__module_qual__update_import_status_4_0, 3,5,7,9,10,12,13,14,15,16)
MR_decl_label4(parse_tree__module_qual__update_import_status_4_0, 45,17,19,20)
MR_decl_label2(fn__parse_tree__module_qual__get_first_module_name_1_0, 4,2)
MR_decl_label10(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0, 3,6,9,12,17,15,22,20,27,25)
MR_decl_label10(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0, 30,41,39,46,44,49,59,61,58,190)
MR_decl_label2(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0, 75,77)
MR_decl_label10(__Unify___parse_tree__module_qual__mq_error_context_0_0, 5,6,7,8,9,13,17,21,23,27)
MR_decl_label5(__Unify___parse_tree__module_qual__mq_error_context_0_0, 31,77,33,38,1)
MR_decl_label3(__Unify___parse_tree__module_qual__mq_id_0_0, 4,6,1)
MR_decl_label5(__Unify___parse_tree__module_qual__mq_import_status_0_0, 5,6,16,7,1)
MR_decl_label1(__Unify___parse_tree__module_qual__mq_import_status_0_1, 1)
MR_decl_label10(__Unify___parse_tree__module_qual__mq_info_0_0, 5,7,11,13,15,17,19,21,23,25)
MR_decl_label5(__Unify___parse_tree__module_qual__mq_info_0_0, 27,29,31,35,1)
MR_decl_label1(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0, 9)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 7,8,9,10,11,12,13,14,15,16)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 17,5,21,22,23,24,25,26,27,28)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 29,30,31,19,35,36,37,38,39,40)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 41,42,43,44,45,33,49,50,51,427)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 52,53,54,55,56,57,58,59,47,63)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 64,65,66,67,69,70,71,72,73,74)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 61,78,79,80,81,82,83,85,86,87)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 88,89,76,93,94,95,96,97,98,99)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 101,102,103,104,91,108,109,110,111,112)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 113,114,117,115,122,123,124,106,128,129)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 130,131,132,133,134,135,136,138,139,126)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 143,144,145,146,147,148,149,150,151,152)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 154,141,158,159,160,161,162,163,164,165)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 166,167,168,156,173,174,175,176,177,178)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 179,180,181,182,183,186,171,192,193,194)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0, 195,196,197,198,199,200,201,380,202,381)
MR_decl_label3(__Compare___parse_tree__module_qual__mq_error_context_0_0, 203,205,210)
MR_decl_label4(__Compare___parse_tree__module_qual__mq_id_0_0, 3,2,5,21)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_import_status_0_0, 7,8,5,12,13,10,17,18,54,15)
MR_decl_label5(__Compare___parse_tree__module_qual__mq_import_status_0_0, 39,21,22,41,23)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_info_0_0, 3,2,5,9,16,23,30,37,44,51)
MR_decl_label10(__Compare___parse_tree__module_qual__mq_info_0_0, 55,59,63,67,71,75,79,83,87,91)
MR_decl_label2(__Compare___parse_tree__module_qual__mq_info_0_0, 95,243)
MR_decl_label2(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0, 3,2)
MR_def_extern_entry(parse_tree__module_qual__mq_info_get_type_error_flag_2_0)
MR_def_extern_entry(parse_tree__module_qual__mq_info_get_mode_error_flag_2_0)
MR_def_extern_entry(parse_tree__module_qual__mq_info_get_need_qual_flag_2_0)
MR_def_extern_entry(parse_tree__module_qual__mq_info_set_need_qual_flag_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_imported_modules_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_interface_visible_modules_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_unused_interface_modules_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_import_status_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_interface_visible_modules_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0)
MR_decl_static(parse_tree__module_qual__add_imports_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_import_status_3_0)
MR_decl_static(parse_tree__module_qual__process_module_defn_3_0)
MR_decl_static(parse_tree__module_qual__id_set_insert_4_0)
MR_decl_static(parse_tree__module_qual__add_module_defn_3_0)
MR_decl_static(parse_tree__module_qual__term_qualified_symbols_2_0)
MR_decl_static(parse_tree__module_qual__term_qualified_symbols_list_2_0)
MR_decl_static(parse_tree__module_qual__process_assert_3_0)
MR_decl_static(parse_tree__module_qual__maybe_process_assert_3_0)
MR_decl_static(parse_tree__module_qual__process_assert_list_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_types_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_impl_types_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_insts_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_modes_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_classes_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_imported_instance_modules_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_types_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_impl_types_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_insts_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_modes_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_classes_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_imported_instance_modules_3_0)
MR_decl_static(parse_tree__module_qual__collect_mq_info_item_3_0)
MR_decl_static(parse_tree__module_qual__collect_mq_info_3_0)
MR_def_extern_entry(parse_tree__module_qual__mq_info_get_recompilation_info_2_0)
MR_def_extern_entry(parse_tree__module_qual__mq_info_set_recompilation_info_3_0)
MR_decl_static(fn__parse_tree__module_qual__id_to_sym_name_and_arity_1_0)
MR_decl_static(fn__parse_tree__module_qual__wrap_id_1_0)
MR_decl_static(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0)
MR_decl_static(parse_tree__module_qual__id_type_to_string_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_error_context_2_0)
MR_decl_static(parse_tree__module_qual__report_undefined_6_0)
MR_decl_static(parse_tree__module_qual__report_ambiguous_match_6_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_report_error_flag_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_type_error_flag_2_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_error_flag_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_module_used_3_0)
MR_decl_static(parse_tree__module_qual__id_set_search_sym_arity_5_0)
MR_decl_static(parse_tree__module_qual__find_unique_match_8_0)
MR_decl_static(parse_tree__module_qual__qualify_mode_list_6_0)
MR_decl_static(parse_tree__module_qual__qualify_mode_6_0)
MR_decl_static(parse_tree__module_qual__qualify_inst_list_6_0)
MR_decl_static(parse_tree__module_qual__qualify_inst_6_0)
MR_decl_static(parse_tree__module_qual__qualify_ho_inst_info_6_0)
MR_decl_static(parse_tree__module_qual__qualify_inst_name_6_0)
MR_decl_static(parse_tree__module_qual__qualify_bound_inst_list_6_0)
MR_decl_static(parse_tree__module_qual__qualify_type_list_6_0)
MR_decl_static(parse_tree__module_qual__qualify_maybe_type_6_0)
MR_decl_static(parse_tree__module_qual__qualify_type_6_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_error_context_3_0)
MR_decl_static(parse_tree__module_qual__do_module_qualify_mutable_6_0)
MR_decl_static(parse_tree__module_qual__update_import_status_4_0)
MR_decl_static(parse_tree__module_qual__qualify_constraint_stores_6_0)
MR_decl_static(parse_tree__module_qual__qualify_constructor_arg_list_6_0)
MR_decl_static(parse_tree__module_qual__qualify_class_name_6_0)
MR_decl_static(parse_tree__module_qual__qualify_prog_constraint_list_6_0)
MR_decl_static(parse_tree__module_qual__qualify_constructors_6_0)
MR_decl_static(parse_tree__module_qual__qualify_type_defn_6_0)
MR_decl_static(parse_tree__module_qual__qualify_inst_defn_6_0)
MR_decl_static(parse_tree__module_qual__qualify_mode_defn_6_0)
MR_decl_static(parse_tree__module_qual__qualify_type_and_mode_6_0)
MR_decl_static(parse_tree__module_qual__qualify_types_and_modes_6_0)
MR_decl_static(parse_tree__module_qual__qualify_type_ctor_6_0)
MR_decl_static(parse_tree__module_qual__qualify_pragma_vars_6_0)
MR_decl_static(parse_tree__module_qual__qualify_type_spec_subst_6_0)
MR_decl_static(parse_tree__module_qual__qualify_user_sharing_6_0)
MR_decl_static(parse_tree__module_qual__qualify_pragma_6_0)
MR_decl_static(parse_tree__module_qual__qualify_prog_constraints_6_0)
MR_decl_static(parse_tree__module_qual__qualify_class_method_6_0)
MR_decl_static(parse_tree__module_qual__qualify_class_interface_6_0)
MR_decl_static(parse_tree__module_qual__qualify_instance_body_3_0)
MR_decl_static(parse_tree__module_qual__mq_info_set_exported_instances_flag_3_0)
MR_decl_static(parse_tree__module_qual__module_qualify_item_7_0)
MR_decl_static(parse_tree__module_qual__do_module_qualify_items_6_0)
MR_decl_static(parse_tree__module_qual__do_module_qualify_event_specs_7_0)
MR_decl_static(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0)
MR_decl_static(parse_tree__module_qual__init_mq_info_5_0)
MR_decl_static(parse_tree__module_qual__mq_info_get_exported_instances_flag_2_0)
MR_def_extern_entry(parse_tree__module_qual__module_qualify_items_13_0)
MR_def_extern_entry(parse_tree__module_qual__qualify_lambda_mode_list_7_0)
MR_def_extern_entry(parse_tree__module_qual__qualify_clause_mode_list_7_0)
MR_def_extern_entry(parse_tree__module_qual__qualify_type_qualification_7_0)
MR_def_extern_entry(parse_tree__module_qual__mq_info_get_partial_qualifier_info_2_0)
MR_decl_static(fn__parse_tree__module_qual__get_first_module_name_1_0)
MR_decl_static(parse_tree__module_qual__get_partial_qualifiers_2_5_0)
MR_def_extern_entry(parse_tree__module_qual__get_partial_qualifiers_3_0)
MR_decl_static(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0)
MR_decl_static(parse_tree__module_qual__process_assert_catch_3_0)
MR_decl_static(parse_tree__module_qual__do_module_qualify_event_attr_9_0)
MR_decl_static(fn__parse_tree__module_qual__wrap_module_name_1_0)
MR_decl_static(__Unify___parse_tree__module_qual__class_id_set_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__class_id_set_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__error_context_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__error_context_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__id_set_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__id_set_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__id_type_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__id_type_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__inst_id_set_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__inst_id_set_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__mode_id_set_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__mode_id_set_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__module_id_set_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__module_id_set_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__mq_error_context_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__mq_error_context_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__mq_id_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__mq_id_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__mq_import_status_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__mq_import_status_0_1)
MR_decl_static(__Compare___parse_tree__module_qual__mq_import_status_0_0)
MR_def_extern_entry(__Unify___parse_tree__module_qual__mq_info_0_0)
MR_def_extern_entry(__Compare___parse_tree__module_qual__mq_info_0_0)
MR_def_extern_entry(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0)
MR_def_extern_entry(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0)
MR_decl_static(__Unify___parse_tree__module_qual__type_id_set_0_0)
MR_decl_static(__Compare___parse_tree__module_qual__type_id_set_0_0)
MR_decl_static(parse_tree__module_qual__IntroducedFrom__pred__process_assert__643__1_2_0)
MR_decl_static(parse_tree__module_qual__IntroducedFrom__pred__process_assert__631__1_2_0)
MR_decl_static(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0)
MR_decl_static(parse_tree__module_qual__IntroducedFrom__pred__find_unique_match__1614__1_2_0)
MR_decl_static(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2167__1_3_0)
MR_decl_static(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0)
MR_decl_static(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0)
MR_decl_static(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0)

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_module_defn_3_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_info_0;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_item__type_ctor_info_catch_expr_0;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__collect_mq_info_item_3_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__id_set_search_sym_arity_5_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__id_set_search_sym_arity_5_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_instance_body_3_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_instance_method_0;
static const struct mercury_type_0 mercury_common_0[6] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__process_module_defn_3_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_3,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(parse_tree__prog_item, catch_expr),
MR_COMMON(4,6),
MR_BOOL_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__collect_mq_info_item_3_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__id_set_search_sym_arity_5_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__id_set_search_sym_arity_5_0_2,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_COMMON(4,6),
MR_COMMON(4,23),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__qualify_instance_body_3_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__prog_data, instance_method),
MR_CTOR0_ADDR(parse_tree__prog_data, instance_method)
}
},
};

static const struct mercury_type_1 mercury_common_1[18] =
{
{
MR_COMMON(0,0),
MR_ENTRY_AP(parse_tree__module_qual__add_module_defn_3_0),
0
},
{
MR_COMMON(5,0),
MR_ENTRY_AP(parse_tree__module_qual__IntroducedFrom__pred__process_assert__643__1_2_0),
0
},
{
MR_COMMON(5,1),
MR_ENTRY_AP(parse_tree__module_qual__IntroducedFrom__pred__process_assert__631__1_2_0),
0
},
{
MR_COMMON(0,1),
MR_ENTRY_AP(parse_tree__module_qual__process_assert_catch_3_0),
0
},
{
MR_COMMON(0,2),
MR_ENTRY_AP(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0),
0
},
{
MR_COMMON(5,2),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
{
MR_COMMON(5,3),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
{
MR_COMMON(5,4),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
{
MR_COMMON(5,5),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
{
MR_COMMON(5,6),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
{
MR_COMMON(5,7),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
{
MR_COMMON(9,0),
MR_ENTRY_AP(parse_tree__module_qual__qualify_type_6_0),
0
},
{
MR_COMMON(9,1),
MR_ENTRY_AP(parse_tree__module_qual__qualify_inst_6_0),
0
},
{
MR_COMMON(9,2),
MR_ENTRY_AP(parse_tree__module_qual__qualify_inst_6_0),
0
},
{
MR_COMMON(9,3),
MR_ENTRY_AP(parse_tree__module_qual__qualify_inst_6_0),
0
},
{
MR_COMMON(9,4),
MR_ENTRY_AP(parse_tree__module_qual__qualify_type_6_0),
0
},
{
MR_COMMON(9,5),
MR_ENTRY_AP(parse_tree__module_qual__qualify_inst_6_0),
0
},
{
MR_COMMON(5,9),
MR_ENTRY_AP(fn__parse_tree__module_qual__wrap_module_name_1_0),
0
},
};

static const struct mercury_type_2 mercury_common_2[1] =
{
{
0
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
static const struct mercury_type_3 mercury_common_3[2] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_STRING_CTOR_ADDR,
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_TAG_COMMON(0,4,0),
MR_TAG_COMMON(0,4,0)
}
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_set_ordlist__type_ctor_info_set_ordlist_1;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_term_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_generic_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_generic_0;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_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_inst_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_tvar_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_error_spec_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_error_spec_0;
static const struct mercury_type_4 mercury_common_4[30] =
{
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
MR_CTOR1_ADDR(term, term),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(term, term),
MR_CTOR0_ADDR(term, generic)
}
},
{
{
MR_CTOR1_ADDR(term, term),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(term, term),
MR_CTOR0_ADDR(term, generic)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, inst_var_type)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type)
}
},
{
{
MR_TAG_COMMON(3,6,0),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,1),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,2),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,3),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,13),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,16),
MR_tbmkword(0, 0)
}
},
{
{
MR_tbmkword(0, 1),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,19),
MR_TAG_COMMON(1,4,15)
}
},
{
{
MR_TAG_COMMON(3,6,25),
MR_tbmkword(0, 0)
}
},
{
{
MR_tbmkword(0, 1),
MR_TAG_COMMON(1,4,17)
}
},
{
{
MR_TAG_COMMON(3,6,19),
MR_TAG_COMMON(1,4,18)
}
},
{
{
MR_TAG_COMMON(3,6,26),
MR_TAG_COMMON(1,4,15)
}
},
{
{
MR_TAG_COMMON(3,6,27),
MR_TAG_COMMON(1,4,20)
}
},
{
{
MR_TAG_COMMON(2,7,0),
MR_tbmkword(0, 0)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__error_util, error_spec)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__error_util, error_spec)
}
},
{
{
MR_TAG_COMMON(3,6,32),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,33),
MR_TAG_COMMON(1,4,15)
}
},
{
{
MR_tbmkword(0, 1),
MR_TAG_COMMON(1,4,27)
}
},
{
{
MR_TAG_COMMON(3,6,17),
MR_TAG_COMMON(1,4,28)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_undefined_6_0_1;
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__parse_tree__module_qual__report_undefined_6_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_4;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__find_unique_match_8_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_1;
static const struct mercury_type_5 mercury_common_5[10] =
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(4,3),
MR_COMMON(4,4)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(4,3),
MR_COMMON(4,4)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__report_undefined_6_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__report_undefined_6_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__find_unique_match_8_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(4,23),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
},
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(parse_tree__error_util, format_component)
},
};

static const struct mercury_type_6 mercury_common_6[34] =
{
{
4,
MR_string_const("clause mode annotation", 22)
},
{
4,
MR_string_const("mode declaration for lambda expression", 38)
},
{
4,
MR_string_const("pragma", 6)
},
{
4,
MR_string_const("explicit type qualification", 27)
},
{
4,
MR_string_const("definition of inst", 18)
},
{
4,
MR_string_const("definition of type", 18)
},
{
4,
MR_string_const("declaration of typeclass", 24)
},
{
4,
MR_string_const("attribute", 9)
},
{
4,
MR_string_const("for", 3)
},
{
4,
MR_string_const("declaration of instance of typeclass", 36)
},
{
4,
MR_string_const("definition of mode", 18)
},
{
4,
MR_string_const("declaration for mutable ", 24)
},
{
2,
MR_string_const("\140", 1)
},
{
3,
MR_string_const("\'", 1)
},
{
4,
MR_string_const("definition of ", 14)
},
{
4,
MR_string_const("mode declaration for", 20)
},
{
4,
MR_string_const("In", 2)
},
{
3,
MR_string_const(":", 1)
},
{
4,
MR_string_const("error: undefined", 16)
},
{
3,
MR_string_const(".", 1)
},
{
4,
MR_string_const("(The module", 11)
},
{
4,
MR_string_const("has not been imported.)", 23)
},
{
4,
MR_string_const("(The", 4)
},
{
4,
MR_string_const("not been imported in the interface.)", 36)
},
{
4,
MR_string_const("ambiguity error: multiple possible matches for", 46)
},
{
4,
MR_string_const("The possible matches are in modules", 35)
},
{
4,
MR_string_const("may be necessary.", 17)
},
{
4,
MR_string_const("An explicit module qualifier", 28)
},
{
4,
MR_string_const("In module", 9)
},
{
4,
MR_string_const("warning:", 8)
},
{
4,
MR_string_const("imported in the interface,", 26)
},
{
4,
MR_string_const("but", 3)
},
{
4,
MR_string_const("not used in the interface.", 26)
},
{
4,
MR_string_const("error: variable used as inst constructor.", 41)
},
};

static const struct mercury_type_7 mercury_common_7[2] =
{
{
MR_TAG_COMMON(1,4,21)
},
{
MR_TAG_COMMON(0,12,0)
},
};

static const struct mercury_type_8 mercury_common_8[4] =
{
{
MR_string_const("float", 5)
},
{
MR_string_const("int", 3)
},
{
MR_string_const("string", 6)
},
{
MR_string_const("", 0)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_3;
static const struct mercury_type_9 mercury_common_9[6] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_1,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_2,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_3,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_1,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_2,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_3,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__do_module_qualify_event_specs_7_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_event_attribute_0;
static const struct mercury_type_10 mercury_common_10[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__parse_tree__module_qual__do_module_qualify_event_specs_7_0_1,
(MR_Word *) (MR_Integer) 0
},
9,
{
MR_STRING_CTOR_ADDR,
MR_STRING_CTOR_ADDR,
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_data, event_attribute),
MR_CTOR0_ADDR(parse_tree__prog_data, event_attribute),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_CTOR0_ADDR(parse_tree__module_qual, mq_info),
MR_COMMON(4,25),
MR_COMMON(4,25)
}
},
};

static const struct mercury_type_11 mercury_common_11[1] =
{
{
{
11,
1
},
{
MR_tbmkword(0, 1),
MR_tbmkword(0, 0)
}
},
};

static const struct mercury_type_12 mercury_common_12[1] =
{
{
MR_TAG_COMMON(0,8,3),
0
},
};
extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;

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

static const MR_FA_TypeInfo_Struct1 mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 = {
	&mercury_data_set_ordlist__type_ctor_info_set_ordlist_1,
{	(MR_TypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0
}};

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_TypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0
}};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0,
	(MR_TypeInfo) &mercury_data_pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0
}};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_class_id_set_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__class_id_set_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__class_id_set_0_0)),
	"parse_tree.module_qual",
	"class_id_set",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 },
	-1,
	0,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_error_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2parse_tree__module_qual__type_ctor_info_mq_error_context_0term__type_ctor_info_context_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_error_context_0,
	(MR_TypeInfo) &mercury_data_term__type_ctor_info_context_0
}};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_error_context_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__error_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__error_context_0_0)),
	"parse_tree.module_qual",
	"error_context",
	{ 0 },
	{ (void *)&mercury_data_pair__ti_pair_2parse_tree__module_qual__type_ctor_info_mq_error_context_0term__type_ctor_info_context_0 },
	-1,
	0,
	NULL
};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_id_set_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__id_set_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__id_set_0_0)),
	"parse_tree.module_qual",
	"id_set",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 },
	-1,
	0,
	NULL
};

static const MR_EnumFunctorDesc mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_0 = {
	"type_id",
	0
};

static const MR_EnumFunctorDesc mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_1 = {
	"mode_id",
	1
};

static const MR_EnumFunctorDesc mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_2 = {
	"inst_id",
	2
};

static const MR_EnumFunctorDesc mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_3 = {
	"class_id",
	3
};

const MR_EnumFunctorDescPtr mercury_data_parse_tree__module_qual__enum_value_ordered_id_type_0[] = {
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_0,
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_1,
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_2,
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_3
};

const MR_EnumFunctorDescPtr mercury_data_parse_tree__module_qual__enum_name_ordered_id_type_0[] = {
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_3,
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_2,
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_1,
	&mercury_data_parse_tree__module_qual__enum_functor_desc_id_type_0_0
};

const MR_Integer mercury_data_parse_tree__module_qual__functor_number_map_id_type_0[] = {
	3,
	2,
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_id_type_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__id_type_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__id_type_0_0)),
	"parse_tree.module_qual",
	"id_type",
	{ (void *)mercury_data_parse_tree__module_qual__enum_name_ordered_id_type_0 },
	{ (void *)mercury_data_parse_tree__module_qual__enum_value_ordered_id_type_0 },
	4,
	4,
	mercury_data_parse_tree__module_qual__functor_number_map_id_type_0
};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_inst_id_set_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__inst_id_set_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__inst_id_set_0_0)),
	"parse_tree.module_qual",
	"inst_id_set",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 },
	-1,
	0,
	NULL
};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mode_id_set_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__mode_id_set_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__mode_id_set_0_0)),
	"parse_tree.module_qual",
	"mode_id_set",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 },
	-1,
	0,
	NULL
};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_module_id_set_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__module_id_set_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__module_id_set_0_0)),
	"parse_tree.module_qual",
	"module_id_set",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 },
	-1,
	0,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0;

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_0 = {
	"mqec_type",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_0,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_1 = {
	"mqec_inst",
	1,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_1,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_2 = {
	"mqec_mode",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	0,
	2,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_2,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0;

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_3 = {
	"mqec_pred_or_func",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	1,
	3,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_3,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_maybe__type_ctor_info_maybe_1;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1mdbcomp__prim_data__type_ctor_info_pred_or_func_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0
}};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_4[] = {
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1mdbcomp__prim_data__type_ctor_info_pred_or_func_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_4 = {
	"mqec_pred_or_func_mode",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	2,
	4,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_4,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_5 = {
	"mqec_pragma",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	0,
	5,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_6 = {
	"mqec_lambda_expr",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	6,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_7 = {
	"mqec_clause_mode_annotation",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	2,
	7,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_8 = {
	"mqec_type_qual",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	3,
	8,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_9[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_9 = {
	"mqec_class",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	3,
	9,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_9,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_10[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_10 = {
	"mqec_instance",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	4,
	10,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_10,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_11[] = {
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_string_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_11 = {
	"mqec_mutable",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	5,
	11,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_11,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_12[] = {
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_string_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_string_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_12 = {
	"mqec_event_spec_attr",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	6,
	12,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_error_context_0_12,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_5,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_6,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_7,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_8

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_1[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_0

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_2[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_1

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_3[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_2,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_3,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_4,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_9,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_10,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_11,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_12

};

const MR_DuPtagLayout mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_error_context_0[] = {
	{ 4, MR_SECTAG_LOCAL,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_2 },
	{ 7, MR_SECTAG_REMOTE,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_error_context_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_name_ordered_mq_error_context_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_9,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_7,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_12,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_1,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_10,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_6,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_2,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_11,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_5,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_3,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_4,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_0,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_error_context_0_8
};

const MR_Integer mercury_data_parse_tree__module_qual__functor_number_map_mq_error_context_0[] = {
	11,
	3,
	6,
	9,
	10,
	8,
	5,
	1,
	12,
	0,
	4,
	7,
	2 };
	
const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_error_context_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__mq_error_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__mq_error_context_0_0)),
	"parse_tree.module_qual",
	"mq_error_context",
	{ (void *)mercury_data_parse_tree__module_qual__du_name_ordered_mq_error_context_0 },
	{ (void *)mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_error_context_0 },
	13,
	4,
	mercury_data_parse_tree__module_qual__functor_number_map_mq_error_context_0
};

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_id_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_id_0_0 = {
	"mq_id",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_id_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_id_0_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_id_0_0

};

const MR_DuPtagLayout mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_id_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_id_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_name_ordered_mq_id_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_id_0_0
};

const MR_Integer mercury_data_parse_tree__module_qual__functor_number_map_mq_id_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__mq_id_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__mq_id_0_0)),
	"parse_tree.module_qual",
	"mq_id",
	{ (void *)mercury_data_parse_tree__module_qual__du_name_ordered_mq_id_0 },
	{ (void *)mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_id_0 },
	1,
	4,
	mercury_data_parse_tree__module_qual__functor_number_map_mq_id_0
};

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

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_1 = {
	"mq_status_local",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	1,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_import_locn_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_import_locn_0;

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_import_status_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_import_locn_0
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_2 = {
	"mq_status_imported",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_import_status_0_2,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_3 = {
	"mq_status_abstract_imported",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	2,
	3,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_import_status_0_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_0,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_1,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_3

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_import_status_0_1[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_2

};

const MR_DuPtagLayout mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_import_status_0[] = {
	{ 3, MR_SECTAG_LOCAL,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_import_status_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_import_status_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_name_ordered_mq_import_status_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_3,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_0,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_2,
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_import_status_0_1
};

const MR_Integer mercury_data_parse_tree__module_qual__functor_number_map_mq_import_status_0[] = {
	1,
	3,
	2,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_import_status_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__mq_import_status_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__mq_import_status_0_0)),
	"parse_tree.module_qual",
	"mq_import_status",
	{ (void *)mercury_data_parse_tree__module_qual__du_name_ordered_mq_import_status_0 },
	{ (void *)mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_import_status_0 },
	4,
	4,
	mercury_data_parse_tree__module_qual__functor_number_map_mq_import_status_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_need_qualifier_0;
extern const MR_TypeCtorInfo_Struct mercury_data_recompilation__type_ctor_info_recompilation_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_recompilation__type_ctor_info_recompilation_info_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1recompilation__type_ctor_info_recompilation_info_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_recompilation__type_ctor_info_recompilation_info_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_import_status_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_need_qualifier_0;

const MR_PseudoTypeInfo mercury_data_parse_tree__module_qual__field_types_mq_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_bool__type_ctor_info_bool_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__module_qual__type_ctor_info_mq_import_status_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_bool__type_ctor_info_bool_0,
	(MR_PseudoTypeInfo) &mercury_data_bool__type_ctor_info_bool_0,
	(MR_PseudoTypeInfo) &mercury_data_bool__type_ctor_info_bool_0,
	(MR_PseudoTypeInfo) &mercury_data_pair__ti_pair_2parse_tree__module_qual__type_ctor_info_mq_error_context_0term__type_ctor_info_context_0,
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_need_qualifier_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1recompilation__type_ctor_info_recompilation_info_0
};

const MR_ConstString mercury_data_parse_tree__module_qual__field_names_mq_info_0_0[] = {
	"imported_modules",
	"interface_visible_modules",
	"modules",
	"types",
	"impl_types",
	"insts",
	"modes",
	"classes",
	"unused_interface_modules",
	"imported_instance_modules",
	"exported_instances_flag",
	"import_status",
	"num_errors",
	"type_error_flag",
	"mode_error_flag",
	"report_error_flag",
	"error_context",
	"this_module",
	"need_qual_flag",
	"maybe_recompilation_info"
};

static const MR_DuFunctorDesc mercury_data_parse_tree__module_qual__du_functor_desc_mq_info_0_0 = {
	"mq_info",
	20,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_parse_tree__module_qual__field_types_mq_info_0_0,
	mercury_data_parse_tree__module_qual__field_names_mq_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_stag_ordered_mq_info_0_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_info_0_0

};

const MR_DuPtagLayout mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_parse_tree__module_qual__du_stag_ordered_mq_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_parse_tree__module_qual__du_name_ordered_mq_info_0[] = {
	&mercury_data_parse_tree__module_qual__du_functor_desc_mq_info_0_0
};

const MR_Integer mercury_data_parse_tree__module_qual__functor_number_map_mq_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_mq_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__mq_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__mq_info_0_0)),
	"parse_tree.module_qual",
	"mq_info",
	{ (void *)mercury_data_parse_tree__module_qual__du_name_ordered_mq_info_0 },
	{ (void *)mercury_data_parse_tree__module_qual__du_ptag_ordered_mq_info_0 },
	1,
	4,
	mercury_data_parse_tree__module_qual__functor_number_map_mq_info_0
};

static const MR_NotagFunctorDesc mercury_data_parse_tree__module_qual__notag_functor_desc_partial_qualifier_info_0 = {
	"partial_qualifier_info",
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0,
	NULL
};

const MR_Integer mercury_data_parse_tree__module_qual__functor_number_map_partial_qualifier_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_partial_qualifier_info_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_NOTAG_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0)),
	"parse_tree.module_qual",
	"partial_qualifier_info",
	{ (void *)&mercury_data_parse_tree__module_qual__notag_functor_desc_partial_qualifier_info_0 },
	{ (void *)&mercury_data_parse_tree__module_qual__notag_functor_desc_partial_qualifier_info_0 },
	1,
	4,
	mercury_data_parse_tree__module_qual__functor_number_map_partial_qualifier_info_0
};

const MR_TypeCtorInfo_Struct mercury_data_parse_tree__module_qual__type_ctor_info_type_id_set_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___parse_tree__module_qual__type_id_set_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___parse_tree__module_qual__type_id_set_0_0)),
	"parse_tree.module_qual",
	"type_id_set",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2pair__ti_pair_2builtin__type_ctor_info_string_0builtin__type_ctor_info_int_0pair__ti_pair_2set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0set_ordlist__ti_set_ordlist_1mdbcomp__prim_data__type_ctor_info_sym_name_0 },
	-1,
	0,
	NULL
};


static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_1 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1870,
"16"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__do_module_qualify_event_specs_7_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"do_module_qualify_event_attr",
9,
0
},
"parse_tree.module_qual",
"module_qual.m",
947,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_3 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"qualify_inst",
6,
0
},
"parse_tree.module_qual",
"module_qual.m",
834,
"77"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_2 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"qualify_type",
6,
0
},
"parse_tree.module_qual",
"module_qual.m",
833,
"75"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__module_qualify_item_7_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"qualify_inst",
6,
0
},
"parse_tree.module_qual",
"module_qual.m",
850,
"91"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_instance_body_3_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"lambda_module_qual_m_1560",
3,
0
},
"parse_tree.module_qual",
"module_qual.m",
1560,
"20"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_3 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"qualify_inst",
6,
0
},
"parse_tree.module_qual",
"module_qual.m",
1539,
"21"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_2 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"qualify_inst",
6,
0
},
"parse_tree.module_qual",
"module_qual.m",
1531,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__qualify_class_method_6_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"qualify_type",
6,
0
},
"parse_tree.module_qual",
"module_qual.m",
1530,
"13"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__find_unique_match_8_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"lambda_module_qual_m_1614",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1614,
"19"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__id_set_search_sym_arity_5_0_2 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"lambda_module_qual_m_2187",
3,
0
},
"parse_tree.module_qual",
"module_qual.m",
2187,
"32"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__id_set_search_sym_arity_5_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"lambda_module_qual_m_2167",
3,
0
},
"parse_tree.module_qual",
"module_qual.m",
2166,
"23"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_4 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1786,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_3 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1786,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_2 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1786,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_ambiguous_match_6_0_1 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1786,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_undefined_6_0_2 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1764,
"71"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__report_undefined_6_0_1 = {
{
MR_FUNCTION,
"parse_tree.module_qual",
"parse_tree.module_qual",
"wrap_module_name",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
1764,
"71"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__collect_mq_info_item_3_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"collect_mq_info_qualified_symname",
3,
0
},
"parse_tree.module_qual",
"module_qual.m",
380,
"73"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_3 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"process_assert_catch",
3,
0
},
"parse_tree.module_qual",
"module_qual.m",
598,
"44"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_2 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"lambda_module_qual_m_631",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
631,
"82"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_assert_3_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"lambda_module_qual_m_643",
2,
0
},
"parse_tree.module_qual",
"module_qual.m",
643,
"97"
};

static const MR_UserClosureId
mercury_data__closure_layout__parse_tree__module_qual__process_module_defn_3_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_qual",
"parse_tree.module_qual",
"add_module_defn",
3,
0
},
"parse_tree.module_qual",
"module_qual.m",
456,
"5"
};



MR_BEGIN_MODULE(parse_tree__module_qual_module0)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_type_error_flag_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_type_error_flag_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_type_error_flag'/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__parse_tree__module_qual__mq_info_get_type_error_flag_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 13);
	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(parse_tree__module_qual_module1)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_mode_error_flag_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_mode_error_flag_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_mode_error_flag'/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__parse_tree__module_qual__mq_info_get_mode_error_flag_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 14);
	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(parse_tree__module_qual_module2)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_need_qual_flag_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_need_qual_flag_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_need_qual_flag'/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__parse_tree__module_qual__mq_info_get_need_qual_flag_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 18);
	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(parse_tree__module_qual_module3)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_need_qual_flag_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_need_qual_flag_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_need_qual_flag'/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__parse_tree__module_qual__mq_info_set_need_qual_flag_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_r1;
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module4)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_imported_modules_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_imported_modules_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_imported_modules'/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(parse_tree__module_qual__mq_info_get_imported_modules_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 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_BEGIN_MODULE(parse_tree__module_qual_module5)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_interface_visible_modules_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_interface_visible_modules_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_interface_visible_modules'/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(parse_tree__module_qual__mq_info_get_interface_visible_modules_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module6)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_unused_interface_modules_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_unused_interface_modules_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_unused_interface_modules'/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(parse_tree__module_qual__mq_info_get_unused_interface_modules_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 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_BEGIN_MODULE(parse_tree__module_qual_module7)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_import_status_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_import_status_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_import_status'/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(parse_tree__module_qual__mq_info_get_import_status_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 11);
	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(parse_tree__module_qual_module8)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_interface_visible_modules_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_interface_visible_modules_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_interface_visible_modules'/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(parse_tree__module_qual__mq_info_set_interface_visible_modules_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module9)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_unused_interface_modules'/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(parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_r1;
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(set__insert_list_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module10)
	MR_init_entry1(parse_tree__module_qual__add_imports_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__add_imports_3_0);
	MR_init_label10(parse_tree__module_qual__add_imports_3_0,4,5,3,8,2,10,13,14,16,18)
	MR_init_label3(parse_tree__module_qual__add_imports_3_0,22,23,25)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_imports'/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(parse_tree__module_qual__add_imports_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(2) = MR_tfield(0, MR_r2, 11);
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i4);
	}
	MR_sv(3) = MR_r2;
	MR_r2 = MR_r1;
	MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i3);
MR_def_label(parse_tree__module_qual__add_imports_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i5);
	}
	MR_sv(3) = MR_r2;
	MR_r2 = MR_r1;
	MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i3);
MR_def_label(parse_tree__module_qual__add_imports_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_sv(2), 0);
	if (MR_INT_NE(MR_tempr1,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i2);
	}
	MR_sv(3) = MR_r2;
	MR_r2 = MR_r1;
	}
MR_def_label(parse_tree__module_qual__add_imports_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r3 = MR_tfield(0, MR_sv(3), 0);
	MR_np_call_localret_ent(set__insert_list_3_0,
		parse_tree__module_qual__add_imports_3_0_i8);
MR_def_label(parse_tree__module_qual__add_imports_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr1, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr1, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr1, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr1, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr1, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr1, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr1, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr1, 15);
	MR_tfield(0, MR_r2, 16) = MR_tfield(0, MR_tempr1, 16);
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr1, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr1, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr1, 19);
	MR_r1 = MR_r2;
	MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i10);
	}
MR_def_label(parse_tree__module_qual__add_imports_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
MR_def_label(parse_tree__module_qual__add_imports_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i16);
	}
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_unused_interface_modules_2_0,
		parse_tree__module_qual__add_imports_3_0_i13);
MR_def_label(parse_tree__module_qual__add_imports_3_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_list_3_0,
		parse_tree__module_qual__add_imports_3_0_i14);
MR_def_label(parse_tree__module_qual__add_imports_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0,
		parse_tree__module_qual__add_imports_3_0_i16);
MR_def_label(parse_tree__module_qual__add_imports_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(2),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i18);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i25);
	}
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	if (MR_INT_NE(MR_r2,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__add_imports_3_0_i25);
	}
MR_def_label(parse_tree__module_qual__add_imports_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_interface_visible_modules_2_0,
		parse_tree__module_qual__add_imports_3_0_i22);
MR_def_label(parse_tree__module_qual__add_imports_3_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_list_3_0,
		parse_tree__module_qual__add_imports_3_0_i23);
MR_def_label(parse_tree__module_qual__add_imports_3_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_interface_visible_modules_3_0);
MR_def_label(parse_tree__module_qual__add_imports_3_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module11)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_import_status_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_import_status_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_import_status'/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(parse_tree__module_qual__mq_info_set_import_status_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_r1;
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(list__foldl_4_0);
MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module12)
	MR_init_entry1(parse_tree__module_qual__process_module_defn_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__process_module_defn_3_0);
	MR_init_label10(parse_tree__module_qual__process_module_defn_3_0,3,6,7,8,10,14,12,16,19,21)
	MR_init_label5(parse_tree__module_qual__process_module_defn_3_0,25,27,31,29,33)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_module_defn'/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(parse_tree__module_qual__process_module_defn_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i3);
	}
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = (MR_Word) MR_tbmkword(0, 2);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__process_module_defn_3_0_i31);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i6);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i7);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i8);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 1);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_import_status_3_0);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i10);
	}
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_tailcall_ent(parse_tree__module_qual__add_imports_3_0);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i12);
	}
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__process_module_defn_3_0_i14);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_need_qual_flag_3_0);
	}
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i16);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	MR_r5 = MR_tempr2;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i19);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_import_status_3_0);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i21);
	}
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,2,0);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__process_module_defn_3_0_i31);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i25);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 1);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_import_status_3_0);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i27);
	}
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_tailcall_ent(parse_tree__module_qual__add_imports_3_0);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i29);
	}
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(2, MR_r1, 0);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__process_module_defn_3_0_i31);
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_need_qual_flag_3_0);
	}
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_module_defn_3_0_i33);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__process_module_defn_3_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.process_module_defn\'/3", 56);
	MR_r3 = (MR_Word) MR_string_const("transitively_imported item", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__search_3_0);
MR_decl_entry(set__init_1_0);
MR_decl_entry(set__insert_3_0);
MR_decl_entry(map__set_4_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module13)
	MR_init_entry1(parse_tree__module_qual__id_set_insert_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__id_set_insert_4_0);
	MR_init_label9(parse_tree__module_qual__id_set_insert_4_0,9,4,11,12,13,16,15,22,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'id_set_insert'/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(parse_tree__module_qual__id_set_insert_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r2, 0);
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_set_insert_4_0_i3);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(1, MR_tempr1, 0);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(6);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		parse_tree__module_qual__id_set_insert_4_0_i9);
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_set_insert_4_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r4 = MR_tempr1;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	MR_GOTO_LAB(parse_tree__module_qual__id_set_insert_4_0_i13);
	}
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(set__init_1_0,
		parse_tree__module_qual__id_set_insert_4_0_i11);
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(set__init_1_0,
		parse_tree__module_qual__id_set_insert_4_0_i12);
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(5);
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_set_insert_4_0_i15);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(set__insert_3_0,
		parse_tree__module_qual__id_set_insert_4_0_i16);
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(6);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_r1;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(map__set_4_0);
	}
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_3_0,
		parse_tree__module_qual__id_set_insert_4_0_i22);
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(6);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 1) = MR_r1;
	MR_r5 = MR_sv(2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(map__set_4_0);
	}
MR_def_label(parse_tree__module_qual__id_set_insert_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.id_set_insert\'/4", 50);
	MR_r3 = (MR_Word) MR_string_const("unqualified id", 14);
	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(parse_tree__module_qual_module14)
	MR_init_entry1(parse_tree__module_qual__add_module_defn_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__add_module_defn_3_0);
	MR_init_label1(parse_tree__module_qual__add_module_defn_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_module_defn'/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(parse_tree__module_qual__add_module_defn_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_sv(1) = MR_r2;
	MR_r1 = MR_tfield(0, MR_r2, 18);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_sv(1), 2);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_insert_4_0,
		parse_tree__module_qual__add_module_defn_3_0_i3);
MR_def_label(parse_tree__module_qual__add_module_defn_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr1, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr1, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr1, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr1, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr1, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr1, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr1, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr1, 15);
	MR_tfield(0, MR_r2, 16) = MR_tfield(0, MR_tempr1, 16);
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr1, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr1, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr1, 19);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_io_sym_name__try_parse_sym_name_and_args_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module15)
	MR_init_entry1(parse_tree__module_qual__term_qualified_symbols_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__term_qualified_symbols_2_0);
	MR_init_label4(parse_tree__module_qual__term_qualified_symbols_2_0,3,6,2,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'term_qualified_symbols'/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(parse_tree__module_qual__term_qualified_symbols_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_io_sym_name__try_parse_sym_name_and_args_3_0,
		parse_tree__module_qual__term_qualified_symbols_2_0_i3);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_2_0_i2);
	}
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_2_0_i1);
	}
	MR_sv(1) = MR_r2;
	MR_r1 = MR_r3;
	MR_np_call_localret_ent(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__term_qualified_symbols_2_0_i6);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_2_0_i1);
	}
	{
	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_r2;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_r1 = MR_TRUE;
	MR_proceed();
	}
MR_def_label(parse_tree__module_qual__term_qualified_symbols_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(parse_tree__module_qual__term_qualified_symbols_2_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__append_3_1);

MR_BEGIN_MODULE(parse_tree__module_qual_module16)
	MR_init_entry1(parse_tree__module_qual__term_qualified_symbols_list_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__term_qualified_symbols_list_2_0);
	MR_init_label7(parse_tree__module_qual__term_qualified_symbols_list_2_0,50,5,8,4,12,14,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'term_qualified_symbols_list'/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(parse_tree__module_qual__term_qualified_symbols_list_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_list_2_0_i50);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_io_sym_name__try_parse_sym_name_and_args_3_0,
		parse_tree__module_qual__term_qualified_symbols_list_2_0_i5);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_list_2_0_i4);
	}
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_list_2_0_i1);
	}
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r3;
	MR_np_localcall_lab(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__term_qualified_symbols_list_2_0_i8);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_list_2_0_i1);
	}
	{
	MR_Word 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_r2;
	MR_r1 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__term_qualified_symbols_list_2_0_i12);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_np_localcall_lab(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__term_qualified_symbols_list_2_0_i12);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__term_qualified_symbols_list_2_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(list__append_3_1,
		parse_tree__module_qual__term_qualified_symbols_list_2_0_i14);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(3);
MR_def_label(parse_tree__module_qual__term_qualified_symbols_list_2_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(fn__f_108_105_115_116_95_95_43_43_2_0);
MR_decl_entry(bool__and_3_0);
MR_decl_entry(list__map_3_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_item__type_ctor_info_catch_expr_0;
MR_decl_entry(list__map2_4_0);
MR_decl_entry(list__condense_2_0);
MR_decl_entry(bool__and_list_2_0);
MR_decl_entry(term__coerce_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module17)
	MR_init_entry1(parse_tree__module_qual__process_assert_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__process_assert_3_0);
	MR_init_label10(parse_tree__module_qual__process_assert_3_0,295,3,8,9,14,16,19,20,21,18)
	MR_init_label10(parse_tree__module_qual__process_assert_3_0,29,31,23,35,40,49,51,45,55,56)
	MR_init_label10(parse_tree__module_qual__process_assert_3_0,57,58,59,60,54,63,64,65,62,67)
	MR_init_label10(parse_tree__module_qual__process_assert_3_0,69,71,73,75,77,79,81,83,85,88)
	MR_init_label10(parse_tree__module_qual__process_assert_3_0,89,90,93,95,100,105,110,87,111,112)
	MR_init_label4(parse_tree__module_qual__process_assert_3_0,114,116,118,113)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_assert'/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(parse_tree__module_qual__process_assert_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
MR_def_label(parse_tree__module_qual__process_assert_3_0,295)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i3);
	}
	MR_sv(1) = MR_tfield(1, MR_r2, 1);
	MR_r1 = MR_tfield(1, MR_r2, 0);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i63);
MR_def_label(parse_tree__module_qual__process_assert_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!((((MR_Integer) MR_r2 == (MR_Integer) MR_tbmkword(0, 1)) || ((MR_Integer) MR_r2 == (MR_Integer) MR_tbmkword(0, 0))))) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i8);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(10);
MR_def_label(parse_tree__module_qual__process_assert_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r2,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i9);
	}
	MR_sv(1) = MR_tfield(2, MR_r2, 1);
	MR_r1 = MR_tfield(2, MR_r2, 0);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i63);
MR_def_label(parse_tree__module_qual__process_assert_3_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i14);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i16);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,12)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i18);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 5);
	MR_r1 = MR_tfield(3, MR_r2, 4);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i19);
MR_def_label(parse_tree__module_qual__process_assert_3_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__process_assert_list_3_0,
		parse_tree__module_qual__process_assert_3_0_i20);
MR_def_label(parse_tree__module_qual__process_assert_3_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__process_assert_3_0_i21);
MR_def_label(parse_tree__module_qual__process_assert_3_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(bool__and_3_0,
		parse_tree__module_qual__process_assert_3_0_i110);
MR_def_label(parse_tree__module_qual__process_assert_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,19)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i23);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_r2, 1);
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i113);
	}
	MR_sv(1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,1);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,4,2);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r4 = MR_tfield(3, MR_tempr2, 2);
	}
	MR_np_call_localret_ent(list__map_3_0,
		parse_tree__module_qual__process_assert_3_0_i29);
MR_def_label(parse_tree__module_qual__process_assert_3_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__process_assert_3_0_i31);
MR_def_label(parse_tree__module_qual__process_assert_3_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i113);
	}
	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_r2;
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(10);
MR_def_label(parse_tree__module_qual__process_assert_3_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i35);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 2);
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i63);
MR_def_label(parse_tree__module_qual__process_assert_3_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,15)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i40);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 2);
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i63);
MR_def_label(parse_tree__module_qual__process_assert_3_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,18)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i45);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,4,2);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,2);
	MR_r4 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(list__map_3_0,
		parse_tree__module_qual__process_assert_3_0_i49);
MR_def_label(parse_tree__module_qual__process_assert_3_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__process_assert_3_0_i51);
MR_def_label(parse_tree__module_qual__process_assert_3_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i113);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(10);
MR_def_label(parse_tree__module_qual__process_assert_3_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,17)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i54);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 5);
	MR_sv(2) = MR_tfield(3, MR_r2, 4);
	MR_r1 = MR_tfield(3, MR_r2, 3);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i55);
MR_def_label(parse_tree__module_qual__process_assert_3_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_r1 = MR_sv(2);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i56);
MR_def_label(parse_tree__module_qual__process_assert_3_0,56)
	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_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i57);
MR_def_label(parse_tree__module_qual__process_assert_3_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__process_assert_3_0_i58);
MR_def_label(parse_tree__module_qual__process_assert_3_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	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,
		parse_tree__module_qual__process_assert_3_0_i59);
MR_def_label(parse_tree__module_qual__process_assert_3_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(bool__and_3_0,
		parse_tree__module_qual__process_assert_3_0_i60);
MR_def_label(parse_tree__module_qual__process_assert_3_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(bool__and_3_0,
		parse_tree__module_qual__process_assert_3_0_i110);
MR_def_label(parse_tree__module_qual__process_assert_3_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,14)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i62);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 2);
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i63);
MR_def_label(parse_tree__module_qual__process_assert_3_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i64);
MR_def_label(parse_tree__module_qual__process_assert_3_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__process_assert_3_0_i65);
MR_def_label(parse_tree__module_qual__process_assert_3_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(bool__and_3_0,
		parse_tree__module_qual__process_assert_3_0_i110);
MR_def_label(parse_tree__module_qual__process_assert_3_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,16)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i67);
	}
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,8)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i69);
	}
	MR_r1 = MR_tfield(3, MR_r2, 5);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,7)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i71);
	}
	MR_r1 = MR_tfield(3, MR_r2, 5);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,6)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i73);
	}
	MR_r1 = MR_tfield(3, MR_r2, 5);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i75);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,10)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i77);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,9)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i79);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i81);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i83);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,11)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i85);
	}
	MR_r1 = MR_tfield(3, MR_r2, 5);
	MR_succip_word = MR_sv(10);
	MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i295);
MR_def_label(parse_tree__module_qual__process_assert_3_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,13)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i87);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 3);
	MR_sv(2) = MR_tfield(3, MR_r2, 4);
	MR_sv(3) = MR_tfield(3, MR_r2, 5);
	MR_sv(4) = MR_tfield(3, MR_r2, 6);
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i88);
MR_def_label(parse_tree__module_qual__process_assert_3_0,88)
	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_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i89);
MR_def_label(parse_tree__module_qual__process_assert_3_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__maybe_process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i90);
MR_def_label(parse_tree__module_qual__process_assert_3_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_item, catch_expr);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,4,5);
	MR_r3 = (MR_Word) MR_BOOL_CTOR_ADDR;
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,1,3);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__map2_4_0,
		parse_tree__module_qual__process_assert_3_0_i93);
MR_def_label(parse_tree__module_qual__process_assert_3_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i95);
	}
	{
	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_tbmkword(0, 0);
	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_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_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(8) = MR_r2;
	MR_sv(1) = (MR_Integer) 0;
	MR_r2 = MR_tempr2;
	MR_r1 = MR_sv(9);
	}
	MR_np_call_localret_ent(list__condense_2_0,
		parse_tree__module_qual__process_assert_3_0_i105);
MR_def_label(parse_tree__module_qual__process_assert_3_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_tempr1, 0), 1);
	}
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_3_0_i100);
MR_def_label(parse_tree__module_qual__process_assert_3_0,100)
	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_sv(4);
	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_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(1) = MR_r2;
	MR_r2 = MR_tempr2;
	MR_r1 = MR_sv(9);
	}
	MR_np_call_localret_ent(list__condense_2_0,
		parse_tree__module_qual__process_assert_3_0_i105);
MR_def_label(parse_tree__module_qual__process_assert_3_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_sv(8);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(6);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(bool__and_list_2_0,
		parse_tree__module_qual__process_assert_3_0_i110);
MR_def_label(parse_tree__module_qual__process_assert_3_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__process_assert_3_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(3, MR_r2, 2);
	MR_sv(2) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r1 = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		parse_tree__module_qual__process_assert_3_0_i111);
MR_def_label(parse_tree__module_qual__process_assert_3_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		parse_tree__module_qual__process_assert_3_0_i112);
MR_def_label(parse_tree__module_qual__process_assert_3_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__module_qual__term_qualified_symbols_2_0,
		parse_tree__module_qual__process_assert_3_0_i114);
MR_def_label(parse_tree__module_qual__process_assert_3_0,114)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i113);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__term_qualified_symbols_2_0,
		parse_tree__module_qual__process_assert_3_0_i116);
MR_def_label(parse_tree__module_qual__process_assert_3_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_3_0_i113);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__append_3_1,
		parse_tree__module_qual__process_assert_3_0_i118);
MR_def_label(parse_tree__module_qual__process_assert_3_0,118)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(10);
MR_def_label(parse_tree__module_qual__process_assert_3_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 0;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module18)
	MR_init_entry1(parse_tree__module_qual__maybe_process_assert_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__maybe_process_assert_3_0);
	MR_init_label1(parse_tree__module_qual__maybe_process_assert_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_process_assert'/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(parse_tree__module_qual__maybe_process_assert_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__maybe_process_assert_3_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(parse_tree__module_qual__maybe_process_assert_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_tailcall_ent(parse_tree__module_qual__process_assert_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(parse_tree__module_qual_module19)
	MR_init_entry1(parse_tree__module_qual__process_assert_list_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__process_assert_list_3_0);
	MR_init_label5(parse_tree__module_qual__process_assert_list_3_0,18,4,5,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_assert_list'/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(parse_tree__module_qual__process_assert_list_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_list_3_0_i18);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(parse_tree__module_qual__process_assert_list_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_list_3_0_i4);
MR_def_label(parse_tree__module_qual__process_assert_list_3_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(2) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__process_assert_list_3_0,
		parse_tree__module_qual__process_assert_list_3_0_i5);
MR_def_label(parse_tree__module_qual__process_assert_list_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(list__append_3_1,
		parse_tree__module_qual__process_assert_list_3_0_i6);
MR_def_label(parse_tree__module_qual__process_assert_list_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(bool__and_3_0,
		parse_tree__module_qual__process_assert_list_3_0_i7);
MR_def_label(parse_tree__module_qual__process_assert_list_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_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(parse_tree__module_qual_module20)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_types_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_types_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_types'/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(parse_tree__module_qual__mq_info_get_types_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 3);
	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(parse_tree__module_qual_module21)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_impl_types_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_impl_types_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_impl_types'/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(parse_tree__module_qual__mq_info_get_impl_types_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 4);
	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(parse_tree__module_qual_module22)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_insts_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_insts_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_insts'/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(parse_tree__module_qual__mq_info_get_insts_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 5);
	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(parse_tree__module_qual_module23)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_modes_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_modes_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_modes'/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(parse_tree__module_qual__mq_info_get_modes_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 6);
	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(parse_tree__module_qual_module24)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_classes_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_classes_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_classes'/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(parse_tree__module_qual__mq_info_get_classes_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 7);
	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(parse_tree__module_qual_module25)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_imported_instance_modules_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_imported_instance_modules_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_imported_instance_modules'/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(parse_tree__module_qual__mq_info_get_imported_instance_modules_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 9);
	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(parse_tree__module_qual_module26)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_types_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_types_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_types'/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(parse_tree__module_qual__mq_info_set_types_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module27)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_impl_types_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_impl_types_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_impl_types'/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(parse_tree__module_qual__mq_info_set_impl_types_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module28)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_insts_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_insts_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_insts'/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(parse_tree__module_qual__mq_info_set_insts_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_r1;
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module29)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_modes_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_modes_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_modes'/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(parse_tree__module_qual__mq_info_set_modes_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module30)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_classes_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_classes_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_classes'/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(parse_tree__module_qual__mq_info_set_classes_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_r1;
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module31)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_imported_instance_modules_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_imported_instance_modules_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_imported_instance_modules'/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(parse_tree__module_qual__mq_info_set_imported_instance_modules_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_r1;
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(list__length_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module32)
	MR_init_entry1(parse_tree__module_qual__collect_mq_info_item_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__collect_mq_info_item_3_0);
	MR_init_label10(parse_tree__module_qual__collect_mq_info_item_3_0,3,5,6,8,9,10,13,14,12,17)
	MR_init_label10(parse_tree__module_qual__collect_mq_info_item_3_0,18,19,21,11,27,28,30,31,24,34)
	MR_init_label10(parse_tree__module_qual__collect_mq_info_item_3_0,37,38,36,41,42,43,45,35,48,49)
	MR_init_label10(parse_tree__module_qual__collect_mq_info_item_3_0,50,252,53,56,55,52,62,63,61,66)
	MR_init_label10(parse_tree__module_qual__collect_mq_info_item_3_0,67,68,69,71,72,73,60,77,78,109)
	MR_init_label5(parse_tree__module_qual__collect_mq_info_item_3_0,76,81,82,83,85)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_mq_info_item'/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(parse_tree__module_qual__collect_mq_info_item_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i3);
	}
	MR_r1 = MR_tfield(0, MR_tfield(2, MR_r1, 0), 0);
	MR_np_tailcall_ent(parse_tree__module_qual__process_module_defn_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i5);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i6);
	}
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 0), 0);
	MR_np_tailcall_ent(parse_tree__module_qual__add_module_defn_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i8);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,11)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i9);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,10)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i10);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i11);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_import_status_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i13);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i14);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i12);
	}
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,7);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i17);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_insts_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i18);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_need_qual_flag_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i19);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_insert_4_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i21);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_insts_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,9)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i24);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_tag_alloc_heap(MR_sv(2), 1, (MR_Integer) 1);
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_import_status_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i27);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_1,
		parse_tree__module_qual__collect_mq_info_item_3_0_i28);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i109);
	}
	MR_sv(1) = MR_tfield(0, MR_sv(1), 5);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_imported_instance_modules_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i30);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_3_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i31);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_imported_instance_modules_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i34);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i35);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_import_status_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i37);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i38);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i36);
	}
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,7);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i41);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_modes_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i42);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_need_qual_flag_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i43);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_insert_4_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i45);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_modes_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,12)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i48);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,13)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i49);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i50);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i252);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,252)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	if (MR_RTAGS_TESTR(MR_r1,3,7)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i52);
	}
	MR_sv(5) = MR_r2;
	MR_r1 = MR_tfield(0, MR_tfield(3, MR_r1, 1), 1);
	MR_np_call_localret_ent(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i53);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i55);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(set__init_1_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i56);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i60);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_import_status_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i62);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i63);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i61);
	}
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,8);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i66);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_types_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i67);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_impl_types_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i68);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_need_qual_flag_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i69);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_insert_4_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i71);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_insert_4_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i72);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_types_3_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i73);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_impl_types_3_0);
	}
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_import_status_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i77);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i78);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_item_3_0_i76);
	}
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,109)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,8);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i81);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_classes_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i82);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_need_qual_flag_2_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i83);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_insert_4_0,
		parse_tree__module_qual__collect_mq_info_item_3_0_i85);
MR_def_label(parse_tree__module_qual__collect_mq_info_item_3_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_classes_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(parse_tree__module_qual_module33)
	MR_init_entry1(parse_tree__module_qual__collect_mq_info_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__collect_mq_info_3_0);
	MR_init_label4(parse_tree__module_qual__collect_mq_info_3_0,20,3,4,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_mq_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__collect_mq_info_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
MR_def_label(parse_tree__module_qual__collect_mq_info_3_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_3_0_i3);
	}
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
MR_def_label(parse_tree__module_qual__collect_mq_info_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_r3 = MR_tempr1;
	if (MR_PTAG_TESTR(MR_tempr1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_3_0_i4);
	}
	MR_tempr2 = MR_tfield(0, MR_tfield(2, MR_tempr1, 0), 0);
	if (MR_LTAGS_TESTR(MR_tempr2,0,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_3_0_i4);
	}
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__collect_mq_info_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r3;
	MR_np_call_localret_ent(parse_tree__module_qual__collect_mq_info_item_3_0,
		parse_tree__module_qual__collect_mq_info_3_0_i7);
MR_def_label(parse_tree__module_qual__collect_mq_info_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(2);
	MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_3_0_i20);
	}
#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(parse_tree__module_qual_module34)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_recompilation_info_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_recompilation_info_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_recompilation_info'/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__parse_tree__module_qual__mq_info_get_recompilation_info_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 19);
	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(parse_tree__module_qual_module35)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_recompilation_info_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_recompilation_info_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_recompilation_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__parse_tree__module_qual__mq_info_set_recompilation_info_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_r1;
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module36)
	MR_init_entry1(fn__parse_tree__module_qual__id_to_sym_name_and_arity_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__parse_tree__module_qual__id_to_sym_name_and_arity_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'id_to_sym_name_and_arity'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__parse_tree__module_qual__id_to_sym_name_and_arity_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	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(parse_tree__module_qual_module37)
	MR_init_entry1(fn__parse_tree__module_qual__wrap_id_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__parse_tree__module_qual__wrap_id_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'wrap_id'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__parse_tree__module_qual__wrap_id_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_util__adjust_func_arity_3_0);
MR_decl_entry(fn__parse_tree__prog_out__pred_or_func_to_full_str_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module38)
	MR_init_entry1(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0);
	MR_init_label10(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,3,6,9,12,17,15,22,20,27,25)
	MR_init_label10(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,30,41,39,46,44,49,59,61,58,190)
	MR_init_label2(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,75,77)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_error_context_to_pieces'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,4,9);
	MR_proceed();
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i6);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,4,10);
	MR_proceed();
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i9);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,4,11);
	MR_proceed();
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i12);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,4,12);
	MR_proceed();
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i15);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,6,4);
	MR_r1 = MR_tfield(2, MR_r1, 0);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__wrap_id_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i17);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,17)
	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_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_r2;
	MR_decr_sp_and_return(4);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i20);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,6,5);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__wrap_id_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i22);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,22)
	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_tbmkword(0, 0);
	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_tempr1;
	MR_decr_sp_and_return(4);
	}
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i25);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,6,6);
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__wrap_id_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i27);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,27)
	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_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_r2;
	MR_decr_sp_and_return(4);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i30);
	}
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_r2, 0) = MR_tfield(3, MR_r1, 2);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_tfield(3, MR_r1, 1);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(3,6,8);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_r2;
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Word) MR_TAG_COMMON(3,6,7);
	MR_tfield(1, MR_r1, 1) = MR_tempr2;
	MR_proceed();
	}
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i39);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,6,9);
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__wrap_id_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i41);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,41)
	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_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_r2;
	MR_decr_sp_and_return(4);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i44);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,6,10);
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__wrap_id_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i46);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,46)
	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_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_r2;
	MR_decr_sp_and_return(4);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i49);
	}
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_r2, 1) = MR_tfield(3, MR_r1, 1);
	{
	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_Word) MR_TAG_COMMON(1,4,13);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(3,6,12);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Word) MR_TAG_COMMON(3,6,11);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	MR_proceed();
	}
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i58);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 0);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_util__adjust_func_arity_3_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i59);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(3,6,14);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_out__pred_or_func_to_full_str_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i61);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,61)
	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_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	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_r2;
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(3);
	MR_tfield(1, MR_r1, 1) = MR_tempr2;
	MR_decr_sp_and_return(4);
	}
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(3, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i190);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tempr2 = MR_tfield(3, MR_r1, 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Word) MR_TAG_COMMON(3,6,15);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	MR_proceed();
	}
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,190)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 2);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(1, MR_r3, 0);
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_util__adjust_func_arity_3_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i75);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(3,6,15);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_out__pred_or_func_to_full_str_1_0,
		fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0_i77);
MR_def_label(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(3);
	MR_tfield(1, MR_r1, 1) = MR_tempr3;
	MR_decr_sp_and_return(4);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module39)
	MR_init_entry1(parse_tree__module_qual__id_type_to_string_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__id_type_to_string_2_0);
	MR_init_label3(parse_tree__module_qual__id_type_to_string_2_0,3,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'id_type_to_string'/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(parse_tree__module_qual__id_type_to_string_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_type_to_string_2_0_i3);
	}
	MR_r1 = (MR_Word) MR_string_const("typeclass", 9);
	MR_proceed();
MR_def_label(parse_tree__module_qual__id_type_to_string_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_type_to_string_2_0_i4);
	}
	MR_r1 = (MR_Word) MR_string_const("inst", 4);
	MR_proceed();
MR_def_label(parse_tree__module_qual__id_type_to_string_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_type_to_string_2_0_i5);
	}
	MR_r1 = (MR_Word) MR_string_const("mode", 4);
	MR_proceed();
MR_def_label(parse_tree__module_qual__id_type_to_string_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("type", 4);
	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(parse_tree__module_qual_module40)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_error_context_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_error_context_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_error_context'/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(parse_tree__module_qual__mq_info_get_error_context_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 16);
	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

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_format_component_0;
MR_decl_entry(set__member_2_0);
MR_decl_entry(__Unify___mdbcomp__prim_data__sym_name_0_0);
MR_decl_entry(fn__list__map_2_0);
MR_decl_entry(fn__parse_tree__error_util__component_list_to_pieces_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module41)
	MR_init_entry1(parse_tree__module_qual__report_undefined_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__report_undefined_6_0);
	MR_init_label10(parse_tree__module_qual__report_undefined_6_0,2,3,6,10,20,21,25,27,30,22)
	MR_init_label8(parse_tree__module_qual__report_undefined_6_0,23,39,41,44,49,54,55,57)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'report_undefined'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__report_undefined_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(6) = MR_r5;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_error_context_2_0,
		parse_tree__module_qual__report_undefined_6_0_i2);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_tfield(0, MR_r1, 0);
	MR_sv(5) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__module_qual__id_type_to_string_2_0,
		parse_tree__module_qual__report_undefined_6_0_i3);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(1,4,14);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,
		parse_tree__module_qual__report_undefined_6_0_i6);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(10), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(10), 0) = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_sv(8) = (MR_Word) MR_TAG_COMMON(3,6,17);
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(3,6,18);
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__id_to_sym_name_and_arity_1_0,
		parse_tree__module_qual__report_undefined_6_0_i10);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_TAG_COMMON(1,4,16);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(10);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(9);
	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_Word) MR_tbmkword(0, 1);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_sv(8);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr1;
	MR_sv(8) = (MR_Word) MR_TAG_COMMON(1,4,15);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__report_undefined_6_0_i20);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,20)
	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(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__report_undefined_6_0_i21);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_sv(3), 0);
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__report_undefined_6_0_i23);
	}
	MR_sv(3) = MR_r1;
	MR_sv(4) = MR_tfield(1, MR_r2, 0);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_imported_modules_2_0,
		parse_tree__module_qual__report_undefined_6_0_i25);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__member_2_0,
		parse_tree__module_qual__report_undefined_6_0_i27);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(parse_tree__module_qual__report_undefined_6_0_i22);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tfield(0, MR_sv(2), 17);
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		parse_tree__module_qual__report_undefined_6_0_i30);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(parse_tree__module_qual__report_undefined_6_0_i22);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(4);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = (MR_Word) MR_TAG_COMMON(3,6,21);
	MR_tfield(1, MR_tempr2, 1) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = (MR_Word) MR_TAG_COMMON(3,6,20);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_r2 = MR_sv(3);
	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,
		parse_tree__module_qual__report_undefined_6_0_i57);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__report_undefined_6_0_i39);
	}
	MR_r2 = MR_r1;
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	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,
		parse_tree__module_qual__report_undefined_6_0_i57);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	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(parse_tree__module_qual__report_undefined_6_0_i41);
	}
	MR_r4 = MR_tempr2;
	MR_sv(3) = MR_r1;
	MR_sv(1) = (MR_Word) MR_string_const("module", 6);
	MR_sv(2) = (MR_Word) MR_string_const("has", 3);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		parse_tree__module_qual__report_undefined_6_0_i44);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_sv(3) = MR_r1;
	MR_sv(1) = (MR_Word) MR_string_const("modules", 7);
	MR_sv(2) = (MR_Word) MR_string_const("have", 4);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,6);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_np_call_localret_ent(fn__list__map_2_0,
		parse_tree__module_qual__report_undefined_6_0_i44);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = (MR_Word) MR_TAG_COMMON(3,6,22);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__component_list_to_pieces_1_0,
		parse_tree__module_qual__report_undefined_6_0_i49);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = (MR_Word) MR_TAG_COMMON(3,6,23);
	MR_tfield(1, MR_tempr2, 1) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	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(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__report_undefined_6_0_i54);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,54)
	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,
		parse_tree__module_qual__report_undefined_6_0_i55);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_r3 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__report_undefined_6_0_i57);
MR_def_label(parse_tree__module_qual__report_undefined_6_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 1);
	MR_tfield(0, 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(6);
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module42)
	MR_init_entry1(parse_tree__module_qual__report_ambiguous_match_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__report_ambiguous_match_6_0);
	MR_init_label10(parse_tree__module_qual__report_ambiguous_match_6_0,3,5,7,2,10,13,28,29,30,31)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'report_ambiguous_match'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__report_ambiguous_match_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__report_ambiguous_match_6_0_i3);
	}
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_sv(3) = MR_r2;
	MR_sv(4) = (MR_Word) MR_string_const("typeclass", 9);
	MR_sv(5) = MR_r5;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,7);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_GOTO_LAB(parse_tree__module_qual__report_ambiguous_match_6_0_i2);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__report_ambiguous_match_6_0_i5);
	}
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_sv(3) = MR_r2;
	MR_sv(4) = (MR_Word) MR_string_const("inst", 4);
	MR_sv(5) = MR_r5;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,8);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_GOTO_LAB(parse_tree__module_qual__report_ambiguous_match_6_0_i2);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__report_ambiguous_match_6_0_i7);
	}
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_sv(3) = MR_r2;
	MR_sv(4) = (MR_Word) MR_string_const("mode", 4);
	MR_sv(5) = MR_r5;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,9);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_GOTO_LAB(parse_tree__module_qual__report_ambiguous_match_6_0_i2);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_sv(3) = MR_r2;
	MR_sv(4) = (MR_Word) MR_string_const("type", 4);
	MR_sv(5) = MR_r5;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,10);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r2;
	MR_np_call_localret_ent(fn__list__map_2_0,
		parse_tree__module_qual__report_ambiguous_match_6_0_i10);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(1,4,14);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,
		parse_tree__module_qual__report_ambiguous_match_6_0_i13);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tempr5 = MR_sv(3);
	MR_tfield(0, MR_tempr2, 0) = MR_tfield(0, MR_tempr5, 0);
	MR_tfield(0, MR_tempr2, 1) = MR_tfield(0, MR_tempr5, 1);
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_TAG_COMMON(1,4,19);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_sv(3) = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = (MR_Word) MR_TAG_COMMON(3,6,24);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,4,16);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__report_ambiguous_match_6_0_i28);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	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,
		parse_tree__module_qual__report_ambiguous_match_6_0_i29);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__report_ambiguous_match_6_0_i30);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	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,
		parse_tree__module_qual__report_ambiguous_match_6_0_i31);
MR_def_label(parse_tree__module_qual__report_ambiguous_match_6_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 1);
	MR_tfield(0, 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_Word) MR_TAG_COMMON(1,4,22);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(5);
	MR_decr_sp_and_return(8);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module43)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_report_error_flag_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_report_error_flag_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_report_error_flag'/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(parse_tree__module_qual__mq_info_get_report_error_flag_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 15);
	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(parse_tree__module_qual_module44)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_type_error_flag_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_type_error_flag_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_type_error_flag'/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(parse_tree__module_qual__mq_info_set_type_error_flag_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_r1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_r1, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_r1, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_r1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_r1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_r1, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_r1, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_r1, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_r1, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_r1, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_r1, 12);
	MR_tfield(0, MR_r2, 13) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_r1, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_r1, 15);
	MR_tfield(0, MR_r2, 16) = MR_tfield(0, MR_r1, 16);
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_r1, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_r1, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_r1, 19);
	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(parse_tree__module_qual_module45)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_error_flag_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_error_flag_3_0);
	MR_init_label3(parse_tree__module_qual__mq_info_set_error_flag_3_0,3,5,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_error_flag'/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(parse_tree__module_qual__mq_info_set_error_flag_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__mq_info_set_error_flag_3_0_i3);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_r1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_r1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_r1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_r1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_r1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_r1, 13) = (MR_Integer) 1;
	MR_tfield(0, MR_r1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_r1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_r1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_r1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_r1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_r1, 19) = MR_tfield(0, MR_r2, 19);
	MR_proceed();
MR_def_label(parse_tree__module_qual__mq_info_set_error_flag_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__mq_info_set_error_flag_3_0_i5);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_r1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_r1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_r1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_r1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_r1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_r1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_r1, 14) = (MR_Integer) 1;
	MR_tfield(0, MR_r1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_r1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_r1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_r1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_r1, 19) = MR_tfield(0, MR_r2, 19);
	MR_proceed();
MR_def_label(parse_tree__module_qual__mq_info_set_error_flag_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__mq_info_set_error_flag_3_0_i7);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_r1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_r1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_r1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_r1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_r1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_r1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_r1, 14) = (MR_Integer) 1;
	MR_tfield(0, MR_r1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_r1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_r1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_r1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_r1, 19) = MR_tfield(0, MR_r2, 19);
	MR_proceed();
MR_def_label(parse_tree__module_qual__mq_info_set_error_flag_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_type_error_flag_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(set__delete_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module46)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_module_used_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_module_used_3_0);
	MR_init_label5(parse_tree__module_qual__mq_info_set_module_used_3_0,24,3,5,8,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_module_used'/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(parse_tree__module_qual__mq_info_set_module_used_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
MR_def_label(parse_tree__module_qual__mq_info_set_module_used_3_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_tfield(0, MR_r2, 11);
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__mq_info_set_module_used_3_0_i3);
MR_def_label(parse_tree__module_qual__mq_info_set_module_used_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__mq_info_set_module_used_3_0_i2);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(0, MR_sv(2), 8);
	MR_np_call_localret_ent(set__delete_3_0,
		parse_tree__module_qual__mq_info_set_module_used_3_0_i5);
MR_def_label(parse_tree__module_qual__mq_info_set_module_used_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_tfield(0, MR_r2, 8) = MR_r1;
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr1, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr1, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr1, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr1, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr1, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr1, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr1, 15);
	MR_tfield(0, MR_r2, 16) = MR_tfield(0, MR_tempr1, 16);
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr1, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr1, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr1, 19);
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(parse_tree__module_qual__mq_info_set_module_used_3_0_i8);
	}
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
	}
MR_def_label(parse_tree__module_qual__mq_info_set_module_used_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_succip_word = MR_sv(3);
	MR_GOTO_LAB(parse_tree__module_qual__mq_info_set_module_used_3_0_i24);
MR_def_label(parse_tree__module_qual__mq_info_set_module_used_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	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(fn__mdbcomp__prim_data__unqualify_name_1_0);
MR_decl_entry(set__to_sorted_list_2_0);
MR_decl_entry(set__union_3_0);
MR_decl_entry(solutions__solutions_2_1);

MR_BEGIN_MODULE(parse_tree__module_qual_module47)
	MR_init_entry1(parse_tree__module_qual__id_set_search_sym_arity_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__id_set_search_sym_arity_5_0);
	MR_init_label8(parse_tree__module_qual__id_set_search_sym_arity_5_0,2,8,11,13,14,16,18,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'id_set_search_sym_arity'/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(parse_tree__module_qual__id_set_search_sym_arity_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		parse_tree__module_qual__id_set_search_sym_arity_5_0_i2);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		parse_tree__module_qual__id_set_search_sym_arity_5_0_i8);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_set_search_sym_arity_5_0_i3);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(parse_tree__module_qual__id_set_search_sym_arity_5_0_i11);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_tfield(0, MR_r2, 0);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(set__to_sorted_list_2_0);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(0, MR_r2, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_r2, 1);
	MR_sv(3) = MR_tfield(1, MR_tempr1, 0);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_r1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__id_set_search_sym_arity_5_0,
		parse_tree__module_qual__id_set_search_sym_arity_5_0_i13);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		parse_tree__module_qual__id_set_search_sym_arity_5_0_i14);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(0,3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2167__1_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_r1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(list__map_3_0,
		parse_tree__module_qual__id_set_search_sym_arity_5_0_i16);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,16)
	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_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr2;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(set__union_3_0,
		parse_tree__module_qual__id_set_search_sym_arity_5_0_i18);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(0,4);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r2, 3) = MR_sv(1);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(solutions__solutions_2_1);
MR_def_label(parse_tree__module_qual__id_set_search_sym_arity_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	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(list__filter_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module48)
	MR_init_entry1(parse_tree__module_qual__find_unique_match_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__find_unique_match_8_0);
	MR_init_label10(parse_tree__module_qual__find_unique_match_8_0,2,4,6,8,3,9,13,14,11,19)
	MR_init_label10(parse_tree__module_qual__find_unique_match_8_0,22,24,27,30,35,18,37,38,39,40)
	MR_init_label1(parse_tree__module_qual__find_unique_match_8_0,36)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'find_unique_match'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__find_unique_match_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_tfield(0, MR_r1, 0);
	MR_sv(5) = MR_tfield(0, MR_r1, 1);
	MR_sv(7) = MR_r4;
	MR_sv(8) = MR_r5;
	MR_r1 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_tfield(0, MR_r4, 2);
	MR_np_call_localret_ent(parse_tree__module_qual__id_set_search_sym_arity_5_0,
		parse_tree__module_qual__find_unique_match_8_0_i2);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_tfield(0, MR_sv(7), 11);
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__find_unique_match_8_0_i4);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i3);
	}
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_interface_visible_modules_2_0,
		parse_tree__module_qual__find_unique_match_8_0_i6);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(5,8);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(parse_tree__module_qual__IntroducedFrom__pred__find_unique_match__1614__1_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(list__filter_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i8);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i9);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_r1 = MR_sv(7);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i11);
	}
	MR_sv(2) = MR_sv(1);
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_report_error_flag_2_0,
		parse_tree__module_qual__find_unique_match_8_0_i13);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) 1 != (MR_Integer) MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i36);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__module_qual__report_undefined_6_0,
		parse_tree__module_qual__find_unique_match_8_0_i14);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_flag_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i40);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r2, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i18);
	}
	MR_sv(7) = MR_r1;
	MR_sv(1) = MR_tfield(1, MR_r2, 0);
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__unqualify_name_1_0,
		parse_tree__module_qual__find_unique_match_8_0_i19);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,19)
	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(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_sv(2) = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(5);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_sv(7);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_module_used_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i22);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(3),3)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i24);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Integer) 4;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i35);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(3),2)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i27);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Integer) 3;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i35);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(3),1)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i30);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Integer) 2;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i35);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i35);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(8);
	MR_decr_sp_and_return(9);
	}
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_sv(1);
	MR_sv(4) = MR_r2;
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_report_error_flag_2_0,
		parse_tree__module_qual__find_unique_match_8_0_i37);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) 1 != (MR_Integer) MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__find_unique_match_8_0_i36);
	}
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_error_context_2_0,
		parse_tree__module_qual__find_unique_match_8_0_i38);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__module_qual__report_ambiguous_match_6_0,
		parse_tree__module_qual__find_unique_match_8_0_i39);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_flag_3_0,
		parse_tree__module_qual__find_unique_match_8_0_i40);
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_decr_sp_and_return(9);
	}
MR_def_label(parse_tree__module_qual__find_unique_match_8_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module49)
	MR_init_entry1(parse_tree__module_qual__qualify_mode_list_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_mode_list_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_mode_list_6_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_mode_list'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_mode_list_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_mode_list_6_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_mode_list_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_6_0,
		parse_tree__module_qual__qualify_mode_list_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_mode_list_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_mode_list_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_mode_list_6_0,5)
	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(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0;

MR_BEGIN_MODULE(parse_tree__module_qual_module50)
	MR_init_entry1(parse_tree__module_qual__qualify_mode_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_mode_6_0);
	MR_init_label6(parse_tree__module_qual__qualify_mode_6_0,4,5,3,7,8,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_mode'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_mode_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_mode_6_0_i3);
	}
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_mode_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_mode_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_mode_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_mode_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
MR_def_label(parse_tree__module_qual__qualify_mode_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_mode_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_mode_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__qualify_mode_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_mode_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr2 = MR_sv(3);
	MR_r2 = MR_tfield(0, MR_tempr2, 6);
	MR_r3 = (MR_Integer) 1;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(4);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_mode_6_0_i10);
MR_def_label(parse_tree__module_qual__qualify_mode_6_0,10)
	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_tfield(0, MR_r1, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	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_BEGIN_MODULE(parse_tree__module_qual_module51)
	MR_init_entry1(parse_tree__module_qual__qualify_inst_list_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_inst_list_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_inst_list_6_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_inst_list'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_inst_list_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_list_6_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_inst_list_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_inst_list_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_inst_list_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_inst_list_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_inst_list_6_0,5)
	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(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module52)
	MR_init_entry1(parse_tree__module_qual__qualify_inst_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_inst_6_0);
	MR_init_label10(parse_tree__module_qual__qualify_inst_6_0,4,3,7,6,10,9,13,12,16,15)
	MR_init_label5(parse_tree__module_qual__qualify_inst_6_0,18,20,19,23,98)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_inst'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_inst_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i3);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tfield(3, MR_r1, 2);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_inst_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i6);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(2, MR_r1, 0);
	MR_r1 = MR_tfield(2, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_ho_inst_info_6_0,
		parse_tree__module_qual__qualify_inst_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 2);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i9);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tfield(3, MR_r1, 2);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_bound_inst_list_6_0,
		parse_tree__module_qual__qualify_inst_6_0_i10);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i12);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tfield(3, MR_r1, 2);
	MR_np_localcall_lab(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_inst_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i15);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_name_6_0,
		parse_tree__module_qual__qualify_inst_6_0_i16);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i18);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i19);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tfield(3, MR_r1, 2);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_ho_inst_info_6_0,
		parse_tree__module_qual__qualify_inst_6_0_i20);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TEST(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i98);
	}
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_6_0_i23);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 1);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.qualify_inst\'/6", 49);
	MR_r3 = (MR_Word) MR_string_const("compiler generated inst not expected", 36);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(parse_tree__module_qual__qualify_inst_6_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(parse_tree__module_qual_module53)
	MR_init_entry1(parse_tree__module_qual__qualify_ho_inst_info_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_ho_inst_info_6_0);
	MR_init_label2(parse_tree__module_qual__qualify_ho_inst_info_6_0,17,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_ho_inst_info'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_ho_inst_info_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_ho_inst_info_6_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_ho_inst_info_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_ho_inst_info_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_ho_inst_info_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	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(parse_tree__module_qual_module54)
	MR_init_entry1(parse_tree__module_qual__qualify_inst_name_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_inst_name_6_0);
	MR_init_label10(parse_tree__module_qual__qualify_inst_name_6_0,4,8,9,5,12,13,15,3,18,20)
	MR_init_label1(parse_tree__module_qual__qualify_inst_name_6_0,22)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_inst_name'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_inst_name_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_name_6_0_i3);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_inst_name_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_name_6_0_i5);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_sv(1), 0);
	if ((strcmp((char *) (MR_Word *) MR_tempr1, MR_string_const("", 0)) != 0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_name_6_0_i5);
	}
	MR_sv(2) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_error_context_2_0,
		parse_tree__module_qual__qualify_inst_name_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0,
		parse_tree__module_qual__qualify_inst_name_6_0_i9);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(4);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr3, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr3, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr3, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr3, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr3, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr3, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr3, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr3, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr3, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr3, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr3, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr3, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr3, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr3, 13);
	MR_tfield(0, MR_r2, 14) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr3, 15);
	MR_tfield(0, MR_r2, 16) = MR_tfield(0, MR_tempr3, 16);
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr3, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr3, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr3, 19);
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__qualify_inst_name_6_0_i12);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_insts_2_0,
		parse_tree__module_qual__qualify_inst_name_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	MR_r3 = (MR_Integer) 2;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_inst_name_6_0_i15);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_name_6_0_i18);
	}
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.qualify_inst_name\'/6", 54);
	MR_r3 = (MR_Word) MR_string_const("compiler generated inst unexpected", 34);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_name_6_0_i20);
	}
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.qualify_inst_name\'/6", 54);
	MR_r3 = (MR_Word) MR_string_const("compiler generated inst unexpected", 34);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_name_6_0_i22);
	}
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.qualify_inst_name\'/6", 54);
	MR_r3 = (MR_Word) MR_string_const("compiler generated inst unexpected", 34);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(parse_tree__module_qual__qualify_inst_name_6_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.qualify_inst_name\'/6", 54);
	MR_r3 = (MR_Word) MR_string_const("compiler generated inst unexpected", 34);
	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(parse_tree__module_qual_module55)
	MR_init_entry1(parse_tree__module_qual__qualify_bound_inst_list_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_bound_inst_list_6_0);
	MR_init_label10(parse_tree__module_qual__qualify_bound_inst_list_6_0,94,5,8,6,9,10,11,12,13,14)
	MR_init_label3(parse_tree__module_qual__qualify_bound_inst_list_6_0,15,21,23)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_bound_inst_list'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_bound_inst_list_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i94);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_r5 = MR_tempr1;
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	MR_r4 = MR_tempr2;
	if (MR_LTAGS_TESTR(MR_tempr2,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i5);
	}
	MR_sv(2) = MR_tempr2;
	MR_tempr3 = MR_r1;
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr3, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i6);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tempr3 = MR_r4;
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(1, MR_tempr3, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(1, MR_tempr3, 1);
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_tempr3;
	MR_sv(3) = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_r1 = (MR_Integer) 5;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_r2;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i9);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,7)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i10);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i11);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i12);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,11)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i13);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i14);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_bound_inst_list_6_0_i15);
	}
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r5, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(4);
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_bound_inst_list_6_0,
		parse_tree__module_qual__qualify_bound_inst_list_6_0_i23);
MR_def_label(parse_tree__module_qual__qualify_bound_inst_list_6_0,23)
	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_BEGIN_MODULE(parse_tree__module_qual_module56)
	MR_init_entry1(parse_tree__module_qual__qualify_type_list_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_list_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_type_list_6_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type_list'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_type_list_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_list_6_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_type_list_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_list_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_type_list_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_type_list_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_type_list_6_0,5)
	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(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module57)
	MR_init_entry1(parse_tree__module_qual__qualify_maybe_type_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_maybe_type_6_0);
	MR_init_label2(parse_tree__module_qual__qualify_maybe_type_6_0,16,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_maybe_type'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_maybe_type_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_maybe_type_6_0_i16);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_maybe_type_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_maybe_type_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_maybe_type_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(1);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
MR_decl_entry(fn__list__length_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module58)
	MR_init_entry1(parse_tree__module_qual__qualify_type_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_6_0);
	MR_init_label10(parse_tree__module_qual__qualify_type_6_0,6,9,13,3,15,17,18,19,14,23)
	MR_init_label8(parse_tree__module_qual__qualify_type_6_0,22,26,27,25,30,29,32,96)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_type_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i3);
	}
	MR_r4 = MR_tfield(2, MR_r1, 0);
	if (MR_INT_EQ(MR_r4,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i96);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r4,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i6);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,8,0);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_module_used_3_0,
		parse_tree__module_qual__qualify_type_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r4,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i9);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,8,1);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_module_used_3_0,
		parse_tree__module_qual__qualify_type_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,8,2);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_module_used_3_0,
		parse_tree__module_qual__qualify_type_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i14);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_r1, 0);
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_sv(5) = MR_tfield(1, MR_r1, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(fn__list__length_1_0,
		parse_tree__module_qual__qualify_type_6_0_i15);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_types_2_0,
		parse_tree__module_qual__qualify_type_6_0_i17);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,17)
	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_r3 = (MR_Integer) 0;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_type_6_0_i18);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_type_6_0_i19);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tfield(1, MR_tempr1, 2) = MR_sv(5);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TEST(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i96);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i22);
	}
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(3, MR_r1, 3);
	MR_r1 = MR_tfield(3, MR_r1, 2);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_type_6_0_i23);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tfield(3, MR_tempr1, 3) = MR_sv(2);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_6_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i25);
	}
	MR_sv(1) = MR_tfield(3, MR_r1, 2);
	MR_sv(2) = MR_tfield(3, MR_r1, 3);
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_type_6_0_i26);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_maybe_type_6_0,
		parse_tree__module_qual__qualify_type_6_0_i27);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tfield(3, MR_tempr1, 3) = MR_sv(2);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_6_0_i29);
	}
	MR_sv(1) = MR_tfield(3, MR_r1, 2);
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_localcall_lab(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_6_0_i30);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tfield(3, MR_tempr1, 2) = MR_sv(1);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_6_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(3, MR_r1, 2);
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_type_6_0_i32);
MR_def_label(parse_tree__module_qual__qualify_type_6_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tfield(3, MR_tempr1, 2) = MR_sv(1);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_6_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(parse_tree__module_qual_module59)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_error_context_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_error_context_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_error_context'/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(parse_tree__module_qual__mq_info_set_error_context_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_r1;
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module60)
	MR_init_entry1(parse_tree__module_qual__do_module_qualify_mutable_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__do_module_qualify_mutable_6_0);
	MR_init_label2(parse_tree__module_qual__do_module_qualify_mutable_6_0,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_module_qualify_mutable'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__do_module_qualify_mutable_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_tfield(0, MR_r1, 0);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = MR_tfield(0, MR_r1, 6);
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr3, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr3, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr3, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr3, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr3, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr3, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr3, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr3, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr3, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr3, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr3, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr3, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr3, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr3, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr3, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr3, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr3, 16) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr3, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr3, 19) = MR_tfield(0, MR_r2, 19);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 1);
	MR_sv(2) = MR_tfield(0, MR_r1, 2);
	MR_sv(3) = MR_tfield(0, MR_r1, 3);
	MR_sv(4) = MR_tfield(0, MR_r1, 4);
	MR_sv(5) = MR_tfield(0, MR_r1, 5);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(7) = MR_tfield(0, MR_r1, 7);
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_r2 = MR_tempr3;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__do_module_qualify_mutable_6_0_i5);
MR_def_label(parse_tree__module_qual__do_module_qualify_mutable_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__do_module_qualify_mutable_6_0_i6);
MR_def_label(parse_tree__module_qual__do_module_qualify_mutable_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(7);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(8);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module61)
	MR_init_entry1(parse_tree__module_qual__update_import_status_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__update_import_status_4_0);
	MR_init_label10(parse_tree__module_qual__update_import_status_4_0,3,5,7,9,10,12,13,14,15,16)
	MR_init_label4(parse_tree__module_qual__update_import_status_4_0,45,17,19,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'update_import_status'/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(parse_tree__module_qual__update_import_status_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i3);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_r1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_r1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_r1, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_r1, 11) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_r1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_r1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_r1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_r1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_r1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_r1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_r1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_r1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r2 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i5);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_r1 = (MR_Word) MR_tbmkword(0, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__update_import_status_4_0_i20);
MR_def_label(parse_tree__module_qual__update_import_status_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i7);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__update_import_status_4_0_i20);
MR_def_label(parse_tree__module_qual__update_import_status_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i9);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i10);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_r1 = (MR_Word) MR_tbmkword(0, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_import_status_3_0,
		parse_tree__module_qual__update_import_status_4_0_i20);
MR_def_label(parse_tree__module_qual__update_import_status_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i12);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i13);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i14);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i15);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i16);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i17);
	}
MR_def_label(parse_tree__module_qual__update_import_status_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(parse_tree__module_qual__update_import_status_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__update_import_status_4_0_i45);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(set__init_1_0,
		parse_tree__module_qual__update_import_status_4_0_i19);
MR_def_label(parse_tree__module_qual__update_import_status_4_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_unused_interface_modules_3_0,
		parse_tree__module_qual__update_import_status_4_0_i20);
MR_def_label(parse_tree__module_qual__update_import_status_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module62)
	MR_init_entry1(parse_tree__module_qual__qualify_constraint_stores_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_constraint_stores_6_0);
	MR_init_label6(parse_tree__module_qual__qualify_constraint_stores_6_0,33,9,10,4,14,15)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_constraint_stores'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_constraint_stores_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_constraint_stores_6_0_i33);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_constraint_stores_6_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_tempr1,3,12)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_constraint_stores_6_0_i4);
	}
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 5;
	MR_tempr3 = MR_tfield(3, MR_tempr1, 1);
	MR_tfield(3, MR_tempr2, 1) = MR_tfield(0, MR_tempr3, 0);
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr3, 6);
	MR_tag_alloc_heap(MR_tempr4, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr4, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr4, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr4, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr4, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr4, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr4, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr4, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr4, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr4, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr4, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr4, 10) = MR_tfield(0, MR_r2, 10);
	MR_tfield(0, MR_tempr4, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr4, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr4, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr4, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr4, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr4, 16) = MR_tempr1;
	MR_tfield(0, MR_tempr4, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr4, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr4, 19) = MR_tfield(0, MR_r2, 19);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr3, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr3, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr3, 4);
	MR_sv(6) = MR_tfield(0, MR_tempr3, 5);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(8) = MR_tfield(0, MR_tempr3, 7);
	MR_r1 = MR_tfield(0, MR_tempr3, 1);
	MR_r2 = MR_tempr4;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_constraint_stores_6_0_i9);
MR_def_label(parse_tree__module_qual__qualify_constraint_stores_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_constraint_stores_6_0_i10);
MR_def_label(parse_tree__module_qual__qualify_constraint_stores_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 12;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_r1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_constraint_stores_6_0,
		parse_tree__module_qual__qualify_constraint_stores_6_0_i15);
MR_def_label(parse_tree__module_qual__qualify_constraint_stores_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.qualify_constraint_stores\'/6", 62);
	MR_r3 = (MR_Word) MR_string_const("item is not a mutable", 21);
	MR_np_call_localret_ent(require__unexpected_3_0,
		parse_tree__module_qual__qualify_constraint_stores_6_0_i14);
MR_def_label(parse_tree__module_qual__qualify_constraint_stores_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_localcall_lab(parse_tree__module_qual__qualify_constraint_stores_6_0,
		parse_tree__module_qual__qualify_constraint_stores_6_0_i15);
MR_def_label(parse_tree__module_qual__qualify_constraint_stores_6_0,15)
	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(9);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module63)
	MR_init_entry1(parse_tree__module_qual__qualify_constructor_arg_list_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_constructor_arg_list_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_constructor_arg_list_6_0,18,4,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_constructor_arg_list'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_constructor_arg_list_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_constructor_arg_list_6_0_i18);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_constructor_arg_list_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_sv(2) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_sv(1), 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_constructor_arg_list_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_constructor_arg_list_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tempr2 = MR_sv(1);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(2);
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_constructor_arg_list_6_0,
		parse_tree__module_qual__qualify_constructor_arg_list_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_constructor_arg_list_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_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(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(parse_tree__module_qual_module64)
	MR_init_entry1(parse_tree__module_qual__qualify_class_name_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_class_name_6_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_class_name'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_class_name_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_tfield(0, MR_r2, 7);
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Integer) 3;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr2;
	MR_np_tailcall_ent(parse_tree__module_qual__find_unique_match_8_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(parse_tree__module_qual_module65)
	MR_init_entry1(parse_tree__module_qual__qualify_prog_constraint_list_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_prog_constraint_list_6_0);
	MR_init_label5(parse_tree__module_qual__qualify_prog_constraint_list_6_0,21,4,6,7,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_prog_constraint_list'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_prog_constraint_list_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_prog_constraint_list_6_0_i21);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_prog_constraint_list_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__qualify_prog_constraint_list_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_prog_constraint_list_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr2 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_tempr2, 7);
	MR_r3 = (MR_Integer) 3;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(2);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_prog_constraint_list_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_prog_constraint_list_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_prog_constraint_list_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_prog_constraint_list_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(3);
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__qualify_prog_constraint_list_6_0_i9);
MR_def_label(parse_tree__module_qual__qualify_prog_constraint_list_6_0,9)
	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(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(parse_tree__module_qual_module66)
	MR_init_entry1(parse_tree__module_qual__qualify_constructors_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_constructors_6_0);
	MR_init_label4(parse_tree__module_qual__qualify_constructors_6_0,19,4,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_constructors'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_constructors_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_constructors_6_0_i19);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_constructors_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 4);
	MR_r1 = MR_tfield(0, MR_tempr1, 3);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_constructor_arg_list_6_0,
		parse_tree__module_qual__qualify_constructors_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_constructors_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_localcall_lab(parse_tree__module_qual__qualify_constructors_6_0,
		parse_tree__module_qual__qualify_constructors_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_constructors_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__qualify_constructors_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_constructors_6_0,6)
	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_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_tfield(1, MR_r1, 1) = MR_sv(1);
	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_BEGIN_MODULE(parse_tree__module_qual_module67)
	MR_init_entry1(parse_tree__module_qual__qualify_type_defn_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_defn_6_0);
	MR_init_label9(parse_tree__module_qual__qualify_type_defn_6_0,5,4,8,7,11,12,13,14,34)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type_defn'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_type_defn_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TEST(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_defn_6_0_i34);
	}
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_defn_6_0_i4);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	MR_sv(2) = MR_tfield(0, MR_r1, 2);
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_constructors_6_0,
		parse_tree__module_qual__qualify_type_defn_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_defn_6_0_i7);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_defn_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TEST(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_defn_6_0_i34);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 4);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_defn_6_0_i11);
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_type_defn_6_0_i12);
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_type_defn_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_constraint_stores_6_0,
		parse_tree__module_qual__qualify_type_defn_6_0_i14);
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,14)
	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_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tfield(3, MR_r1, 2) = MR_sv(1);
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_defn_6_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(parse_tree__module_qual_module68)
	MR_init_entry1(parse_tree__module_qual__qualify_inst_defn_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_inst_defn_6_0);
	MR_init_label2(parse_tree__module_qual__qualify_inst_defn_6_0,16,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_inst_defn'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_inst_defn_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_inst_defn_6_0_i16);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_inst_defn_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_inst_defn_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_inst_defn_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(1);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module69)
	MR_init_entry1(parse_tree__module_qual__qualify_mode_defn_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_mode_defn_6_0);
	MR_init_label6(parse_tree__module_qual__qualify_mode_defn_6_0,4,5,3,7,8,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_mode_defn'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_mode_defn_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_mode_defn_6_0_i3);
	}
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_mode_defn_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_mode_defn_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_mode_defn_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_mode_defn_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
MR_def_label(parse_tree__module_qual__qualify_mode_defn_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_mode_defn_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_mode_defn_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__qualify_mode_defn_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_mode_defn_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr2 = MR_sv(3);
	MR_r2 = MR_tfield(0, MR_tempr2, 6);
	MR_r3 = (MR_Integer) 1;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(4);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_mode_defn_6_0_i10);
MR_def_label(parse_tree__module_qual__qualify_mode_defn_6_0,10)
	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_tfield(0, MR_r1, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	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_BEGIN_MODULE(parse_tree__module_qual_module70)
	MR_init_entry1(parse_tree__module_qual__qualify_type_and_mode_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_and_mode_6_0);
	MR_init_label9(parse_tree__module_qual__qualify_type_and_mode_6_0,4,7,8,6,11,12,14,3,17)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type_and_mode'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_type_and_mode_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_and_mode_6_0_i3);
	}
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_and_mode_6_0_i6);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	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_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(1, MR_tempr1, 0);
	MR_r1 = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i11);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i12);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr2 = MR_sv(4);
	MR_r2 = MR_tfield(0, MR_tempr2, 6);
	MR_r3 = (MR_Integer) 1;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(5);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i14);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,14)
	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_tfield(0, MR_r1, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(3);
	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_tempr1;
	MR_decr_sp_and_return(6);
	}
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_and_mode_6_0_i17);
MR_def_label(parse_tree__module_qual__qualify_type_and_mode_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	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(parse_tree__module_qual_module71)
	MR_init_entry1(parse_tree__module_qual__qualify_types_and_modes_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_types_and_modes_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_types_and_modes_6_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_types_and_modes'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_types_and_modes_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_types_and_modes_6_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_types_and_modes_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_and_mode_6_0,
		parse_tree__module_qual__qualify_types_and_modes_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_types_and_modes_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_types_and_modes_6_0,
		parse_tree__module_qual__qualify_types_and_modes_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_types_and_modes_6_0,5)
	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(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module72)
	MR_init_entry1(parse_tree__module_qual__qualify_type_ctor_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_ctor_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_type_ctor_6_0,2,11,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type_ctor'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_type_ctor_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	MR_r4 = MR_tfield(0, MR_r1, 0);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 1);
	if (MR_INT_NE(MR_tempr1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_ctor_6_0_i2);
	}
	MR_tempr1 = MR_tfield(0, MR_r1, 0);
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_ctor_6_0_i2);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	if ((strcmp((char *) (MR_Word *) MR_tempr2, MR_string_const("int", 3)) == 0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_ctor_6_0_i13);
	}
	if ((strcmp((char *) (MR_Word *) MR_tempr2, MR_string_const("float", 5)) == 0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_ctor_6_0_i13);
	}
	if ((strcmp((char *) (MR_Word *) MR_tempr2, MR_string_const("string", 6)) == 0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_ctor_6_0_i13);
	}
	if ((strcmp((char *) (MR_Word *) MR_tempr2, MR_string_const("character", 9)) == 0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_ctor_6_0_i13);
	}
	}
MR_def_label(parse_tree__module_qual__qualify_type_ctor_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r4;
	MR_tfield(0, MR_r1, 1) = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_tfield(0, MR_r2, 3);
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_type_ctor_6_0_i11);
MR_def_label(parse_tree__module_qual__qualify_type_ctor_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_r1 = MR_tempr1;
	}
MR_def_label(parse_tree__module_qual__qualify_type_ctor_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module73)
	MR_init_entry1(parse_tree__module_qual__qualify_pragma_vars_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_pragma_vars_6_0);
	MR_init_label8(parse_tree__module_qual__qualify_pragma_vars_6_0,34,6,7,5,10,11,13,16)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_pragma_vars'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_pragma_vars_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_vars_6_0_i34);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_r5 = MR_tempr1;
	MR_tempr2 = MR_tfield(0, MR_tempr1, 2);
	MR_r4 = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_vars_6_0_i5);
	}
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_6_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr2, 2) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 3) = MR_sv(3);
	MR_r1 = MR_sv(4);
	MR_sv(1) = MR_tempr2;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_pragma_vars_6_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i16);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r5;
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_tempr2 = MR_r4;
	MR_sv(5) = MR_tfield(1, MR_tempr2, 0);
	MR_r1 = MR_tfield(1, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_list_6_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i10);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_sv(8) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i11);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr2 = MR_sv(7);
	MR_r2 = MR_tfield(0, MR_tempr2, 6);
	MR_r3 = (MR_Integer) 1;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(8);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__find_unique_match_8_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i13);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,13)
	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_tfield(0, MR_r1, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(6);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr2, 2) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 3) = MR_sv(3);
	MR_r1 = MR_sv(4);
	MR_sv(1) = MR_tempr2;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_pragma_vars_6_0,
		parse_tree__module_qual__qualify_pragma_vars_6_0_i16);
MR_def_label(parse_tree__module_qual__qualify_pragma_vars_6_0,16)
	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(9);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module74)
	MR_init_entry1(parse_tree__module_qual__qualify_type_spec_subst_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_spec_subst_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_type_spec_subst_6_0,18,4,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type_spec_subst'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_type_spec_subst_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_type_spec_subst_6_0_i18);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_type_spec_subst_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__qualify_type_spec_subst_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_type_spec_subst_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(2);
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_type_spec_subst_6_0,
		parse_tree__module_qual__qualify_type_spec_subst_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_type_spec_subst_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_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(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(parse_tree__module_qual_module75)
	MR_init_entry1(parse_tree__module_qual__qualify_user_sharing_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_user_sharing_6_0);
	MR_init_label2(parse_tree__module_qual__qualify_user_sharing_6_0,6,19)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_user_sharing'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_user_sharing_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_user_sharing_6_0_i19);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r1, 1);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_user_sharing_6_0_i19);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_tempr2 = MR_tfield(1, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__qualify_user_sharing_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_user_sharing_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	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_tempr2;
	MR_decr_sp_and_return(3);
	}
MR_def_label(parse_tree__module_qual__qualify_user_sharing_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(fn__parse_tree__prog_data__get_user_annotated_sharing_1_0);
MR_decl_entry(parse_tree__prog_data__set_user_annotated_sharing_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module76)
	MR_init_entry1(parse_tree__module_qual__qualify_pragma_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_pragma_6_0);
	MR_init_label10(parse_tree__module_qual__qualify_pragma_6_0,4,5,6,7,3,11,9,14,13,18)
	MR_init_label10(parse_tree__module_qual__qualify_pragma_6_0,16,21,20,24,23,137,30,26,34,33)
	MR_init_label6(parse_tree__module_qual__qualify_pragma_6_0,37,36,41,42,44,141)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_pragma'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_pragma_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i3);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(2, MR_r1, 0);
	MR_sv(2) = MR_tfield(2, MR_r1, 1);
	MR_sv(3) = MR_tfield(2, MR_r1, 2);
	MR_sv(4) = MR_tfield(2, MR_r1, 4);
	MR_sv(5) = MR_tfield(2, MR_r1, 5);
	MR_sv(6) = MR_tfield(2, MR_r1, 6);
	MR_r1 = MR_tfield(2, MR_r1, 3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_pragma_vars_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_sv(9) = MR_r3;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__parse_tree__prog_data__get_user_annotated_sharing_1_0,
		parse_tree__module_qual__qualify_pragma_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_user_sharing_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i6);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_sv(8) = MR_r3;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__set_user_annotated_sharing_3_0,
		parse_tree__module_qual__qualify_pragma_6_0_i7);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 7);
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tfield(2, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(2, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 3) = MR_sv(7);
	MR_tfield(2, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(2, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(2, MR_tempr1, 6) = MR_sv(6);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(8);
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i9);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(3, MR_r1, 2);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(3, MR_r1, 3);
	MR_sv(1) = MR_tfield(3, MR_r1, 4);
	MR_sv(2) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_ctor_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i11);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 2) = MR_tfield(0, MR_r1, 0);
	MR_tfield(3, MR_tempr1, 3) = MR_tfield(0, MR_r1, 1);
	MR_tfield(3, MR_tempr1, 4) = MR_sv(1);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i13);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 5);
	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_tfield(3, MR_r1, 4);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i14);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 6);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 4) = MR_r1;
	MR_tfield(3, MR_tempr1, 5) = MR_sv(1);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i16);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(3, MR_r1, 2);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(3, MR_r1, 3);
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(3, MR_r1, 4);
	MR_sv(3) = MR_tfield(3, MR_r1, 5);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_ctor_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i18);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 6);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_tfield(0, MR_r1, 0);
	MR_tfield(3, MR_tempr1, 3) = MR_tfield(0, MR_r1, 1);
	MR_tfield(3, MR_tempr1, 4) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 5) = MR_sv(3);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,27)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i20);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 6);
	MR_sv(2) = MR_tfield(3, MR_r1, 1);
	MR_sv(3) = MR_tfield(3, MR_r1, 4);
	MR_sv(4) = MR_tfield(3, MR_r1, 2);
	MR_sv(5) = MR_tfield(3, MR_r1, 5);
	MR_r1 = MR_tfield(3, MR_r1, 3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i21);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 7);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 27;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tfield(3, MR_tempr1, 4) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(3, MR_tempr1, 6) = MR_sv(1);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,26)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i23);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 5);
	MR_sv(2) = MR_tfield(3, MR_r1, 6);
	MR_sv(3) = MR_tfield(3, MR_r1, 1);
	MR_sv(4) = MR_tfield(3, MR_r1, 4);
	MR_sv(5) = MR_tfield(3, MR_r1, 2);
	MR_r1 = MR_tfield(3, MR_r1, 3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i24);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 7);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 26;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(5);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tfield(3, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 5) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 6) = MR_sv(2);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,14)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i26);
	}
	MR_r4 = MR_tfield(3, MR_r1, 5);
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i137);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 7);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 14;
	MR_tfield(3, MR_tempr1, 1) = MR_tfield(3, MR_r1, 1);
	MR_tfield(3, MR_tempr1, 2) = MR_tfield(3, MR_r1, 2);
	MR_tfield(3, MR_tempr1, 3) = MR_tfield(3, MR_r1, 3);
	MR_tfield(3, MR_tempr1, 4) = MR_tfield(3, MR_r1, 4);
	MR_tfield(3, MR_tempr1, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 6) = MR_tfield(3, MR_r1, 6);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,137)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(3, MR_r1, 3);
	MR_sv(3) = MR_tfield(3, MR_r1, 2);
	MR_sv(4) = MR_tfield(3, MR_r1, 4);
	MR_sv(5) = MR_tfield(3, MR_r1, 6);
	MR_r1 = MR_tfield(1, MR_r4, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i30);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 7);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 14;
	MR_tfield(3, MR_r1, 1) = MR_sv(1);
	MR_tfield(3, MR_r1, 2) = MR_sv(3);
	MR_tfield(3, MR_r1, 3) = MR_sv(2);
	MR_tfield(3, MR_r1, 4) = MR_sv(4);
	MR_tfield(3, MR_r1, 5) = MR_tempr1;
	MR_tfield(3, MR_r1, 6) = MR_sv(5);
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,21)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i33);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 4);
	MR_sv(2) = MR_tfield(3, MR_r1, 5);
	MR_sv(3) = MR_tfield(3, MR_r1, 1);
	MR_sv(4) = MR_tfield(3, MR_r1, 2);
	MR_sv(5) = MR_tfield(3, MR_r1, 6);
	MR_r1 = MR_tfield(3, MR_r1, 3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i34);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 7);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 21;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tfield(3, MR_tempr1, 4) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 5) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 6) = MR_sv(5);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,20)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i36);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(3, MR_r1, 2);
	MR_sv(2) = MR_tfield(3, MR_r1, 4);
	MR_sv(3) = MR_tfield(3, MR_r1, 5);
	MR_sv(4) = MR_tfield(3, MR_r1, 1);
	MR_r1 = MR_tfield(3, MR_r1, 3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i37);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 6);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 20;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tfield(3, MR_tempr1, 4) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 5) = MR_sv(3);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i141);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_r4 = MR_tfield(3, MR_r1, 5);
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_pragma_6_0_i41);
	}
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(3, MR_r1, 2);
	MR_sv(3) = MR_tfield(3, MR_r1, 3);
	MR_sv(4) = MR_tfield(3, MR_r1, 4);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(3, MR_r1, 6);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 7);
	MR_sv(7) = MR_tfield(3, MR_tempr1, 8);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_spec_subst_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i44);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(3, MR_r1, 1);
	MR_sv(2) = MR_tfield(3, MR_r1, 2);
	MR_sv(3) = MR_tfield(3, MR_r1, 3);
	MR_sv(4) = MR_tfield(3, MR_r1, 4);
	MR_sv(5) = MR_tfield(3, MR_r1, 6);
	MR_sv(6) = MR_tfield(3, MR_r1, 7);
	MR_sv(7) = MR_tfield(3, MR_r1, 8);
	MR_r1 = MR_tfield(1, MR_r4, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i42);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_sv(5) = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_spec_subst_6_0,
		parse_tree__module_qual__qualify_pragma_6_0_i44);
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 9);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(3, MR_tempr1, 6) = MR_r1;
	MR_tfield(3, MR_tempr1, 7) = MR_sv(6);
	MR_tfield(3, MR_tempr1, 8) = MR_sv(7);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
MR_def_label(parse_tree__module_qual__qualify_pragma_6_0,141)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(parse_tree__module_qual_module77)
	MR_init_entry1(parse_tree__module_qual__qualify_prog_constraints_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_prog_constraints_6_0);
	MR_init_label2(parse_tree__module_qual__qualify_prog_constraints_6_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_prog_constraints'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_prog_constraints_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__qualify_prog_constraints_6_0_i2);
MR_def_label(parse_tree__module_qual__qualify_prog_constraints_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__qualify_prog_constraints_6_0_i3);
MR_def_label(parse_tree__module_qual__qualify_prog_constraints_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(maybe__map_fold2_maybe_7_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module78)
	MR_init_entry1(parse_tree__module_qual__qualify_class_method_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_class_method_6_0);
	MR_init_label7(parse_tree__module_qual__qualify_class_method_6_0,4,5,8,10,3,12,15)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_class_method'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_class_method_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_class_method_6_0_i3);
	}
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_sv(3) = MR_tfield(0, MR_r1, 2);
	MR_sv(4) = MR_tfield(0, MR_r1, 3);
	MR_sv(5) = MR_tfield(0, MR_r1, 4);
	MR_sv(6) = MR_tfield(0, MR_r1, 6);
	MR_sv(7) = MR_tfield(0, MR_r1, 7);
	MR_sv(8) = MR_tfield(0, MR_r1, 8);
	MR_sv(9) = MR_tfield(0, MR_r1, 9);
	MR_sv(10) = MR_tfield(0, MR_r1, 10);
	MR_sv(11) = MR_tfield(0, MR_r1, 11);
	MR_sv(12) = MR_tfield(0, MR_r1, 12);
	MR_r1 = MR_tfield(0, MR_r1, 5);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_types_and_modes_6_0,
		parse_tree__module_qual__qualify_class_method_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(11);
	MR_sv(11) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraints_6_0,
		parse_tree__module_qual__qualify_class_method_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_sv(13) = (MR_Word) MR_TAG_COMMON(0,4,24);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r4 = MR_sv(13);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,1,11);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr3;
	}
	MR_np_call_localret_ent(maybe__map_fold2_maybe_7_0,
		parse_tree__module_qual__qualify_class_method_6_0_i8);
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r4 = MR_sv(13);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,1,12);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr3;
	}
	MR_np_call_localret_ent(maybe__map_fold2_maybe_7_0,
		parse_tree__module_qual__qualify_class_method_6_0_i10);
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 13);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(11);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 7) = MR_r1;
	MR_tfield(0, MR_tempr1, 8) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 9) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 10) = MR_sv(10);
	MR_tfield(0, MR_tempr1, 11) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 12) = MR_sv(12);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(14);
	}
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	MR_sv(4) = MR_tfield(1, MR_r1, 2);
	MR_sv(2) = MR_tfield(1, MR_r1, 4);
	MR_sv(5) = MR_tfield(1, MR_r1, 5);
	MR_sv(6) = MR_tfield(1, MR_r1, 6);
	MR_sv(7) = MR_tfield(1, MR_r1, 7);
	MR_r1 = MR_tfield(1, MR_r1, 3);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__qualify_class_method_6_0_i12);
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,4,24);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,1,13);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr3;
	}
	MR_np_call_localret_ent(maybe__map_fold2_maybe_7_0,
		parse_tree__module_qual__qualify_class_method_6_0_i15);
MR_def_label(parse_tree__module_qual__qualify_class_method_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 8);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 3) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 4) = MR_r1;
	MR_tfield(1, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 6) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 7) = MR_sv(7);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(14);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module79)
	MR_init_entry1(parse_tree__module_qual__qualify_class_interface_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_class_interface_6_0);
	MR_init_label3(parse_tree__module_qual__qualify_class_interface_6_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_class_interface'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__qualify_class_interface_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_class_interface_6_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_class_interface_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_class_method_6_0,
		parse_tree__module_qual__qualify_class_interface_6_0_i4);
MR_def_label(parse_tree__module_qual__qualify_class_interface_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(parse_tree__module_qual__qualify_class_interface_6_0,
		parse_tree__module_qual__qualify_class_interface_6_0_i5);
MR_def_label(parse_tree__module_qual__qualify_class_interface_6_0,5)
	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(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(mdbcomp__prim_data__sym_name_get_module_name_default_3_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_instance_method_0;

MR_BEGIN_MODULE(parse_tree__module_qual_module80)
	MR_init_entry1(parse_tree__module_qual__qualify_instance_body_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_instance_body_3_0);
	MR_init_label4(parse_tree__module_qual__qualify_instance_body_3_0,3,7,9,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_instance_body'/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(parse_tree__module_qual__qualify_instance_body_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_instance_body_3_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__qualify_instance_body_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__qualify_instance_body_3_0_i5);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r2, 0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,8,3);
	MR_np_call_localret_ent(mdbcomp__prim_data__sym_name_get_module_name_default_3_0,
		parse_tree__module_qual__qualify_instance_body_3_0_i7);
MR_def_label(parse_tree__module_qual__qualify_instance_body_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(0,5);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, instance_method);
	MR_r2 = MR_r1;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(list__map_3_0,
		parse_tree__module_qual__qualify_instance_body_3_0_i9);
MR_def_label(parse_tree__module_qual__qualify_instance_body_3_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_r1 = MR_r2;
	MR_decr_sp_and_return(2);
MR_def_label(parse_tree__module_qual__qualify_instance_body_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(parse_tree__module_qual_module81)
	MR_init_entry1(parse_tree__module_qual__mq_info_set_exported_instances_flag_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_set_exported_instances_flag_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_set_exported_instances_flag'/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(parse_tree__module_qual__mq_info_set_exported_instances_flag_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 8) = MR_tfield(0, MR_r2, 8);
	MR_tfield(0, MR_tempr1, 9) = MR_tfield(0, MR_r2, 9);
	MR_tfield(0, MR_tempr1, 10) = MR_r1;
	MR_tfield(0, MR_tempr1, 11) = MR_tfield(0, MR_r2, 11);
	MR_tfield(0, MR_tempr1, 12) = MR_tfield(0, MR_r2, 12);
	MR_tfield(0, MR_tempr1, 13) = MR_tfield(0, MR_r2, 13);
	MR_tfield(0, MR_tempr1, 14) = MR_tfield(0, MR_r2, 14);
	MR_tfield(0, MR_tempr1, 15) = MR_tfield(0, MR_r2, 15);
	MR_tfield(0, MR_tempr1, 16) = MR_tfield(0, MR_r2, 16);
	MR_tfield(0, MR_tempr1, 17) = MR_tfield(0, MR_r2, 17);
	MR_tfield(0, MR_tempr1, 18) = MR_tfield(0, MR_r2, 18);
	MR_tfield(0, MR_tempr1, 19) = MR_tfield(0, MR_r2, 19);
	MR_r1 = MR_tempr1;
	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

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_type_and_mode_0;

MR_BEGIN_MODULE(parse_tree__module_qual_module82)
	MR_init_entry1(parse_tree__module_qual__module_qualify_item_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__module_qualify_item_7_0);
	MR_init_label10(parse_tree__module_qual__module_qualify_item_7_0,4,3,7,11,12,5,16,20,22,23)
	MR_init_label10(parse_tree__module_qual__module_qualify_item_7_0,25,21,27,28,29,30,15,34,38,39)
	MR_init_label10(parse_tree__module_qual__module_qualify_item_7_0,42,33,47,51,52,45,56,55,60,61)
	MR_init_label10(parse_tree__module_qual__module_qualify_item_7_0,58,65,69,70,71,74,76,64,81,85)
	MR_init_label8(parse_tree__module_qual__module_qualify_item_7_0,86,79,91,95,96,98,101,89)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'module_qualify_item'/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(parse_tree__module_qual__module_qualify_item_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i3);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(12) = MR_r3;
	MR_r1 = MR_tfield(0, MR_tfield(2, MR_r1, 0), 0);
	MR_np_call_localret_ent(parse_tree__module_qual__update_import_status_4_0,
		parse_tree__module_qual__module_qualify_item_7_0_i4);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(12);
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i5);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 6);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,7);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i7);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i11);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_inst_defn_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i12);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,9)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i15);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_sv(6) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 7);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r2 = MR_sv(2);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i16);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_sv(1) = MR_tempr1;
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i20);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_import_status_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i22);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		parse_tree__module_qual__module_qualify_item_7_0_i23);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i21);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_exported_instances_flag_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i25);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(12);
	MR_r2 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i27);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(12);
	MR_r2 = MR_sv(5);
	MR_r1 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i27);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_class_name_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i28);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_list_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i29);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r3;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_instance_body_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i30);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 9;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,5)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i33);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 7);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 8);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 6);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_sv(1);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i34);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr2, 1) = MR_sv(7);
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(4);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i38);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_list_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i39);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,4,24);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,1,14);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_tempr2;
	}
	MR_np_call_localret_ent(maybe__map_fold2_maybe_7_0,
		parse_tree__module_qual__module_qualify_item_7_0_i42);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 9);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 8) = MR_sv(5);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,3)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i45);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,7);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i47);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(5);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i51);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_defn_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i52);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(6);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,12)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i55);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(3, MR_r1, 1);
	MR_np_call_localret_ent(parse_tree__module_qual__do_module_qualify_mutable_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i56);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 12;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,6)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i58);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr2 = MR_tfield(3, MR_r1, 1);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(1) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(12) = MR_r3;
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 0);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i60);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_pragma_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i61);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,4)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i64);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 7);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 8);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 10);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 11);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 12);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 9);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 13);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 14);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, type_and_mode);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i65);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(13);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = MR_sv(4);
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(15);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i69);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_types_and_modes_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i70);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraints_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i71);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,4,24);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r4 = MR_sv(10);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,1,15);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr3;
	}
	MR_np_call_localret_ent(maybe__map_fold2_maybe_7_0,
		parse_tree__module_qual__module_qualify_item_7_0_i74);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_r4 = MR_sv(10);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,1,16);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr3;
	}
	MR_np_call_localret_ent(maybe__map_fold2_maybe_7_0,
		parse_tree__module_qual__module_qualify_item_7_0_i76);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 15);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(17);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(13);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 8) = MR_r1;
	MR_tfield(0, MR_tempr1, 9) = MR_sv(14);
	MR_tfield(0, MR_tempr1, 10) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 11) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 12) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 13) = MR_sv(15);
	MR_tfield(0, MR_tempr1, 14) = MR_sv(16);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i79);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,8);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i81);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i85);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_defn_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i86);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,8)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i89);
	}
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_sv(6) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 7);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,8);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(list__length_2_0,
		parse_tree__module_qual__module_qualify_item_7_0_i91);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_error_context_3_0,
		parse_tree__module_qual__module_qualify_item_7_0_i95);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(12);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_prog_constraint_list_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i96);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_item_7_0_i98);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 8;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_class_interface_6_0,
		parse_tree__module_qual__module_qualify_item_7_0_i101);
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr2, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr2, 3) = MR_sv(3);
	MR_tfield(0, MR_tempr2, 4) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 5) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 6) = MR_sv(6);
	MR_tfield(0, MR_tempr2, 7) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 8;
	MR_tfield(3, MR_r1, 1) = MR_tempr2;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_decr_sp_and_return(18);
	}
MR_def_label(parse_tree__module_qual__module_qualify_item_7_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	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(parse_tree__module_qual_module83)
	MR_init_entry1(parse_tree__module_qual__do_module_qualify_items_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__do_module_qualify_items_6_0);
	MR_init_label4(parse_tree__module_qual__do_module_qualify_items_6_0,27,4,6,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_module_qualify_items'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__do_module_qualify_items_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__do_module_qualify_items_6_0_i27);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(parse_tree__module_qual__do_module_qualify_items_6_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__module_qualify_item_7_0,
		parse_tree__module_qual__do_module_qualify_items_6_0_i4);
MR_def_label(parse_tree__module_qual__do_module_qualify_items_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__do_module_qualify_items_6_0_i6);
	}
	{
	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_sv(1);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_decr_sp_and_return(2);
	}
MR_def_label(parse_tree__module_qual__do_module_qualify_items_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	}
	MR_np_localcall_lab(parse_tree__module_qual__do_module_qualify_items_6_0,
		parse_tree__module_qual__do_module_qualify_items_6_0_i8);
MR_def_label(parse_tree__module_qual__do_module_qualify_items_6_0,8)
	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(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_event_attribute_0;
MR_decl_entry(list__map_foldl2_7_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module84)
	MR_init_entry1(parse_tree__module_qual__do_module_qualify_event_specs_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__do_module_qualify_event_specs_7_0);
	MR_init_label3(parse_tree__module_qual__do_module_qualify_event_specs_7_0,21,6,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_module_qualify_event_specs'/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(parse_tree__module_qual__do_module_qualify_event_specs_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__do_module_qualify_event_specs_7_0_i21);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_proceed();
MR_def_label(parse_tree__module_qual__do_module_qualify_event_specs_7_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(10,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(parse_tree__module_qual__do_module_qualify_event_attr_9_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tempr2 = MR_tfield(1, MR_r2, 0);
	MR_tempr3 = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr3, 1);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr3, 2);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(3) = MR_tfield(1, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr3, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(7) = MR_tfield(0, MR_tempr3, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, event_attribute);
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_info);
	MR_tempr4 = MR_r4;
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,4,24);
	MR_r6 = MR_tfield(0, MR_tempr3, 3);
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr4;
	}
	MR_np_call_localret_ent(list__map_foldl2_7_0,
		parse_tree__module_qual__do_module_qualify_event_specs_7_0_i6);
MR_def_label(parse_tree__module_qual__do_module_qualify_event_specs_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(7);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr2, 1) = MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_tempr4 = MR_r3;
	MR_r3 = MR_tempr3;
	MR_r4 = MR_tempr4;
	}
	MR_np_localcall_lab(parse_tree__module_qual__do_module_qualify_event_specs_7_0,
		parse_tree__module_qual__do_module_qualify_event_specs_7_0_i9);
MR_def_label(parse_tree__module_qual__do_module_qualify_event_specs_7_0,9)
	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(8);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(term__context_init_3_0);
MR_decl_entry(fn__parse_tree__error_util__choose_number_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module85)
	MR_init_entry1(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0);
	MR_init_label9(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,53,4,6,11,19,20,24,32,33)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_warn_unused_interface_imports'/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(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i53);
	}
	MR_r1 = MR_r4;
	MR_proceed();
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_np_call_localret_ent(term__context_init_3_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i4);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,17);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(fn__list__map_2_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i6);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_sv(6) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(3,6,28);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(3,6,17);
	MR_sv(8) = (MR_Word) MR_TAG_COMMON(3,6,29);
	MR_sv(11) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(2);
	MR_r4 = (MR_Word) MR_string_const("module", 6);
	MR_r5 = (MR_Word) MR_string_const("modules", 7);
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__choose_number_3_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i11);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_r2, 1) = 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(8);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(7);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(5);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__component_list_to_pieces_1_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i19);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(2);
	MR_r4 = (MR_Word) MR_string_const("is", 2);
	MR_r5 = (MR_Word) MR_string_const("are", 3);
	MR_np_call_localret_ent(fn__parse_tree__error_util__choose_number_3_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i20);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tempr1;
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(3,6,30);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(3,6,31);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_tempr2;
	MR_r4 = (MR_Word) MR_string_const("is", 2);
	MR_r5 = (MR_Word) MR_string_const("are", 3);
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__choose_number_3_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i24);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_TAG_COMMON(1,4,26);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i32);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	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,
		parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0_i33);
MR_def_label(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 1);
	MR_tfield(0, 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r2, 0) = (MR_Integer) 11;
	MR_tfield(1, MR_r2, 1) = (MR_Integer) 1;
	MR_tfield(1, MR_r2, 2) = 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(1,11,0);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(4);
	MR_decr_sp_and_return(12);
	}
#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(term__context_init_1_0);
MR_decl_entry(parse_tree__module_imports__get_implicit_dependencies_4_0);
MR_decl_entry(fn__list__append_2_0);
MR_decl_entry(set__list_to_set_2_0);
MR_decl_entry(fn__mdbcomp__prim_data__get_ancestors_1_0);
MR_decl_entry(map__init_1_0);
MR_decl_entry(libs__globals__lookup_bool_option_3_0);
MR_decl_entry(fn__recompilation__init_recompilation_info_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module86)
	MR_init_entry1(parse_tree__module_qual__init_mq_info_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__init_mq_info_5_0);
	MR_init_label10(parse_tree__module_qual__init_mq_info_5_0,2,7,8,9,10,11,12,14,18,19)
	MR_init_label2(parse_tree__module_qual__init_mq_info_5_0,21,23)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'init_mq_info'/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(parse_tree__module_qual__init_mq_info_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_np_call_localret_ent(term__context_init_1_0,
		parse_tree__module_qual__init_mq_info_5_0_i2);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(5) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(1,7,1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r1 = MR_sv(8);
	}
	MR_np_call_localret_ent(set__init_1_0,
		parse_tree__module_qual__init_mq_info_5_0_i7);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_np_call_localret_ent(set__init_1_0,
		parse_tree__module_qual__init_mq_info_5_0_i8);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	}
	MR_np_call_localret_ent(parse_tree__module_imports__get_implicit_dependencies_4_0,
		parse_tree__module_qual__init_mq_info_5_0_i9);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__list__append_2_0,
		parse_tree__module_qual__init_mq_info_5_0_i10);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__list_to_set_2_0,
		parse_tree__module_qual__init_mq_info_5_0_i11);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__get_ancestors_1_0,
		parse_tree__module_qual__init_mq_info_5_0_i12);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(4);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(set__insert_list_3_0,
		parse_tree__module_qual__init_mq_info_5_0_i14);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_np_call_localret_ent(map__init_1_0,
		parse_tree__module_qual__init_mq_info_5_0_i18);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 107;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		parse_tree__module_qual__init_mq_info_5_0_i19);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__init_mq_info_5_0_i21);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r1, 0) = MR_sv(7);
	MR_tfield(0, MR_r1, 1) = MR_sv(8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_tfield(0, MR_r1, 2) = MR_tempr1;
	MR_tfield(0, MR_r1, 3) = MR_tempr1;
	MR_tfield(0, MR_r1, 4) = MR_tempr1;
	MR_tfield(0, MR_r1, 5) = MR_tempr1;
	MR_tfield(0, MR_r1, 6) = MR_tempr1;
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_tfield(0, MR_r1, 8) = MR_sv(6);
	MR_tfield(0, MR_r1, 9) = MR_sv(1);
	MR_tfield(0, MR_r1, 10) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 11) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(0, MR_r1, 12) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 13) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 14) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 15) = MR_sv(3);
	MR_tfield(0, MR_r1, 16) = MR_sv(5);
	MR_tfield(0, MR_r1, 17) = MR_sv(4);
	MR_tfield(0, MR_r1, 18) = (MR_Integer) 1;
	MR_tfield(0, MR_r1, 19) = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(9);
	}
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__recompilation__init_recompilation_info_1_0,
		parse_tree__module_qual__init_mq_info_5_0_i23);
MR_def_label(parse_tree__module_qual__init_mq_info_5_0,23)
	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_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	MR_tfield(0, MR_r1, 0) = MR_sv(7);
	MR_tfield(0, MR_r1, 1) = MR_sv(8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_tfield(0, MR_r1, 2) = MR_tempr1;
	MR_tfield(0, MR_r1, 3) = MR_tempr1;
	MR_tfield(0, MR_r1, 4) = MR_tempr1;
	MR_tfield(0, MR_r1, 5) = MR_tempr1;
	MR_tfield(0, MR_r1, 6) = MR_tempr1;
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_tfield(0, MR_r1, 8) = MR_sv(6);
	MR_tfield(0, MR_r1, 9) = MR_sv(1);
	MR_tfield(0, MR_r1, 10) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 11) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(0, MR_r1, 12) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 13) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 14) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 15) = MR_sv(3);
	MR_tfield(0, MR_r1, 16) = MR_sv(5);
	MR_tfield(0, MR_r1, 17) = MR_sv(4);
	MR_tfield(0, MR_r1, 18) = (MR_Integer) 1;
	MR_tfield(0, MR_r1, 19) = MR_r2;
	MR_decr_sp_and_return(9);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module87)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_exported_instances_flag_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_exported_instances_flag_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_exported_instances_flag'/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(parse_tree__module_qual__mq_info_get_exported_instances_flag_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 10);
	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

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_event_spec_0;
MR_decl_entry(map__to_assoc_list_2_0);
MR_decl_entry(map__from_assoc_list_2_0);
MR_decl_entry(set__difference_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module88)
	MR_init_entry1(parse_tree__module_qual__module_qualify_items_13_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__module_qualify_items_13_0);
	MR_init_label10(parse_tree__module_qual__module_qualify_items_13_0,2,5,6,7,8,4,9,10,11,12)
	MR_init_label8(parse_tree__module_qual__module_qualify_items_13_0,13,14,16,17,18,19,20,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'module_qualify_items'/13 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__parse_tree__module_qual__module_qualify_items_13_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_r7;
	MR_sv(9) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, event_spec);
	MR_r1 = MR_sv(9);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__to_assoc_list_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i2);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_items_13_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__init_mq_info_5_0,
		parse_tree__module_qual__module_qualify_items_13_0_i5);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__collect_mq_info_3_0,
		parse_tree__module_qual__module_qualify_items_13_0_i6);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(6);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__do_module_qualify_items_6_0,
		parse_tree__module_qual__module_qualify_items_13_0_i7);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(5);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(2);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__do_module_qualify_event_specs_7_0,
		parse_tree__module_qual__module_qualify_items_13_0_i8);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(0, MR_r2, 13);
	MR_sv(4) = MR_tfield(0, MR_r2, 14);
	MR_sv(3) = MR_r3;
	MR_r3 = MR_r1;
	MR_sv(8) = MR_r2;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(map__from_assoc_list_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i21);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__init_mq_info_5_0,
		parse_tree__module_qual__module_qualify_items_13_0_i9);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__collect_mq_info_3_0,
		parse_tree__module_qual__module_qualify_items_13_0_i10);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(6);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__do_module_qualify_items_6_0,
		parse_tree__module_qual__module_qualify_items_13_0_i11);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(5);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(2);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__do_module_qualify_event_specs_7_0,
		parse_tree__module_qual__module_qualify_items_13_0_i12);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(0, MR_r2, 13);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_tfield(0, MR_r2, 14);
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(8) = MR_r2;
	MR_sv(11) = MR_r3;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_unused_interface_modules_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i13);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_exported_instances_flag_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i14);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(parse_tree__module_qual__module_qualify_items_13_0_i16);
	}
	MR_r2 = MR_sv(7);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(set__to_sorted_list_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i19);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_imported_instance_modules_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i17);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__difference_3_0,
		parse_tree__module_qual__module_qualify_items_13_0_i18);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(set__to_sorted_list_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i19);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(11);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__maybe_warn_unused_interface_imports_5_0,
		parse_tree__module_qual__module_qualify_items_13_0_i20);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(5);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(map__from_assoc_list_2_0,
		parse_tree__module_qual__module_qualify_items_13_0_i21);
MR_def_label(parse_tree__module_qual__module_qualify_items_13_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(3);
	MR_decr_sp_and_return(12);
	}
#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(parse_tree__module_qual_module89)
	MR_init_entry1(parse_tree__module_qual__qualify_lambda_mode_list_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_lambda_mode_list_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_lambda_mode_list'/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_define_entry(mercury__parse_tree__module_qual__qualify_lambda_mode_list_7_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	MR_tempr2 = MR_r3;
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr2, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr2, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr2, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr2, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr2, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr2, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr2, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr2, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr2, 15);
	MR_tfield(0, MR_r2, 16) = MR_tempr1;
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr2, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr2, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr2, 19);
	MR_r3 = MR_r4;
	MR_np_tailcall_ent(parse_tree__module_qual__qualify_mode_list_6_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module90)
	MR_init_entry1(parse_tree__module_qual__qualify_clause_mode_list_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_clause_mode_list_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_clause_mode_list'/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_define_entry(mercury__parse_tree__module_qual__qualify_clause_mode_list_7_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	MR_tempr2 = MR_r3;
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr2, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr2, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr2, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr2, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr2, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr2, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr2, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr2, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr2, 15);
	MR_tfield(0, MR_r2, 16) = MR_tempr1;
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr2, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr2, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr2, 19);
	MR_r3 = MR_r4;
	MR_np_tailcall_ent(parse_tree__module_qual__qualify_mode_list_6_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module91)
	MR_init_entry1(parse_tree__module_qual__qualify_type_qualification_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__qualify_type_qualification_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_type_qualification'/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_define_entry(mercury__parse_tree__module_qual__qualify_type_qualification_7_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 3);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	MR_tempr2 = MR_r3;
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr2, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr2, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr2, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr2, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr2, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr2, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr2, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr2, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr2, 15);
	MR_tfield(0, MR_r2, 16) = MR_tempr1;
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr2, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr2, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr2, 19);
	MR_r3 = MR_r4;
	MR_np_tailcall_ent(parse_tree__module_qual__qualify_type_6_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module92)
	MR_init_entry1(parse_tree__module_qual__mq_info_get_partial_qualifier_info_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__mq_info_get_partial_qualifier_info_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mq_info_get_partial_qualifier_info'/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__parse_tree__module_qual__mq_info_get_partial_qualifier_info_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 2);
	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(parse_tree__module_qual_module93)
	MR_init_entry1(fn__parse_tree__module_qual__get_first_module_name_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__parse_tree__module_qual__get_first_module_name_1_0);
	MR_init_label2(fn__parse_tree__module_qual__get_first_module_name_1_0,4,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_first_module_name'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__parse_tree__module_qual__get_first_module_name_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TEST(MR_r1,0)) {
		MR_GOTO_LAB(fn__parse_tree__module_qual__get_first_module_name_1_0_i2);
	}
MR_def_label(fn__parse_tree__module_qual__get_first_module_name_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_r1 = MR_tfield(1, MR_r1, 0);
	if (MR_PTAG_TESTR(MR_r1,0))
		continue;
	break; } /* end while */
MR_def_label(fn__parse_tree__module_qual__get_first_module_name_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 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(fn__mdbcomp__prim_data__add_outermost_qualifier_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module94)
	MR_init_entry1(parse_tree__module_qual__get_partial_qualifiers_2_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__get_partial_qualifiers_2_5_0);
	MR_init_label8(parse_tree__module_qual__get_partial_qualifiers_2_5_0,37,3,8,10,2,13,15,16)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_partial_qualifiers_2'/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(parse_tree__module_qual__get_partial_qualifiers_2_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__module_qual__get_first_module_name_1_0,
		parse_tree__module_qual__get_partial_qualifiers_2_5_0_i3);
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(map__search_3_0,
		parse_tree__module_qual__get_partial_qualifiers_2_5_0_i8);
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__get_partial_qualifiers_2_5_0_i2);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(set__member_2_0,
		parse_tree__module_qual__get_partial_qualifiers_2_5_0_i10);
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__get_partial_qualifiers_2_5_0_i2);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tempr2 = MR_sv(2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(4);
	MR_r2 = MR_tempr2;
	MR_sv(2) = MR_tempr1;
	MR_GOTO_LAB(parse_tree__module_qual__get_partial_qualifiers_2_5_0_i13);
	}
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_sv(4);
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(parse_tree__module_qual__get_partial_qualifiers_2_5_0_i15);
	}
	MR_r1 = MR_sv(2);
	MR_decr_sp_and_return(5);
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 0);
	MR_r1 = MR_tfield(1, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__add_outermost_qualifier_2_0,
		parse_tree__module_qual__get_partial_qualifiers_2_5_0_i16);
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_2_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(parse_tree__module_qual__get_partial_qualifiers_2_5_0_i37);
	}
#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(parse_tree__module_qual_module95)
	MR_init_entry1(parse_tree__module_qual__get_partial_qualifiers_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__get_partial_qualifiers_3_0);
	MR_init_label1(parse_tree__module_qual__get_partial_qualifiers_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_partial_qualifiers'/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__parse_tree__module_qual__get_partial_qualifiers_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__get_partial_qualifiers_3_0_i3);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_tailcall_ent(parse_tree__module_qual__get_partial_qualifiers_2_5_0);
	}
MR_def_label(parse_tree__module_qual__get_partial_qualifiers_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 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_BEGIN_MODULE(parse_tree__module_qual_module96)
	MR_init_entry1(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__collect_mq_info_qualified_symname_3_0);
	MR_init_label1(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_mq_info_qualified_symname'/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(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0_i3);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_tailcall_ent(parse_tree__module_qual__mq_info_set_module_used_3_0);
MR_def_label(parse_tree__module_qual__collect_mq_info_qualified_symname_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("parse_tree.module_qual", 22);
	MR_r2 = (MR_Word) MR_string_const("predicate \140parse_tree.module_qual.collect_mq_info_qualified_symname\'/3", 70);
	MR_r3 = (MR_Word) MR_string_const("unqualified", 11);
	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(parse_tree__module_qual_module97)
	MR_init_entry1(parse_tree__module_qual__process_assert_catch_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__process_assert_catch_3_0);
	MR_init_label7(parse_tree__module_qual__process_assert_catch_3_0,2,5,8,4,12,13,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_assert_catch'/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(parse_tree__module_qual__process_assert_catch_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		parse_tree__module_qual__process_assert_catch_3_0_i2);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_io_sym_name__try_parse_sym_name_and_args_3_0,
		parse_tree__module_qual__process_assert_catch_3_0_i5);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_catch_3_0_i4);
	}
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_catch_3_0_i3);
	}
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r3;
	MR_np_call_localret_ent(parse_tree__module_qual__term_qualified_symbols_list_2_0,
		parse_tree__module_qual__process_assert_catch_3_0_i8);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_catch_3_0_i3);
	}
	{
	MR_Word 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_r2;
	MR_r1 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_catch_3_0_i12);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__process_assert_3_0,
		parse_tree__module_qual__process_assert_catch_3_0_i12);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) 1 != (MR_Integer) MR_r2)) {
		MR_GOTO_LAB(parse_tree__module_qual__process_assert_catch_3_0_i3);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__append_3_1,
		parse_tree__module_qual__process_assert_catch_3_0_i13);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(parse_tree__module_qual__process_assert_catch_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module98)
	MR_init_entry1(parse_tree__module_qual__do_module_qualify_event_attr_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__do_module_qualify_event_attr_9_0);
	MR_init_label2(parse_tree__module_qual__do_module_qualify_event_attr_9_0,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_module_qualify_event_attr'/9 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(parse_tree__module_qual__do_module_qualify_event_attr_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tempr4 = MR_r4;
	MR_tfield(3, MR_tempr1, 2) = MR_tfield(0, MR_tempr4, 1);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_r2;
	MR_tfield(0, MR_tempr2, 1) = MR_r3;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 20);
	MR_tempr5 = MR_r5;
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr5, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr5, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr5, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr5, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr5, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr5, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr5, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr5, 7);
	MR_tfield(0, MR_r2, 8) = MR_tfield(0, MR_tempr5, 8);
	MR_tfield(0, MR_r2, 9) = MR_tfield(0, MR_tempr5, 9);
	MR_tfield(0, MR_r2, 10) = MR_tfield(0, MR_tempr5, 10);
	MR_tfield(0, MR_r2, 11) = MR_tfield(0, MR_tempr5, 11);
	MR_tfield(0, MR_r2, 12) = MR_tfield(0, MR_tempr5, 12);
	MR_tfield(0, MR_r2, 13) = MR_tfield(0, MR_tempr5, 13);
	MR_tfield(0, MR_r2, 14) = MR_tfield(0, MR_tempr5, 14);
	MR_tfield(0, MR_r2, 15) = MR_tfield(0, MR_tempr5, 15);
	MR_tfield(0, MR_r2, 16) = MR_tempr3;
	MR_tfield(0, MR_r2, 17) = MR_tfield(0, MR_tempr5, 17);
	MR_tfield(0, MR_r2, 18) = MR_tfield(0, MR_tempr5, 18);
	MR_tfield(0, MR_r2, 19) = MR_tfield(0, MR_tempr5, 19);
	MR_sv(1) = MR_tfield(0, MR_tempr4, 0);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr4, 4);
	MR_r1 = MR_tfield(0, MR_tempr4, 2);
	MR_r3 = MR_r6;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_type_6_0,
		parse_tree__module_qual__do_module_qualify_event_attr_9_0_i6);
MR_def_label(parse_tree__module_qual__do_module_qualify_event_attr_9_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_mode_6_0,
		parse_tree__module_qual__do_module_qualify_event_attr_9_0_i7);
MR_def_label(parse_tree__module_qual__do_module_qualify_event_attr_9_0,7)
	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_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(4);
	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_BEGIN_MODULE(parse_tree__module_qual_module99)
	MR_init_entry1(fn__parse_tree__module_qual__wrap_module_name_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__parse_tree__module_qual__wrap_module_name_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'wrap_module_name'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__parse_tree__module_qual__wrap_module_name_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___tree234__tree234_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module100)
	MR_init_entry1(__Unify___parse_tree__module_qual__class_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__class_id_set_0_0);
MR_BEGIN_CODE

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

MR_decl_entry(__Compare___tree234__tree234_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module101)
	MR_init_entry1(__Compare___parse_tree__module_qual__class_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__class_id_set_0_0);
MR_BEGIN_CODE

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

MR_decl_entry(__Unify___pair__pair_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module102)
	MR_init_entry1(__Unify___parse_tree__module_qual__error_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__error_context_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___parse_tree__module_qual__error_context_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(parse_tree__module_qual, mq_error_context);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, context);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___pair__pair_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___pair__pair_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module103)
	MR_init_entry1(__Compare___parse_tree__module_qual__error_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__error_context_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___parse_tree__module_qual__error_context_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(parse_tree__module_qual, mq_error_context);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, context);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___pair__pair_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module104)
	MR_init_entry1(__Unify___parse_tree__module_qual__id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module105)
	MR_init_entry1(__Compare___parse_tree__module_qual__id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module106)
	MR_init_entry1(__Unify___parse_tree__module_qual__id_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__id_type_0_0);
MR_BEGIN_CODE

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

MR_decl_entry(private_builtin__builtin_compare_int_3_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module107)
	MR_init_entry1(__Compare___parse_tree__module_qual__id_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__id_type_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___parse_tree__module_qual__id_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_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(parse_tree__module_qual_module108)
	MR_init_entry1(__Unify___parse_tree__module_qual__inst_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__inst_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module109)
	MR_init_entry1(__Compare___parse_tree__module_qual__inst_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__inst_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module110)
	MR_init_entry1(__Unify___parse_tree__module_qual__mode_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__mode_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module111)
	MR_init_entry1(__Compare___parse_tree__module_qual__mode_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__mode_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module112)
	MR_init_entry1(__Unify___parse_tree__module_qual__module_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__module_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module113)
	MR_init_entry1(__Compare___parse_tree__module_qual__module_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__module_id_set_0_0);
MR_BEGIN_CODE

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

MR_decl_entry(__Unify___maybe__maybe_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module114)
	MR_init_entry1(__Unify___parse_tree__module_qual__mq_error_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__mq_error_context_0_0);
	MR_init_label10(__Unify___parse_tree__module_qual__mq_error_context_0_0,5,6,7,8,9,13,17,21,23,27)
	MR_init_label5(__Unify___parse_tree__module_qual__mq_error_context_0_0,31,77,33,38,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___parse_tree__module_qual__mq_error_context_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i77);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i7);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,3)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i8);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i9);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i1);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i13);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i1);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,3)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i17);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_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(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,6)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i21);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr3, 1);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr4, 1);
	if ((strcmp((char *) (MR_Word *) MR_tempr1, (char *) (MR_Word *) MR_tempr2) != 0)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i1);
	}
	MR_tempr1 = MR_tfield(3, MR_tempr3, 2);
	MR_tempr2 = MR_tfield(3, MR_tempr4, 2);
	MR_r1 = (strcmp((char *) (MR_Word *) MR_tempr1, (char *) (MR_Word *) MR_tempr2) == 0);
	MR_decr_sp_and_return(3);
	}
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i23);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_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(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i27);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_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(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,5)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i31);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_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 = (strcmp((char *) (MR_Word *) MR_tempr1, (char *) (MR_Word *) MR_tempr2) == 0);
	MR_decr_sp_and_return(3);
	}
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i33);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr3, 1);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr4, 1);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_tempr3, 2);
	MR_r2 = MR_tfield(3, MR_tempr4, 2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___parse_tree__module_qual__mq_id_0_0);
	}
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_error_context_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_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, pred_or_func);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___parse_tree__module_qual__mq_error_context_0_0_i38);
MR_def_label(__Unify___parse_tree__module_qual__mq_error_context_0_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_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___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_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(private_builtin__builtin_compare_string_3_0);
MR_decl_entry(__Compare___maybe__maybe_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module115)
	MR_init_entry1(__Compare___parse_tree__module_qual__mq_error_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__mq_error_context_0_0);
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,7,8,9,10,11,12,13,14,15,16)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,17,5,21,22,23,24,25,26,27,28)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,29,30,31,19,35,36,37,38,39,40)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,41,42,43,44,45,33,49,50,51,427)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,52,53,54,55,56,57,58,59,47,63)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,64,65,66,67,69,70,71,72,73,74)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,61,78,79,80,81,82,83,85,86,87)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,88,89,76,93,94,95,96,97,98,99)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,101,102,103,104,91,108,109,110,111,112)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,113,114,117,115,122,123,124,106,128,129)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,130,131,132,133,134,135,136,138,139,126)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,143,144,145,146,147,148,149,150,151,152)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,154,141,158,159,160,161,162,163,164,165)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,166,167,168,156,173,174,175,176,177,178)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,179,180,181,182,183,186,171,192,193,194)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_error_context_0_0,195,196,197,198,199,200,201,380,202,381)
	MR_init_label3(__Compare___parse_tree__module_qual__mq_error_context_0_0,203,205,210)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___parse_tree__module_qual__mq_error_context_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i427);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp(3);
	MR_proceed();
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i8);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i9);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i10);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i11);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i12);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i13);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i14);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i16);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i17);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i19);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i21);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i22);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i23);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i24);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i25);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i26);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i27);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i28);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i29);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i30);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i31);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i33);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i35);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i36);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i37);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i38);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i39);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i40);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i41);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i42);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i43);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i44);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i45);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i47);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i49);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i50);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i51);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i52);
	}
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,427)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i53);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i54);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i55);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i56);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i57);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i58);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i59);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i61);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i63);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i64);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i65);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i66);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i67);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i69);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i70);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i71);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i72);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i73);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i74);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i380);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i76);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i78);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i79);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i80);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i81);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i82);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i83);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i85);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i86);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i87);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i88);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i89);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i380);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i91);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i93);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i94);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i95);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i96);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i97);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i98);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i99);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i101);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i102);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,102)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i103);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i104);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i106);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i108);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i109);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,109)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i110);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i111);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i112);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i113);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i114);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,114)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i115);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	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(private_builtin__builtin_compare_string_3_0,
		__Compare___parse_tree__module_qual__mq_error_context_0_0_i117);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i210);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_3_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,115)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i122);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,122)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i123);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,123)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i124);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,124)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i126);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i128);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,128)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i129);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,129)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i130);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,130)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i131);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,131)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i132);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,132)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i133);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,133)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i134);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,134)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i135);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,135)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i136);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,136)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i138);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,138)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i139);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,139)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,126)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i141);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i143);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,143)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i144);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,144)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i145);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,145)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i146);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,146)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i147);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,147)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i148);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,148)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i149);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,149)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i150);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,150)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i151);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,151)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i152);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,152)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i154);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,154)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i380);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,141)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i156);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i158);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,158)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i159);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,159)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i160);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,160)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i161);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,161)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i162);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,162)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i163);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,163)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i164);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,164)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i165);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,165)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i166);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,166)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i167);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,167)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i168);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_3_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,168)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i381);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,156)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i171);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i173);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,173)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i174);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,174)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i175);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,175)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i176);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,176)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i177);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,177)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i178);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,178)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i179);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,179)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i180);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,180)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i181);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,181)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i182);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,182)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i183);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,183)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i380);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	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(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_error_context_0_0_i186);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,186)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i210);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,171)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i192);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,192)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i193);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,193)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i194);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,194)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i195);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,195)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i196);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,196)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i197);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,197)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i198);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,198)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i199);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,199)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i200);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,200)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i201);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,201)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i202);
	}
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,380)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,202)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i203);
	}
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,381)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,203)
	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(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, pred_or_func);
	MR_r2 = MR_tfield(3, MR_tempr3, 1);
	MR_r3 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___parse_tree__module_qual__mq_error_context_0_0_i205);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,205)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_error_context_0_0_i210);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___parse_tree__module_qual__mq_id_0_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_error_context_0_0,210)
	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(parse_tree__module_qual_module116)
	MR_init_entry1(__Unify___parse_tree__module_qual__mq_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__mq_id_0_0);
	MR_init_label3(__Unify___parse_tree__module_qual__mq_id_0_0,4,6,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___parse_tree__module_qual__mq_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_id_0_0_i6);
	}
	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___mdbcomp__prim_data__sym_name_0_0,
		__Unify___parse_tree__module_qual__mq_id_0_0_i4);
MR_def_label(__Unify___parse_tree__module_qual__mq_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_id_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___parse_tree__module_qual__mq_id_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_id_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___mdbcomp__prim_data__sym_name_0_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module117)
	MR_init_entry1(__Compare___parse_tree__module_qual__mq_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__mq_id_0_0);
	MR_init_label4(__Compare___parse_tree__module_qual__mq_id_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_def_static(__Compare___parse_tree__module_qual__mq_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_id_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___parse_tree__module_qual__mq_id_0_0_i2);
MR_def_label(__Compare___parse_tree__module_qual__mq_id_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___parse_tree__module_qual__mq_id_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___mdbcomp__prim_data__sym_name_0_0,
		__Compare___parse_tree__module_qual__mq_id_0_0_i5);
MR_def_label(__Compare___parse_tree__module_qual__mq_id_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_id_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(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_id_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(parse_tree__module_qual_module118)
	MR_init_entry1(__Unify___parse_tree__module_qual__mq_import_status_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__mq_import_status_0_0);
	MR_init_label5(__Unify___parse_tree__module_qual__mq_import_status_0_0,5,6,16,7,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___parse_tree__module_qual__mq_import_status_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_import_status_0_0_i16);
	}
	{
	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___parse_tree__module_qual__mq_import_status_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(2);
	MR_proceed();
	}
MR_def_label(__Unify___parse_tree__module_qual__mq_import_status_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_import_status_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp(2);
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_import_status_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_import_status_0_0_i7);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp(2);
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_import_status_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp(2);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_import_status_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_import_status_0_0_i1);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_r1 = (MR_r1 == MR_r2);
	MR_decr_sp(2);
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_import_status_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp(2);
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module119)
	MR_init_entry1(__Unify___parse_tree__module_qual__mq_import_status_0_1);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__mq_import_status_0_1);
	MR_init_label1(__Unify___parse_tree__module_qual__mq_import_status_0_1,1)
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module120)
	MR_init_entry1(__Compare___parse_tree__module_qual__mq_import_status_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__mq_import_status_0_0);
	MR_init_label10(__Compare___parse_tree__module_qual__mq_import_status_0_0,7,8,5,12,13,10,17,18,54,15)
	MR_init_label5(__Compare___parse_tree__module_qual__mq_import_status_0_0,39,21,22,41,23)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___parse_tree__module_qual__mq_import_status_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i54);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp(3);
	MR_proceed();
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i8);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i41);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i10);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i12);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i13);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i39);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i15);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i17);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i18);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i39);
	}
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i21);
	}
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i22);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_import_status_0_0_i23);
	}
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___parse_tree__module_qual__mq_import_status_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___set_ordlist__set_ordlist_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module121)
	MR_init_entry1(__Unify___parse_tree__module_qual__mq_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__mq_info_0_0);
	MR_init_label10(__Unify___parse_tree__module_qual__mq_info_0_0,5,7,11,13,15,17,19,21,23,25)
	MR_init_label5(__Unify___parse_tree__module_qual__mq_info_0_0,27,29,31,35,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___parse_tree__module_qual__mq_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i35);
	}
	MR_incr_sp(41);
	MR_sv(41) = (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_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 7);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 8);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 9);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 10);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 11);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 12);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 13);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 14);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 15);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 16);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 17);
	MR_sv(18) = MR_tfield(0, MR_tempr1, 18);
	MR_sv(19) = MR_tfield(0, MR_tempr1, 19);
	MR_sv(20) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(21) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(22) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(23) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(24) = MR_tfield(0, MR_tempr2, 5);
	MR_sv(25) = MR_tfield(0, MR_tempr2, 6);
	MR_sv(26) = MR_tfield(0, MR_tempr2, 7);
	MR_sv(27) = MR_tfield(0, MR_tempr2, 8);
	MR_sv(28) = MR_tfield(0, MR_tempr2, 9);
	MR_sv(29) = MR_tfield(0, MR_tempr2, 10);
	MR_sv(30) = MR_tfield(0, MR_tempr2, 11);
	MR_sv(31) = MR_tfield(0, MR_tempr2, 12);
	MR_sv(32) = MR_tfield(0, MR_tempr2, 13);
	MR_sv(33) = MR_tfield(0, MR_tempr2, 14);
	MR_sv(34) = MR_tfield(0, MR_tempr2, 15);
	MR_sv(35) = MR_tfield(0, MR_tempr2, 16);
	MR_sv(36) = MR_tfield(0, MR_tempr2, 17);
	MR_sv(37) = MR_tfield(0, MR_tempr2, 18);
	MR_sv(38) = MR_tfield(0, MR_tempr2, 19);
	MR_sv(39) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_sv(40) = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r1 = MR_sv(39);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i5);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(39);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(20);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i7);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(0,3,0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(21);
	}
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i11);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(22);
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i13);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(23);
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i15);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(24);
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i17);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(25);
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i19);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(26);
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i21);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(39);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(27);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i23);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(39);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(28);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i25);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	if ((MR_sv(10) != MR_sv(29))) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(30);
	MR_np_call_localret_ent(__Unify___parse_tree__module_qual__mq_import_status_0_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i27);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	if ((MR_sv(12) != MR_sv(31))) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	if ((MR_sv(13) != MR_sv(32))) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	if ((MR_sv(14) != MR_sv(33))) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	if ((MR_sv(15) != MR_sv(34))) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_error_context);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, context);
	MR_r3 = MR_sv(16);
	MR_r4 = MR_sv(35);
	MR_np_call_localret_ent(__Unify___pair__pair_2_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i29);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = MR_sv(17);
	MR_r2 = MR_sv(36);
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		__Unify___parse_tree__module_qual__mq_info_0_0_i31);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	if ((MR_sv(18) != MR_sv(37))) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__mq_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(recompilation, recompilation_info);
	MR_r2 = MR_sv(19);
	MR_r3 = MR_sv(38);
	MR_succip_word = MR_sv(41);
	MR_decr_sp(41);
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___parse_tree__module_qual__mq_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(41);
#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___set_ordlist__set_ordlist_1_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module122)
	MR_init_entry1(__Compare___parse_tree__module_qual__mq_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__mq_info_0_0);
	MR_init_label10(__Compare___parse_tree__module_qual__mq_info_0_0,3,2,5,9,16,23,30,37,44,51)
	MR_init_label10(__Compare___parse_tree__module_qual__mq_info_0_0,55,59,63,67,71,75,79,83,87,91)
	MR_init_label2(__Compare___parse_tree__module_qual__mq_info_0_0,95,243)
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___parse_tree__module_qual__mq_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i3);
	}
	MR_incr_sp(39);
	MR_sv(39) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i2);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___parse_tree__module_qual__mq_info_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_sv(38) = MR_tfield(0, MR_tempr5, 19);
	MR_sv(37) = MR_tfield(0, MR_tempr5, 18);
	MR_sv(36) = MR_tfield(0, MR_tempr5, 17);
	MR_sv(35) = MR_tfield(0, MR_tempr5, 16);
	MR_sv(34) = MR_tfield(0, MR_tempr5, 15);
	MR_sv(33) = MR_tfield(0, MR_tempr5, 14);
	MR_sv(32) = MR_tfield(0, MR_tempr5, 13);
	MR_sv(31) = MR_tfield(0, MR_tempr5, 12);
	MR_sv(30) = MR_tfield(0, MR_tempr5, 11);
	MR_sv(29) = MR_tfield(0, MR_tempr5, 10);
	MR_sv(28) = MR_tfield(0, MR_tempr5, 9);
	MR_sv(27) = MR_tfield(0, MR_tempr5, 8);
	MR_sv(26) = MR_tfield(0, MR_tempr5, 7);
	MR_sv(25) = MR_tfield(0, MR_tempr5, 6);
	MR_sv(24) = MR_tfield(0, MR_tempr5, 5);
	MR_sv(23) = MR_tfield(0, MR_tempr5, 4);
	MR_sv(22) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(21) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(20) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(19) = MR_tfield(0, MR_tempr6, 19);
	MR_sv(18) = MR_tfield(0, MR_tempr6, 18);
	MR_sv(17) = MR_tfield(0, MR_tempr6, 17);
	MR_sv(16) = MR_tfield(0, MR_tempr6, 16);
	MR_sv(15) = MR_tfield(0, MR_tempr6, 15);
	MR_sv(14) = MR_tfield(0, MR_tempr6, 14);
	MR_sv(13) = MR_tfield(0, MR_tempr6, 13);
	MR_sv(12) = MR_tfield(0, MR_tempr6, 12);
	MR_sv(11) = MR_tfield(0, MR_tempr6, 11);
	MR_sv(10) = MR_tfield(0, MR_tempr6, 10);
	MR_sv(9) = MR_tfield(0, MR_tempr6, 9);
	MR_sv(8) = MR_tfield(0, MR_tempr6, 8);
	MR_sv(7) = MR_tfield(0, MR_tempr6, 7);
	MR_sv(6) = MR_tfield(0, MR_tempr6, 6);
	MR_sv(5) = MR_tfield(0, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	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_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i5);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(20);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i9);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(21);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i16);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(22);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i23);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(23);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i30);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(24);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i37);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(25);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i44);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(26);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i51);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(27);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i55);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(28);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i59);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(29);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i63);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(30);
	MR_np_call_localret_ent(__Compare___parse_tree__module_qual__mq_import_status_0_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i67);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(12);
	MR_r2 = MR_sv(31);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i71);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(32);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i75);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(14);
	MR_r2 = MR_sv(33);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i79);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(15);
	MR_r2 = MR_sv(34);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i83);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__module_qual, mq_error_context);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, context);
	MR_r3 = MR_sv(16);
	MR_r4 = MR_sv(35);
	MR_np_call_localret_ent(__Compare___pair__pair_2_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i87);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(17);
	MR_r2 = MR_sv(36);
	MR_np_call_localret_ent(__Compare___mdbcomp__prim_data__sym_name_0_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i91);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = MR_sv(18);
	MR_r2 = MR_sv(37);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___parse_tree__module_qual__mq_info_0_0_i95);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__mq_info_0_0_i243);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(recompilation, recompilation_info);
	MR_r2 = MR_sv(19);
	MR_r3 = MR_sv(38);
	MR_succip_word = MR_sv(39);
	MR_decr_sp(39);
	MR_np_tailcall_ent(__Compare___maybe__maybe_1_0);
MR_def_label(__Compare___parse_tree__module_qual__mq_info_0_0,243)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(39);
#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(parse_tree__module_qual_module123)
	MR_init_entry1(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_init_label1(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0,9)
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___parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0_i9);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___tree234__tree234_2_0);
MR_def_label(__Unify___parse_tree__module_qual__partial_qualifier_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	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(parse_tree__module_qual_module124)
	MR_init_entry1(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_init_label2(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0,3,2)
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___parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___parse_tree__module_qual__partial_qualifier_info_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___parse_tree__module_qual__partial_qualifier_info_0_0_i2);
MR_def_label(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___parse_tree__module_qual__partial_qualifier_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___tree234__tree234_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module125)
	MR_init_entry1(__Unify___parse_tree__module_qual__type_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___parse_tree__module_qual__type_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module126)
	MR_init_entry1(__Compare___parse_tree__module_qual__type_id_set_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___parse_tree__module_qual__type_id_set_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(parse_tree__module_qual_module127)
	MR_init_entry1(parse_tree__module_qual__IntroducedFrom__pred__process_assert__643__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__IntroducedFrom__pred__process_assert__643__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__process_assert__643__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(parse_tree__module_qual__IntroducedFrom__pred__process_assert__643__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_tempr1;
	MR_np_tailcall_ent(term__coerce_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module128)
	MR_init_entry1(parse_tree__module_qual__IntroducedFrom__pred__process_assert__631__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__IntroducedFrom__pred__process_assert__631__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__process_assert__631__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__IntroducedFrom__pred__process_assert__631__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_tempr1;
	MR_np_tailcall_ent(term__coerce_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(mdbcomp__prim_data__match_sym_name_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module129)
	MR_init_entry1(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0);
	MR_init_label3(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0,6,4,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__qualify_instance_body__1560__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(0, MR_r2, 1);
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0_i3);
	}
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 2);
	MR_sv(4) = MR_tfield(0, MR_r2, 3);
	MR_sv(5) = MR_tfield(0, MR_r2, 4);
	MR_sv(6) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(7) = MR_tfield(1, MR_tempr1, 1);
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_sv(1);
	}
	MR_np_call_localret_ent(mdbcomp__prim_data__match_sym_name_2_0,
		parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0_i6);
MR_def_label(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0_i4);
	}
	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_sv(7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_tfield(0, MR_r1, 2) = MR_sv(3);
	MR_tfield(0, MR_r1, 3) = MR_sv(4);
	MR_tfield(0, MR_r1, 4) = MR_sv(5);
	MR_decr_sp_and_return(8);
MR_def_label(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(8);
MR_def_label(parse_tree__module_qual__IntroducedFrom__pred__qualify_instance_body__1560__1_3_0,3)
	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_tfield(0, MR_r3, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tempr1;
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	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(set__contains_2_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module130)
	MR_init_entry1(parse_tree__module_qual__IntroducedFrom__pred__find_unique_match__1614__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__IntroducedFrom__pred__find_unique_match__1614__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__find_unique_match__1614__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(parse_tree__module_qual__IntroducedFrom__pred__find_unique_match__1614__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(set__contains_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(parse_tree__module_qual_module131)
	MR_init_entry1(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2167__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2167__1_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__id_set_search_sym_arity__2167__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2167__1_3_0)
	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_r2;
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	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_declare_entry(MR_do_fail);
MR_decl_entry(list__member_2_1);
MR_declare_entry(MR_do_redo);

MR_BEGIN_MODULE(parse_tree__module_qual_module132)
	MR_init_entry1(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0);
	MR_init_label2(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0,1,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__id_set_search_sym_arity__2187__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_mkframe("pred parse_tree.module_qual.IntroducedFrom__pred__id_set_search_sym_arity__2187__1/3-0", 3,
		MR_ENTRY(MR_do_fail));
	MR_fv(1) = MR_r2;
	MR_fv(3) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_fv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__member_2_1,
		parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0_i1);
MR_def_label(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_fv(2) = MR_r1;
	MR_r1 = MR_fv(3);
	MR_r2 = MR_fv(2);
	MR_r3 = MR_fv(1);
	MR_np_call_localret_ent(set__member_2_0,
		parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0_i2);
MR_def_label(parse_tree__module_qual__IntroducedFrom__pred__id_set_search_sym_arity__2187__1_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO(MR_ENTRY(MR_do_redo));
	}
	MR_r1 = MR_fv(2);
	MR_succeed();
#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(parse_tree__module_qual_module133)
	MR_init_entry1(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0);
	MR_init_label3(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0,2,11,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__report_invalid_user_inst__[1, 2]_0'/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(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(fn__parse_tree__module_qual__mq_error_context_to_pieces_1_0,
		f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0_i2);
MR_def_label(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(1,4,14);
	{
	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,4,29);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0_i11);
MR_def_label(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0,11)
	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,
		f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0_i12);
MR_def_label(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_112_111_114_116_95_105_110_118_97_108_105_100_95_117_115_101_114_95_105_110_115_116_95_95_91_49_44_32_50_93_95_48_5_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 1);
	MR_tfield(0, 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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_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_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(4);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(recompilation__record_used_item_5_0);

MR_BEGIN_MODULE(parse_tree__module_qual_module134)
	MR_init_entry1(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0);
	MR_init_label2(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,14,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__update_recompilation_info__ho1__[4]_0'/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(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_r5 = MR_tfield(0, MR_tempr1, 19);
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0_i14);
	}
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
MR_def_label(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r4;
	MR_r4 = MR_tfield(1, MR_r5, 0);
	MR_np_call_localret_ent(recompilation__record_used_item_5_0,
		f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0_i4);
MR_def_label(f_112_97_114_115_101_95_116_114_101_101_95_95_109_111_100_117_108_101_95_113_117_97_108_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_117_112_100_97_116_101_95_114_101_99_111_109_112_105_108_97_116_105_111_110_95_105_110_102_111_95_95_104_111_49_95_95_91_52_93_95_48_3_0,4)
	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_tag_alloc_heap(MR_r1, 0, (MR_Integer) 20);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r1, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_tfield(0, MR_r1, 8) = MR_tfield(0, MR_tempr1, 8);
	MR_tfield(0, MR_r1, 9) = MR_tfield(0, MR_tempr1, 9);
	MR_tfield(0, MR_r1, 10) = MR_tfield(0, MR_tempr1, 10);
	MR_tfield(0, MR_r1, 11) = MR_tfield(0, MR_tempr1, 11);
	MR_tfield(0, MR_r1, 12) = MR_tfield(0, MR_tempr1, 12);
	MR_tfield(0, MR_r1, 13) = MR_tfield(0, MR_tempr1, 13);
	MR_tfield(0, MR_r1, 14) = MR_tfield(0, MR_tempr1, 14);
	MR_tfield(0, MR_r1, 15) = MR_tfield(0, MR_tempr1, 15);
	MR_tfield(0, MR_r1, 16) = MR_tfield(0, MR_tempr1, 16);
	MR_tfield(0, MR_r1, 17) = MR_tfield(0, MR_tempr1, 17);
	MR_tfield(0, MR_r1, 18) = MR_tfield(0, MR_tempr1, 18);
	MR_tfield(0, MR_r1, 19) = MR_r2;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

static void mercury__parse_tree__module_qual_maybe_bunch_0(void)
{
	parse_tree__module_qual_module0();
	parse_tree__module_qual_module1();
	parse_tree__module_qual_module2();
	parse_tree__module_qual_module3();
	parse_tree__module_qual_module4();
	parse_tree__module_qual_module5();
	parse_tree__module_qual_module6();
	parse_tree__module_qual_module7();
	parse_tree__module_qual_module8();
	parse_tree__module_qual_module9();
	parse_tree__module_qual_module10();
	parse_tree__module_qual_module11();
	parse_tree__module_qual_module12();
	parse_tree__module_qual_module13();
	parse_tree__module_qual_module14();
	parse_tree__module_qual_module15();
	parse_tree__module_qual_module16();
	parse_tree__module_qual_module17();
	parse_tree__module_qual_module18();
	parse_tree__module_qual_module19();
	parse_tree__module_qual_module20();
	parse_tree__module_qual_module21();
	parse_tree__module_qual_module22();
	parse_tree__module_qual_module23();
	parse_tree__module_qual_module24();
	parse_tree__module_qual_module25();
	parse_tree__module_qual_module26();
	parse_tree__module_qual_module27();
	parse_tree__module_qual_module28();
	parse_tree__module_qual_module29();
	parse_tree__module_qual_module30();
	parse_tree__module_qual_module31();
	parse_tree__module_qual_module32();
	parse_tree__module_qual_module33();
	parse_tree__module_qual_module34();
	parse_tree__module_qual_module35();
	parse_tree__module_qual_module36();
	parse_tree__module_qual_module37();
	parse_tree__module_qual_module38();
	parse_tree__module_qual_module39();
}

static void mercury__parse_tree__module_qual_maybe_bunch_1(void)
{
	parse_tree__module_qual_module40();
	parse_tree__module_qual_module41();
	parse_tree__module_qual_module42();
	parse_tree__module_qual_module43();
	parse_tree__module_qual_module44();
	parse_tree__module_qual_module45();
	parse_tree__module_qual_module46();
	parse_tree__module_qual_module47();
	parse_tree__module_qual_module48();
	parse_tree__module_qual_module49();
	parse_tree__module_qual_module50();
	parse_tree__module_qual_module51();
	parse_tree__module_qual_module52();
	parse_tree__module_qual_module53();
	parse_tree__module_qual_module54();
	parse_tree__module_qual_module55();
	parse_tree__module_qual_module56();
	parse_tree__module_qual_module57();
	parse_tree__module_qual_module58();
	parse_tree__module_qual_module59();
	parse_tree__module_qual_module60();
	parse_tree__module_qual_module61();
	parse_tree__module_qual_module62();
	parse_tree__module_qual_module63();
	parse_tree__module_qual_module64();
	parse_tree__module_qual_module65();
	parse_tree__module_qual_module66();
	parse_tree__module_qual_module67();
	parse_tree__module_qual_module68();
	parse_tree__module_qual_module69();
	parse_tree__module_qual_module70();
	parse_tree__module_qual_module71();
	parse_tree__module_qual_module72();
	parse_tree__module_qual_module73();
	parse_tree__module_qual_module74();
	parse_tree__module_qual_module75();
	parse_tree__module_qual_module76();
	parse_tree__module_qual_module77();
	parse_tree__module_qual_module78();
	parse_tree__module_qual_module79();
}

static void mercury__parse_tree__module_qual_maybe_bunch_2(void)
{
	parse_tree__module_qual_module80();
	parse_tree__module_qual_module81();
	parse_tree__module_qual_module82();
	parse_tree__module_qual_module83();
	parse_tree__module_qual_module84();
	parse_tree__module_qual_module85();
	parse_tree__module_qual_module86();
	parse_tree__module_qual_module87();
	parse_tree__module_qual_module88();
	parse_tree__module_qual_module89();
	parse_tree__module_qual_module90();
	parse_tree__module_qual_module91();
	parse_tree__module_qual_module92();
	parse_tree__module_qual_module93();
	parse_tree__module_qual_module94();
	parse_tree__module_qual_module95();
	parse_tree__module_qual_module96();
	parse_tree__module_qual_module97();
	parse_tree__module_qual_module98();
	parse_tree__module_qual_module99();
	parse_tree__module_qual_module100();
	parse_tree__module_qual_module101();
	parse_tree__module_qual_module102();
	parse_tree__module_qual_module103();
	parse_tree__module_qual_module104();
	parse_tree__module_qual_module105();
	parse_tree__module_qual_module106();
	parse_tree__module_qual_module107();
	parse_tree__module_qual_module108();
	parse_tree__module_qual_module109();
	parse_tree__module_qual_module110();
	parse_tree__module_qual_module111();
	parse_tree__module_qual_module112();
	parse_tree__module_qual_module113();
	parse_tree__module_qual_module114();
	parse_tree__module_qual_module115();
	parse_tree__module_qual_module116();
	parse_tree__module_qual_module117();
	parse_tree__module_qual_module118();
	parse_tree__module_qual_module119();
}

static void mercury__parse_tree__module_qual_maybe_bunch_3(void)
{
	parse_tree__module_qual_module120();
	parse_tree__module_qual_module121();
	parse_tree__module_qual_module122();
	parse_tree__module_qual_module123();
	parse_tree__module_qual_module124();
	parse_tree__module_qual_module125();
	parse_tree__module_qual_module126();
	parse_tree__module_qual_module127();
	parse_tree__module_qual_module128();
	parse_tree__module_qual_module129();
	parse_tree__module_qual_module130();
	parse_tree__module_qual_module131();
	parse_tree__module_qual_module132();
	parse_tree__module_qual_module133();
	parse_tree__module_qual_module134();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__parse_tree__module_qual__init(void);
void mercury__parse_tree__module_qual__init_type_tables(void);
void mercury__parse_tree__module_qual__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__parse_tree__module_qual__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__parse_tree__module_qual__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__parse_tree__module_qual__init_threadscope_string_table(void);
#endif

void mercury__parse_tree__module_qual__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__parse_tree__module_qual_maybe_bunch_0();
	mercury__parse_tree__module_qual_maybe_bunch_1();
	mercury__parse_tree__module_qual_maybe_bunch_2();
	mercury__parse_tree__module_qual_maybe_bunch_3();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_class_id_set_0,
		parse_tree__module_qual__class_id_set_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_error_context_0,
		parse_tree__module_qual__error_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_id_set_0,
		parse_tree__module_qual__id_set_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_id_type_0,
		parse_tree__module_qual__id_type_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_inst_id_set_0,
		parse_tree__module_qual__inst_id_set_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_mode_id_set_0,
		parse_tree__module_qual__mode_id_set_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_module_id_set_0,
		parse_tree__module_qual__module_id_set_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_mq_error_context_0,
		parse_tree__module_qual__mq_error_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0,
		parse_tree__module_qual__mq_id_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_mq_import_status_0,
		parse_tree__module_qual__mq_import_status_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_mq_info_0,
		parse_tree__module_qual__mq_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_partial_qualifier_info_0,
		parse_tree__module_qual__partial_qualifier_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_parse_tree__module_qual__type_ctor_info_type_id_set_0,
		parse_tree__module_qual__type_id_set_0_0);
	mercury__parse_tree__module_qual__init_debugger();
}

void mercury__parse_tree__module_qual__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_class_id_set_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_error_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_id_set_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_id_type_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_inst_id_set_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_mode_id_set_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_module_id_set_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_mq_error_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_mq_id_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_mq_import_status_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_mq_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_partial_qualifier_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_parse_tree__module_qual__type_ctor_info_type_id_set_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__parse_tree__module_qual__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__parse_tree__module_qual);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__parse_tree__module_qual__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__parse_tree__module_qual__init_threadscope_string_table(void)
{
}

#endif

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