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

#define MR_ALLOW_RESET
#include "mercury_imp.h"
#line 25 "top_level.mercury_compile.c"
#include "top_level.mercury_compile.mh"

#line 28 "top_level.mercury_compile.c"
#line 526 "../library/io.int"
#include "io.mh"

#line 32 "top_level.mercury_compile.c"
#line 536 "../library/io.int"
#include "time.mh"

#line 36 "top_level.mercury_compile.c"
#line 537 "../library/io.int"
#include "string.mh"

#line 40 "top_level.mercury_compile.c"
#line 102 "make.util.int"
#include "make.util.mh"

#line 44 "top_level.mercury_compile.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 48 "top_level.mercury_compile.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 52 "top_level.mercury_compile.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 56 "top_level.mercury_compile.c"
#line 57 "top_level.mercury_compile.c"
#ifndef TOP_LEVEL__MERCURY_COMPILE_DECL_GUARD
#define TOP_LEVEL__MERCURY_COMPILE_DECL_GUARD

#line 61 "top_level.mercury_compile.c"
#line 62 "top_level.mercury_compile.c"

#endif
#line 65 "top_level.mercury_compile.c"

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

struct mercury_type_0 {
	MR_Word * f1;
};
MR_STATIC_LINKAGE const struct mercury_type_0 mercury_common_0[];

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

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

struct mercury_type_3 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[7];
};
MR_STATIC_LINKAGE const struct mercury_type_3 mercury_common_3[];

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

struct mercury_type_5 {
	MR_Integer f1;
};
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_Integer f2;
	MR_Word * f3[4];
};
MR_STATIC_LINKAGE const struct mercury_type_7 mercury_common_7[];

struct mercury_type_8 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[13];
};
MR_STATIC_LINKAGE const struct mercury_type_8 mercury_common_8[];

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

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

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

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

struct mercury_type_13 {
	MR_Integer f1;
	MR_Word * f2;
};
MR_STATIC_LINKAGE const struct mercury_type_13 mercury_common_13[];

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

struct mercury_type_15 {
	MR_String f1;
};
MR_STATIC_LINKAGE const struct mercury_type_15 mercury_common_15[];

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

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

extern const MR_TypeCtorInfo_Struct
	mercury_data_top_level__mercury_compile__type_ctor_info_compile_0,
	mercury_data_top_level__mercury_compile__type_ctor_info_file_or_module_0;
MR_decl_label8(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0, 2,5,8,7,11,4,17,20)
MR_decl_label9(top_level__mercury_compile__compile_13_0, 2,5,3,7,8,9,10,12,13)
MR_decl_label4(top_level__mercury_compile__compile_all_submodules_13_0, 7,8,10,11)
MR_decl_label10(top_level__mercury_compile__compile_using_gcc_backend_9_0, 4,3,2,9,11,12,13,14,16,17)
MR_decl_label10(top_level__mercury_compile__compile_using_gcc_backend_9_0, 22,24,25,19,26,27,31,32,33,35)
MR_decl_label1(top_level__mercury_compile__compile_using_gcc_backend_9_0, 28)
MR_decl_label2(top_level__mercury_compile__compile_with_module_options__ho1_8_0, 2,4)
MR_decl_label2(top_level__mercury_compile__compile_with_module_options__ho2_8_0, 2,4)
MR_decl_label10(top_level__mercury_compile__do_rename_file_6_0, 2,3,4,5,6,7,8,9,10,12)
MR_decl_label10(top_level__mercury_compile__do_rename_file_6_0, 14,15,16,17,18,19,20,21,24,25)
MR_decl_label10(top_level__mercury_compile__do_rename_file_6_0, 26,27,28,29,30,31,33,35,36,37)
MR_decl_label7(top_level__mercury_compile__do_rename_file_6_0, 44,23,46,47,48,59,60)
MR_decl_label10(top_level__mercury_compile__expand_at_file_arguments_4_0, 63,3,6,8,11,12,10,15,18,19)
MR_decl_label8(top_level__mercury_compile__expand_at_file_arguments_4_0, 20,21,22,17,66,5,26,67)
MR_decl_label9(top_level__mercury_compile__expand_equiv_types_17_0, 2,3,4,5,6,7,8,9,10)
MR_decl_label7(top_level__mercury_compile__expand_file_into_arg_list_4_0, 2,4,6,8,11,12,3)
MR_decl_label7(top_level__mercury_compile__find_smart_recompilation_target_files_3_0, 2,4,6,8,10,12,14)
MR_decl_label9(top_level__mercury_compile__find_timestamp_files_3_0, 2,3,7,5,10,12,14,16,18)
MR_decl_label4(top_level__mercury_compile__find_timestamp_files_2_8_0, 7,2,3,9)
MR_decl_label2(top_level__mercury_compile__halt_at_module_error_2_0, 8,1)
MR_decl_label9(top_level__mercury_compile__invoke_module_qualify_items_16_0, 2,3,4,5,7,8,9,10,11)
MR_decl_label10(top_level__mercury_compile__main_after_setup_7_0, 2,3,4,5,6,7,8,9,10,11)
MR_decl_label10(top_level__mercury_compile__main_after_setup_7_0, 12,13,14,15,16,17,20,21,18,26)
MR_decl_label10(top_level__mercury_compile__main_after_setup_7_0, 27,28,24,32,33,30,38,39,36,44)
MR_decl_label10(top_level__mercury_compile__main_after_setup_7_0, 45,46,42,50,51,48,56,57,54,62)
MR_decl_label10(top_level__mercury_compile__main_after_setup_7_0, 63,64,60,68,66,72,70,74,79,81)
MR_decl_label10(top_level__mercury_compile__main_after_setup_7_0, 86,94,77,96,99,103,104,110,111,113)
MR_decl_label8(top_level__mercury_compile__main_after_setup_7_0, 112,105,119,120,166,124,127,144)
MR_decl_label1(top_level__mercury_compile__main_for_make_4_0, 2)
MR_decl_label10(top_level__mercury_compile__make_hlds_18_0, 2,3,4,6,7,8,9,10,13,18)
MR_decl_label5(top_level__mercury_compile__make_hlds_18_0, 12,19,20,21,22)
MR_decl_label10(top_level__mercury_compile__maybe_grab_optfiles_8_0, 2,3,4,5,6,7,11,13,10,17)
MR_decl_label10(top_level__mercury_compile__maybe_grab_optfiles_8_0, 18,19,20,9,21,26,27,67,29,25)
MR_decl_label6(top_level__mercury_compile__maybe_grab_optfiles_8_0, 22,49,52,56,57,60)
MR_decl_label10(top_level__mercury_compile__maybe_output_prof_call_graph_6_0, 2,3,4,8,7,11,12,13,14,15)
MR_decl_label10(top_level__mercury_compile__maybe_output_prof_call_graph_6_0, 18,19,20,17,21,22,23,24,25,26)
MR_decl_label1(top_level__mercury_compile__maybe_output_prof_call_graph_6_0, 6)
MR_decl_label10(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0, 2,4,5,6,7,9,10,11,12,13)
MR_decl_label2(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0, 14,15)
MR_decl_label7(top_level__mercury_compile__maybe_report_cmd_line_5_0, 4,5,6,7,8,9,18)
MR_decl_label10(top_level__mercury_compile__maybe_write_dependency_graph_6_0, 2,3,21,5,6,7,8,9,12,13)
MR_decl_label6(top_level__mercury_compile__maybe_write_dependency_graph_6_0, 11,15,16,17,18,19)
MR_decl_label10(top_level__mercury_compile__mercury_compile_11_0, 2,3,4,5,6,7,12,14,15,16)
MR_decl_label10(top_level__mercury_compile__mercury_compile_11_0, 17,18,19,20,21,25,27,29,30,23)
MR_decl_label10(top_level__mercury_compile__mercury_compile_11_0, 64,32,34,39,40,37,41,44,45,8)
MR_decl_label2(top_level__mercury_compile__mercury_compile_11_0, 9,52)
MR_decl_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0, 2,3,4,5,6,7,8,9,10,11)
MR_decl_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0, 12,13,19,18,22,21,25,28,29,30)
MR_decl_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0, 31,27,24,35,36,39,40,42,34,44)
MR_decl_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0, 45,48,49,97,53,54,47,59,60,58)
MR_decl_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0, 61,62,65,66,67,68,69,70,71,56)
MR_decl_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0, 73,74,75,76,77,78,80,14,81,82)
MR_decl_label9(top_level__mercury_compile__mercury_compile_asm_c_code_5_0, 2,3,4,5,6,7,8,9,10)
MR_decl_label10(top_level__mercury_compile__pre_hlds_pass_15_0, 2,3,4,5,6,7,8,11,10,9)
MR_decl_label10(top_level__mercury_compile__pre_hlds_pass_15_0, 12,13,14,15,18,16,19,20,21,23)
MR_decl_label10(top_level__mercury_compile__pre_hlds_pass_15_0, 24,25,26,27,28,29,31,36,37,38)
MR_decl_label10(top_level__mercury_compile__pre_hlds_pass_15_0, 41,42,43,59,45,40,39,49,53,48)
MR_decl_label10(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0, 2,3,4,6,7,8,9,10,11,12)
MR_decl_label10(top_level__mercury_compile__process_all_args_8_0, 3,5,6,12,9,14,15,52,20,24)
MR_decl_label6(top_level__mercury_compile__process_all_args_8_0, 25,26,16,28,27,32)
MR_decl_label10(top_level__mercury_compile__process_arg_8_0, 3,2,6,8,9,14,13,21,42,23)
MR_decl_label7(top_level__mercury_compile__process_arg_8_0, 11,24,27,29,32,26,36)
MR_decl_label10(top_level__mercury_compile__process_arg_list_10_0, 20,3,4,6,7,5,8,9,10,11)
MR_decl_label9(top_level__mercury_compile__process_args_8_0, 2,5,6,4,8,9,10,11,12)
MR_decl_label9(top_level__mercury_compile__process_args_callback_7_0, 2,5,6,4,8,9,10,11,12)
MR_decl_label10(top_level__mercury_compile__process_module_8_0, 2,3,4,5,6,7,10,14,21,23)
MR_decl_label10(top_level__mercury_compile__process_module_8_0, 24,27,25,29,30,31,32,9,40,41)
MR_decl_label10(top_level__mercury_compile__process_module_8_0, 42,45,44,47,37,50,51,53,55,52)
MR_decl_label10(top_level__mercury_compile__process_module_8_0, 56,60,58,63,62,61,64,65,66,67)
MR_decl_label4(top_level__mercury_compile__process_module_8_0, 57,99,72,75)
MR_decl_label10(top_level__mercury_compile__process_module_2_9_0, 2,3,4,5,6,7,14,17,16,19)
MR_decl_label10(top_level__mercury_compile__process_module_2_9_0, 20,23,22,26,21,27,29,34,35,36)
MR_decl_label9(top_level__mercury_compile__process_module_2_9_0, 37,38,40,43,44,42,48,49,39)
MR_decl_label1(top_level__mercury_compile__process_module_2_callback_8_0, 2)
MR_decl_label10(top_level__mercury_compile__process_stdin_arg_list_9_0, 32,3,6,7,23,9,11,12,13,10)
MR_decl_label6(top_level__mercury_compile__process_stdin_arg_list_9_0, 15,16,17,18,19,20)
MR_decl_label10(top_level__mercury_compile__read_module_or_file_14_0, 4,5,6,7,8,10,14,9,15,16)
MR_decl_label10(top_level__mercury_compile__read_module_or_file_14_0, 18,20,17,21,27,29,86,31,53,23)
MR_decl_label10(top_level__mercury_compile__read_module_or_file_14_0, 57,58,59,60,3,61,62,63,64,65)
MR_decl_label10(top_level__mercury_compile__read_module_or_file_14_0, 67,71,66,72,73,75,77,78,79,80)
MR_decl_label8(top_level__mercury_compile__real_main_2_0, 2,3,4,5,8,9,10,7)
MR_decl_label10(top_level__mercury_compile__real_main_after_expansion_3_0, 7,9,10,6,12,13,15,16,17,18)
MR_decl_label10(top_level__mercury_compile__real_main_after_expansion_3_0, 19,2,24,25,26,28,31,33,36,37)
MR_decl_label10(top_level__mercury_compile__real_main_after_expansion_3_0, 40,43,42,45,47,39,50,51,38,73)
MR_decl_label4(top_level__mercury_compile__real_main_after_expansion_3_0, 53,55,56,58)
MR_decl_label4(top_level__mercury_compile__usual_find_target_files_8_0, 7,2,3,9)
MR_decl_label1(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0, 3)
MR_decl_label3(__Unify___top_level__mercury_compile__file_or_module_0_0, 14,5,1)
MR_decl_label5(__Compare___top_level__mercury_compile__file_or_module_0_0, 3,2,7,5,10)
MR_decl_static(top_level__mercury_compile__expand_file_into_arg_list_4_0)
MR_decl_static(top_level__mercury_compile__expand_at_file_arguments_4_0)
MR_decl_static(top_level__mercury_compile__maybe_report_cmd_line_5_0)
MR_decl_static(top_level__mercury_compile__do_rename_file_6_0)
MR_decl_static(top_level__mercury_compile__compile_using_gcc_backend_9_0)
MR_decl_static(top_level__mercury_compile__read_module_or_file_14_0)
MR_decl_static(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0)
MR_decl_static(top_level__mercury_compile__compile_all_submodules_13_0)
MR_decl_static(top_level__mercury_compile__halt_at_module_error_2_0)
MR_decl_static(top_level__mercury_compile__find_timestamp_files_3_0)
MR_decl_static(top_level__mercury_compile__process_module_2_9_0)
MR_decl_static(top_level__mercury_compile__find_smart_recompilation_target_files_3_0)
MR_decl_static(top_level__mercury_compile__process_module_8_0)
MR_decl_static(top_level__mercury_compile__process_arg_8_0)
MR_decl_static(top_level__mercury_compile__process_stdin_arg_list_9_0)
MR_decl_static(top_level__mercury_compile__process_arg_list_10_0)
MR_decl_static(top_level__mercury_compile__process_args_8_0)
MR_decl_static(top_level__mercury_compile__process_all_args_8_0)
MR_decl_static(top_level__mercury_compile__main_after_setup_7_0)
MR_decl_static(top_level__mercury_compile__real_main_after_expansion_3_0)
MR_decl_static(top_level__mercury_compile__gc_init_2_0)
MR_def_extern_entry(top_level__mercury_compile__real_main_2_0)
MR_def_extern_entry(top_level__mercury_compile__main_for_make_4_0)
MR_decl_static(top_level__mercury_compile__process_args_callback_7_0)
MR_decl_static(top_level__mercury_compile__process_arg_build_10_0)
MR_decl_static(top_level__mercury_compile__apply_process_module_7_0)
MR_decl_static(top_level__mercury_compile__process_module_2_callback_8_0)
MR_decl_static(top_level__mercury_compile__call_make_interface_7_0)
MR_decl_static(top_level__mercury_compile__call_make_short_interface_7_0)
MR_decl_static(top_level__mercury_compile__call_make_private_interface_7_0)
MR_decl_static(top_level__mercury_compile__module_to_link_2_0)
MR_decl_static(top_level__mercury_compile__usual_find_target_files_8_0)
MR_decl_static(top_level__mercury_compile__find_timestamp_files_2_8_0)
MR_decl_static(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0)
MR_decl_static(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0)
MR_decl_static(top_level__mercury_compile__mercury_compile_asm_c_code_5_0)
MR_decl_static(top_level__mercury_compile__maybe_output_prof_call_graph_6_0)
MR_decl_static(top_level__mercury_compile__mercury_compile_after_front_end_11_0)
MR_decl_static(top_level__mercury_compile__invoke_module_qualify_items_16_0)
MR_decl_static(top_level__mercury_compile__maybe_grab_optfiles_8_0)
MR_decl_static(top_level__mercury_compile__expand_equiv_types_17_0)
MR_decl_static(top_level__mercury_compile__make_hlds_18_0)
MR_decl_static(top_level__mercury_compile__pre_hlds_pass_15_0)
MR_decl_static(top_level__mercury_compile__maybe_write_dependency_graph_6_0)
MR_decl_static(top_level__mercury_compile__mercury_compile_11_0)
MR_decl_static(top_level__mercury_compile__compile_13_0)
MR_decl_static(__Unify___top_level__mercury_compile__compile_0_0)
MR_decl_static(__Compare___top_level__mercury_compile__compile_0_0)
MR_decl_static(__Unify___top_level__mercury_compile__file_or_module_0_0)
MR_decl_static(__Compare___top_level__mercury_compile__file_or_module_0_0)
MR_decl_static(top_level__mercury_compile__IntroducedFrom__pred__process_module_2__1281__1_2_0)
MR_decl_static(top_level__mercury_compile__IntroducedFrom__pred__compile_with_module_options__1404__1_8_0)
MR_decl_static(top_level__mercury_compile__compile_with_module_options__ho1_8_0)
MR_decl_static(top_level__mercury_compile__compile_with_module_options__ho2_8_0)
MR_decl_static(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0)
MR_decl_static(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_97_108_108_95_109_97_107_101_95_115_104_111_114_116_95_105_110_116_101_114_102_97_99_101_95_95_91_51_44_32_52_93_95_48_7_0)
MR_decl_static(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_73_110_116_114_111_100_117_99_101_100_70_114_111_109_95_95_112_114_101_100_95_95_99_111_109_112_105_108_101_95_119_105_116_104_95_109_111_100_117_108_101_95_111_112_116_105_111_110_115_95_95_49_52_48_52_95_95_49_95_95_91_51_93_95_48_8_0)

static const struct mercury_type_0 mercury_common_0[1] =
{
{
MR_tbmkword(0, 0)
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_maybe__type_ctor_info_maybe_1;
extern const MR_TypeCtorInfo_Struct mercury_data_libs__timestamp__type_ctor_info_timestamp_0;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_item__type_ctor_info_item_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__prog_item__type_ctor_info_item_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_error_spec_0;
static const struct mercury_type_1 mercury_common_1[22] =
{
{
{
MR_LIST_CTOR_ADDR,
MR_STRING_CTOR_ADDR
}
},
{
{
MR_tbmkword(0, 1),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,6),
MR_TAG_COMMON(1,1,1)
}
},
{
{
MR_TAG_COMMON(3,6,5),
MR_TAG_COMMON(1,1,2)
}
},
{
{
MR_TAG_COMMON(3,6,4),
MR_TAG_COMMON(1,1,3)
}
},
{
{
MR_tbmkword(0, 1),
MR_TAG_COMMON(1,1,4)
}
},
{
{
MR_TAG_COMMON(3,6,3),
MR_TAG_COMMON(1,1,5)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_CTOR0_ADDR(libs__timestamp, timestamp)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_STRING_CTOR_ADDR
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_item, item)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_STRING_CTOR_ADDR
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__error_util, error_spec)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_item, item)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__error_util, error_spec)
}
},
{
{
MR_TAG_COMMON(3,6,7),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,8),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,3),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,6,13),
MR_TAG_COMMON(1,1,1)
}
},
{
{
MR_tbmkword(0, 1),
MR_TAG_COMMON(1,1,18)
}
},
{
{
MR_TAG_COMMON(3,6,3),
MR_TAG_COMMON(1,1,19)
}
},
{
{
MR_tbmkword(0, 0),
MR_tbmkword(0, 0)
}
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_tuple_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_tuple_0;
static const struct mercury_type_2 mercury_common_2[2] =
{
{
MR_CTOR0_ADDR(builtin, tuple),
2,
MR_TAG_COMMON(0,1,0),
MR_TAG_COMMON(0,1,0)
},
{
MR_CTOR0_ADDR(builtin, tuple),
2,
MR_COMMON(1,9),
MR_COMMON(1,9)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_using_gcc_backend_9_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_io__type_ctor_info_output_stream_0;
extern const MR_TypeCtorInfo_Struct mercury_data_backend_libs__compile_target_code__type_ctor_info_pic_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_libs__globals__type_ctor_info_globals_0;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
extern const MR_TypeCtorInfo_Struct mercury_data_io__type_ctor_info_state_0;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_3;
static const struct mercury_type_3 mercury_common_3[6] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__compile_using_gcc_backend_9_0_1,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_CTOR0_ADDR(io, output_stream),
MR_CTOR0_ADDR(backend_libs__compile_target_code, pic),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(libs__globals, globals),
MR_BOOL_CTOR_ADDR,
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_1,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,8),
MR_COMMON(4,3),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_2,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,8),
MR_COMMON(4,3),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_3,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,8),
MR_COMMON(4,3),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_2,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_COMMON(4,5),
MR_COMMON(1,11),
MR_COMMON(1,11),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(2,1),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_3,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_COMMON(4,5),
MR_COMMON(1,11),
MR_COMMON(1,11),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(2,1),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__read_modules__type_ctor_info_have_read_module_0;
extern const MR_TypeCtorInfo_Struct mercury_data_make__options_file__type_ctor_info_options_variable_value_0;
static const struct mercury_type_4 mercury_common_4[6] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_STRING_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_STRING_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_COMMON(4,1),
MR_CTOR0_ADDR(parse_tree__read_modules, have_read_module)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,10)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_TAG_COMMON(0,1,13)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(make__options_file, options_variable_value)
}
},
};

static const struct mercury_type_5 mercury_common_5[1] =
{
{
0
},
};

static const struct mercury_type_6 mercury_common_6[14] =
{
{
4,
MR_string_const("Warning:", 8)
},
{
4,
MR_string_const("module name does not match file name: ", 38)
},
{
4,
MR_string_const("contains module", 15)
},
{
3,
MR_string_const(".", 1)
},
{
4,
MR_string_const("Smart recompilation will not work unless", 40)
},
{
4,
MR_string_const("a module name to file name mapping is created", 45)
},
{
4,
MR_string_const("using \140mmc -f *.m\'.", 19)
},
{
4,
MR_string_const("Sorry, not implemented: \140--target asm\' with \140--filenames-from-stdin", 67)
},
{
4,
MR_string_const("Sorry, not implemented: \140--target asm\' with \140--smart-recompilation\' with more than one module to compile.", 105)
},
{
4,
MR_string_const("Sorry,", 6)
},
{
4,
MR_string_const("is not yet supported with target language", 41)
},
{
4,
MR_string_const("Warning: cannot read trans-opt dependencies", 43)
},
{
4,
MR_string_const("for module", 10)
},
{
4,
MR_string_const("You need to remake the dependencies.", 36)
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_pred_0;
extern const MR_TypeCtorInfo_Struct mercury_data_io__type_ctor_info_state_0;
extern const MR_TypeCtorInfo_Struct mercury_data_libs__globals__type_ctor_info_globals_0;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
static const struct mercury_type_7 mercury_common_7[2] =
{
{
MR_CTOR0_ADDR(builtin, pred),
4,
{
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,9),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
MR_CTOR0_ADDR(builtin, pred),
4,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_BOOL_CTOR_ADDR,
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_all_submodules_13_0_1;
static const struct mercury_type_8 mercury_common_8[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__compile_all_submodules_13_0_1,
(MR_Word *) (MR_Integer) 0
},
13,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,7),
MR_COMMON(1,8),
MR_COMMON(4,2),
MR_COMMON(7,0),
MR_COMMON(4,3),
MR_COMMON(1,11),
MR_COMMON(1,12),
MR_COMMON(1,12),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_all_submodules_13_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_2_9_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_1;
static const struct mercury_type_9 mercury_common_9[4] =
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__compile_all_submodules_13_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(4,3),
MR_STRING_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_module_2_9_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(1,7),
MR_COMMON(4,3)
},
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
},
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name)
},
};

MR_decl_entry(io__write_string_3_0);
MR_decl_entry(fn__mdbcomp__prim_data__string_to_sym_name_1_0);
static const struct mercury_type_10 mercury_common_10[4] =
{
{
MR_COMMON(9,0),
MR_ENTRY_AP(top_level__mercury_compile__module_to_link_2_0),
0
},
{
MR_COMMON(14,1),
MR_ENTRY_AP(io__write_string_3_0),
0
},
{
MR_COMMON(9,2),
MR_ENTRY_AP(fn__mdbcomp__prim_data__string_to_sym_name_1_0),
0
},
{
MR_COMMON(9,3),
MR_ENTRY_AP(fn__mdbcomp__prim_data__string_to_sym_name_1_0),
0
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_libs__globals__type_ctor_info_compilation_target_0;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_4;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_5;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_6;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_7;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_8;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_4;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_5;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_6;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_7;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_top_level__mercury_compile__type_ctor_info_file_or_module_0;
extern const MR_TypeCtorInfo_Struct mercury_data_recompilation__check__type_ctor_info_modules_to_recompile_0;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_with_module_options__ho1_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_unit__type_ctor_info_unit_0;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_with_module_options__ho2_8_0_1;
static const struct mercury_type_11 mercury_common_11[18] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_2,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_3,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_4,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_5,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_6,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_7,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_8,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_2,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_3,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_4,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_5,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_6,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_7,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__globals, compilation_target),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name),
MR_COMMON(1,11),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_4,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_COMMON(1,11),
MR_CTOR0_ADDR(top_level__mercury_compile, file_or_module),
MR_CTOR0_ADDR(recompilation__check, modules_to_recompile),
MR_COMMON(4,2),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(2,1),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__compile_with_module_options__ho1_8_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_COMMON(7,1),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(1,11),
MR_BOOL_CTOR_ADDR,
MR_CTOR0_ADDR(unit, unit),
MR_CTOR0_ADDR(unit, unit),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__compile_with_module_options__ho2_8_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_COMMON(7,1),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(1,11),
MR_BOOL_CTOR_ADDR,
MR_CTOR0_ADDR(unit, unit),
MR_CTOR0_ADDR(unit, unit),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_arg_8_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_arg_8_0_2;
static const struct mercury_type_12 mercury_common_12[2] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_arg_8_0_1,
(MR_Word *) (MR_Integer) 0
},
10,
{
MR_CTOR0_ADDR(top_level__mercury_compile, file_or_module),
MR_COMMON(4,5),
MR_COMMON(1,11),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(1,11),
MR_BOOL_CTOR_ADDR,
MR_COMMON(1,11),
MR_COMMON(2,1),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_arg_8_0_2,
(MR_Word *) (MR_Integer) 0
},
10,
{
MR_CTOR0_ADDR(top_level__mercury_compile, file_or_module),
MR_COMMON(4,5),
MR_COMMON(1,11),
MR_CTOR0_ADDR(libs__globals, globals),
MR_COMMON(1,11),
MR_BOOL_CTOR_ADDR,
MR_COMMON(1,11),
MR_COMMON(2,1),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const struct mercury_type_13 mercury_common_13[11] =
{
{
95,
MR_tbmkword(0, 0)
},
{
94,
MR_TAG_COMMON(1,13,0)
},
{
86,
MR_TAG_COMMON(1,13,1)
},
{
85,
MR_TAG_COMMON(1,13,2)
},
{
84,
MR_TAG_COMMON(1,13,3)
},
{
83,
MR_TAG_COMMON(1,13,4)
},
{
81,
MR_TAG_COMMON(1,13,5)
},
{
82,
MR_TAG_COMMON(1,13,6)
},
{
89,
MR_TAG_COMMON(1,13,7)
},
{
90,
MR_TAG_COMMON(1,13,8)
},
{
93,
MR_TAG_COMMON(1,13,9)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_libs__options__type_ctor_info_option_0;
static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__main_after_setup_7_0_1;
static const struct mercury_type_14 mercury_common_14[2] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_CTOR0_ADDR(libs__options, option),
MR_BOOL_CTOR_ADDR
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__main_after_setup_7_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_STRING_CTOR_ADDR,
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const struct mercury_type_15 mercury_common_15[1] =
{
{
MR_string_const("--generate-standalone-interface", 31)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__main_after_setup_7_0_2;
static const struct mercury_type_16 mercury_common_16[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__main_after_setup_7_0_2,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_COMMON(1,11),
MR_COMMON(1,11),
MR_CTOR0_ADDR(libs__globals, globals),
MR_BOOL_CTOR_ADDR,
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__mercury_compile_after_front_end_11_0_1;
static const struct mercury_type_17 mercury_common_17[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__top_level__mercury_compile__mercury_compile_after_front_end_11_0_1,
(MR_Word *) (MR_Integer) 0
},
4,
{
MR_CTOR0_ADDR(libs__globals, globals),
MR_STRING_CTOR_ADDR,
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const MR_VA_TypeInfo_Struct4 mercury_data___vti_pred_4libs__globals__type_ctor_info_globals_0bool__type_ctor_info_bool_0io__type_ctor_info_state_0io__type_ctor_info_state_0 = {
	&mercury_data_builtin__type_ctor_info_pred_0,
	4,
{	(MR_TypeInfo) &mercury_data_libs__globals__type_ctor_info_globals_0,
	(MR_TypeInfo) &mercury_data_bool__type_ctor_info_bool_0,
	(MR_TypeInfo) &mercury_data_io__type_ctor_info_state_0,
	(MR_TypeInfo) &mercury_data_io__type_ctor_info_state_0
}};

const MR_TypeCtorInfo_Struct mercury_data_top_level__mercury_compile__type_ctor_info_compile_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___top_level__mercury_compile__compile_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___top_level__mercury_compile__compile_0_0)),
	"top_level.mercury_compile",
	"compile",
	{ 0 },
	{ (void *)&mercury_data___vti_pred_4libs__globals__type_ctor_info_globals_0bool__type_ctor_info_bool_0io__type_ctor_info_state_0io__type_ctor_info_state_0 },
	-1,
	0,
	NULL
};

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

static const MR_DuFunctorDesc mercury_data_top_level__mercury_compile__du_functor_desc_file_or_module_0_0 = {
	"fm_file",
	1,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_top_level__mercury_compile__field_types_file_or_module_0_0,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_top_level__mercury_compile__field_types_file_or_module_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0
};

static const MR_DuFunctorDesc mercury_data_top_level__mercury_compile__du_functor_desc_file_or_module_0_1 = {
	"fm_module",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_top_level__mercury_compile__field_types_file_or_module_0_1,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_top_level__mercury_compile__du_stag_ordered_file_or_module_0_0[] = {
	&mercury_data_top_level__mercury_compile__du_functor_desc_file_or_module_0_0

};

const MR_DuFunctorDescPtr mercury_data_top_level__mercury_compile__du_stag_ordered_file_or_module_0_1[] = {
	&mercury_data_top_level__mercury_compile__du_functor_desc_file_or_module_0_1

};

const MR_DuPtagLayout mercury_data_top_level__mercury_compile__du_ptag_ordered_file_or_module_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_top_level__mercury_compile__du_stag_ordered_file_or_module_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_top_level__mercury_compile__du_stag_ordered_file_or_module_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_top_level__mercury_compile__du_name_ordered_file_or_module_0[] = {
	&mercury_data_top_level__mercury_compile__du_functor_desc_file_or_module_0_0,
	&mercury_data_top_level__mercury_compile__du_functor_desc_file_or_module_0_1
};

const MR_Integer mercury_data_top_level__mercury_compile__functor_number_map_file_or_module_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_top_level__mercury_compile__type_ctor_info_file_or_module_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___top_level__mercury_compile__file_or_module_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___top_level__mercury_compile__file_or_module_0_0)),
	"top_level.mercury_compile",
	"file_or_module",
	{ (void *)mercury_data_top_level__mercury_compile__du_name_ordered_file_or_module_0 },
	{ (void *)mercury_data_top_level__mercury_compile__du_ptag_ordered_file_or_module_0 },
	2,
	4,
	mercury_data_top_level__mercury_compile__functor_number_map_file_or_module_0
};


static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_with_module_options__ho2_8_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"lambda_mercury_compile_m_1404",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1404,
"18"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_with_module_options__ho1_8_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"lambda_mercury_compile_m_1404",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1404,
"18"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__mercury_compile_after_front_end_11_0_1 = {
{
MR_PREDICATE,
"parse_tree.module_cmds",
"parse_tree.module_cmds",
"touch_datestamp",
4,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1852,
"166"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_1 = {
{
MR_FUNCTION,
"mdbcomp.prim_data",
"mdbcomp.prim_data",
"string_to_sym_name",
2,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1676,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_1 = {
{
MR_FUNCTION,
"mdbcomp.prim_data",
"mdbcomp.prim_data",
"string_to_sym_name",
2,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1676,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__main_after_setup_7_0_2 = {
{
MR_PREDICATE,
"backend_libs.compile_target_code",
"backend_libs.compile_target_code",
"link_module_list",
6,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
456,
"188"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__main_after_setup_7_0_1 = {
{
MR_PREDICATE,
"io",
"io",
"write_string",
3,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
384,
"87"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_3 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"process_args_callback",
7,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
550,
"45"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_2 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"process_args_callback",
7,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
550,
"45"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_all_args_8_0_1 = {
{
MR_PREDICATE,
"libs.globals",
"libs.globals",
"lookup_bool_option",
3,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
585,
"31"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_arg_8_0_2 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"process_arg_build",
10,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
840,
"18"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_arg_8_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"process_arg_build",
10,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
840,
"18"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_4 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"process_module_2_callback",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1203,
"126"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_3 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"call_make_private_interface",
7,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1098,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_2 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"call_make_short_interface",
7,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1095,
"31"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_8_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"call_make_interface",
7,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1091,
"26"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_7 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_6 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_5 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_4 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_3 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_2 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_smart_recompilation_target_files_3_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"usual_find_target_files",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1438,
"28"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__process_module_2_9_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"lambda_mercury_compile_m_1281",
2,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1281,
"58"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_8 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_7 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_6 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_5 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_4 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_3 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_2 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__find_timestamp_files_3_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"find_timestamp_files_2",
8,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1495,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_all_submodules_13_0_2 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"module_to_link",
2,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1349,
"20"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_all_submodules_13_0_1 = {
{
MR_PREDICATE,
"top_level.mercury_compile",
"top_level.mercury_compile",
"compile",
13,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
1343,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__top_level__mercury_compile__compile_using_gcc_backend_9_0_1 = {
{
MR_PREDICATE,
"backend_libs.compile_target_code",
"backend_libs.compile_target_code",
"assemble",
7,
0
},
"top_level.mercury_compile",
"mercury_compile.m",
660,
"50"
};


MR_decl_entry(io__read_line_as_string_4_0);
MR_decl_entry(fn__string__strip_1_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module0)
	MR_init_entry1(top_level__mercury_compile__expand_file_into_arg_list_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__expand_file_into_arg_list_4_0);
	MR_init_label7(top_level__mercury_compile__expand_file_into_arg_list_4_0,2,4,6,8,11,12,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'expand_file_into_arg_list'/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(top_level__mercury_compile__expand_file_into_arg_list_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__read_line_as_string_4_0,
		top_level__mercury_compile__expand_file_into_arg_list_4_0_i2);
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_file_into_arg_list_4_0_i4);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_file_into_arg_list_4_0_i6);
	}
	{
	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_decr_sp_and_return(3);
	}
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(top_level__mercury_compile__expand_file_into_arg_list_4_0,
		top_level__mercury_compile__expand_file_into_arg_list_4_0_i8);
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TEST(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_file_into_arg_list_4_0_i3);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__string__strip_1_0,
		top_level__mercury_compile__expand_file_into_arg_list_4_0_i11);
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("", 0)) != 0)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_file_into_arg_list_4_0_i12);
	}
	MR_r1 = MR_sv(1);
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,12)
	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_sv(2);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	}
MR_def_label(top_level__mercury_compile__expand_file_into_arg_list_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(string__remove_prefix_3_0);
MR_decl_entry(io__open_input_4_0);
MR_decl_entry(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
MR_decl_entry(fn__io__make_io_error_1_0);
MR_decl_entry(fn__io__error_message_1_0);
MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module1)
	MR_init_entry1(top_level__mercury_compile__expand_at_file_arguments_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__expand_at_file_arguments_4_0);
	MR_init_label10(top_level__mercury_compile__expand_at_file_arguments_4_0,63,3,6,8,11,12,10,15,18,19)
	MR_init_label8(top_level__mercury_compile__expand_at_file_arguments_4_0,20,21,22,17,66,5,26,67)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'expand_at_file_arguments'/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(top_level__mercury_compile__expand_at_file_arguments_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_at_file_arguments_4_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_string_const("\100", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(string__remove_prefix_3_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i6);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_at_file_arguments_4_0_i5);
	}
	MR_sv(1) = MR_r2;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(io__open_input_4_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i8);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_at_file_arguments_4_0_i10);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("\'", 1);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i11);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("mercury_compile: cannot open \'", 30);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i12);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__io__make_io_error_1_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i22);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(top_level__mercury_compile__expand_file_into_arg_list_4_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i15);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_at_file_arguments_4_0_i17);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(fn__io__error_message_1_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i18);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\' the following error occurred: ", 32);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i19);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,19)
	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(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i20);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("While attempting to process \'", 29);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i21);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__io__make_io_error_1_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i22);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,22)
	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(3);
	}
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i66);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(3);
	MR_GOTO_LAB(top_level__mercury_compile__expand_at_file_arguments_4_0_i63);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_np_localcall_lab(top_level__mercury_compile__expand_at_file_arguments_4_0,
		top_level__mercury_compile__expand_at_file_arguments_4_0_i26);
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TEST(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__expand_at_file_arguments_4_0_i67);
	}
	{
	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_tfield(0, MR_r1, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	}
MR_def_label(top_level__mercury_compile__expand_at_file_arguments_4_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__string__join_list_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module2)
	MR_init_entry1(top_level__mercury_compile__maybe_report_cmd_line_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__maybe_report_cmd_line_5_0);
	MR_init_label7(top_level__mercury_compile__maybe_report_cmd_line_5_0,4,5,6,7,8,9,18)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_report_cmd_line'/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(top_level__mercury_compile__maybe_report_cmd_line_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_report_cmd_line_5_0_i18);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_r1 = (MR_Word) MR_string_const("% Command line options start\n", 29);
	MR_np_call_localret_ent(io__write_string_3_0,
		top_level__mercury_compile__maybe_report_cmd_line_5_0_i4);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__maybe_report_cmd_line_5_0_i5);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\n% ", 3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__string__join_list_2_0,
		top_level__mercury_compile__maybe_report_cmd_line_5_0_i6);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("\n", 1);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__maybe_report_cmd_line_5_0_i7);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("% ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__maybe_report_cmd_line_5_0_i8);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__write_string_3_0,
		top_level__mercury_compile__maybe_report_cmd_line_5_0_i9);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("% Command line options end\n", 27);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(io__write_string_3_0);
MR_def_label(top_level__mercury_compile__maybe_report_cmd_line_5_0,18)
	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(libs__globals__lookup_bool_option_3_0);
MR_decl_entry(libs__file_util__maybe_write_string_4_0);
MR_decl_entry(libs__file_util__maybe_flush_output_3_0);
MR_decl_entry(io__rename_file_5_0);
MR_decl_entry(io__error_message_2_0);
MR_decl_entry(io__remove_file_4_0);
MR_decl_entry(string__append_list_2_0);
MR_decl_entry(libs__file_util__report_error_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module3)
	MR_init_entry1(top_level__mercury_compile__do_rename_file_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__do_rename_file_6_0);
	MR_init_label10(top_level__mercury_compile__do_rename_file_6_0,2,3,4,5,6,7,8,9,10,12)
	MR_init_label10(top_level__mercury_compile__do_rename_file_6_0,14,15,16,17,18,19,20,21,24,25)
	MR_init_label10(top_level__mercury_compile__do_rename_file_6_0,26,27,28,29,30,31,33,35,36,37)
	MR_init_label7(top_level__mercury_compile__do_rename_file_6_0,44,23,46,47,48,59,60)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_rename_file'/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(top_level__mercury_compile__do_rename_file_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_r2 = (MR_Integer) 44;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i2);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 45;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i3);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const("% Renaming \140", 12);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i4);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i5);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const("\' as \140", 6);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i6);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i7);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const("\'...", 4);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i8);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i9);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(io__rename_file_5_0,
		top_level__mercury_compile__do_rename_file_6_0_i10);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__do_rename_file_6_0_i12);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const(" done.\n", 7);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i60);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const(" failed.\n", 9);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i14);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i15);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(io__error_message_2_0,
		top_level__mercury_compile__do_rename_file_6_0_i16);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("% Removing \140", 12);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i17);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i18);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("\'...", 4);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i19);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i20);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(io__remove_file_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i21);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__do_rename_file_6_0_i23);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const(" done.\n", 7);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i24);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("% Renaming \140", 12);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i25);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i26);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("\' as \140", 6);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i27);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i28);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("\' again...", 10);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i29);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i30);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(io__rename_file_5_0,
		top_level__mercury_compile__do_rename_file_6_0_i31);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__do_rename_file_6_0_i33);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const(" done.\n", 7);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i60);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const(" failed.\n", 9);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i35);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i36);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(io__error_message_2_0,
		top_level__mercury_compile__do_rename_file_6_0_i37);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,37)
	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_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_string_const("\': ", 3);
	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(3);
	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_string_const("\' as \140", 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(2);
	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_string_const("can\'t rename file \140", 19);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	}
	MR_np_call_localret_ent(string__append_list_2_0,
		top_level__mercury_compile__do_rename_file_6_0_i44);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__report_error_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i60);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(6) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const(" failed.\n", 9);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__do_rename_file_6_0_i46);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i47);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(io__error_message_2_0,
		top_level__mercury_compile__do_rename_file_6_0_i48);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,48)
	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_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_string_const("\': ", 3);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tempr3 = MR_sv(3);
	MR_tfield(1, MR_r2, 0) = MR_tempr3;
	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_string_const("; and can\'t remove file \140", 25);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(5);
	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_string_const("\': ", 3);
	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_tempr3;
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_string_const("\' as \140", 6);
	MR_tfield(1, MR_r2, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Word) MR_string_const("can\'t rename file \140", 19);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	}
	MR_np_call_localret_ent(string__append_list_2_0,
		top_level__mercury_compile__do_rename_file_6_0_i59);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__report_error_3_0,
		top_level__mercury_compile__do_rename_file_6_0_i60);
MR_def_label(top_level__mercury_compile__do_rename_file_6_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = 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_decl_entry(parse_tree__file_names__file_name_to_module_name_2_0);
MR_decl_entry(ml_backend__maybe_mlds_to_gcc__maybe_run_gcc_backend_5_0);
MR_decl_entry(parse_tree__file_names__module_name_to_file_name_7_0);
MR_decl_entry(__Unify___mdbcomp__prim_data__sym_name_0_0);
MR_decl_entry(io__output_stream_3_0);
MR_decl_entry(backend_libs__compile_target_code__get_linked_target_type_2_0);
MR_decl_entry(backend_libs__compile_target_code__get_object_code_type_3_0);
MR_decl_entry(backend_libs__compile_target_code__assemble_7_0);
MR_decl_entry(parse_tree__module_cmds__maybe_set_exit_status_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module4)
	MR_init_entry1(top_level__mercury_compile__compile_using_gcc_backend_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__compile_using_gcc_backend_9_0);
	MR_init_label10(top_level__mercury_compile__compile_using_gcc_backend_9_0,4,3,2,9,11,12,13,14,16,17)
	MR_init_label10(top_level__mercury_compile__compile_using_gcc_backend_9_0,22,24,25,19,26,27,31,32,33,35)
	MR_init_label1(top_level__mercury_compile__compile_using_gcc_backend_9_0,28)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compile_using_gcc_backend'/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(top_level__mercury_compile__compile_using_gcc_backend_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r4,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r5;
	MR_r1 = MR_tfield(0, MR_r4, 0);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i4);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(4);
	MR_r2 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i2);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_r3 = MR_r5;
	MR_r2 = MR_tfield(1, MR_r4, 0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,0);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(ml_backend__maybe_mlds_to_gcc__maybe_run_gcc_backend_5_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i9);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 0);
	MR_r4 = MR_tempr1;
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i11);
	}
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tfield(0, MR_tempr2, 1);
	MR_decr_sp_and_return(10);
	}
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_sv(5) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i12);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 300;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i13);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i14);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_r3 = (MR_Word) MR_string_const(".pic_s", 6);
	MR_r4 = (MR_Integer) 0;
	MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i16);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_r3 = (MR_Word) MR_string_const(".s", 2);
	MR_r4 = (MR_Integer) 0;
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_sv(8) = MR_r3;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i17);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i22);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i19);
	}
	MR_r1 = MR_sv(9);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(8);
	MR_r4 = (MR_Integer) 1;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i24);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,24)
	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(9);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__do_rename_file_6_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i25);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 96;
	MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i26);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_sv(6) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 96;
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i27);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(6),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i28);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_using_gcc_backend_9_0_i28);
	}
	MR_np_call_localret_ent(io__output_stream_3_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i31);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(backend_libs__compile_target_code__get_linked_target_type_2_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i32);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,32)
	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(backend_libs__compile_target_code__get_object_code_type_3_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i33);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_r8 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__compile_target_code__assemble_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tempr2 = MR_sv(6);
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tempr3 = MR_sv(7);
	MR_tfield(0, MR_tempr1, 5) = MR_tempr3;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_tfield(0, MR_tempr1, 4);
	MR_r3 = MR_tempr3;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_r3;
	MR_r6 = MR_sv(2);
	MR_r7 = MR_sv(3);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__compile_with_module_options__ho1_8_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i35);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_cmds__maybe_set_exit_status_3_0,
		top_level__mercury_compile__compile_using_gcc_backend_9_0_i28);
MR_def_label(top_level__mercury_compile__compile_using_gcc_backend_9_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	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_decl_entry(parse_tree__read_modules__find_read_module_9_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__read_modules__type_ctor_info_have_read_module_0;
MR_decl_entry(map__delete_3_0);
MR_decl_entry(parse_tree__read_modules__read_module_from_file_13_0);
MR_decl_entry(libs__globals__io_get_disable_smart_recompilation_3_0);
MR_decl_entry(libs__globals__set_option_4_0);
MR_decl_entry(libs__globals__io_set_disable_smart_recompilation_3_0);
MR_decl_entry(parse_tree__error_util__write_error_pieces_plain_4_0);
MR_decl_entry(libs__compiler_util__record_warning_3_0);
MR_decl_entry(libs__file_util__maybe_report_stats_3_0);
MR_decl_entry(fn__mdbcomp__prim_data__sym_name_to_string_1_0);
MR_decl_entry(parse_tree__read_modules__read_module_13_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module5)
	MR_init_entry1(top_level__mercury_compile__read_module_or_file_14_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__read_module_or_file_14_0);
	MR_init_label10(top_level__mercury_compile__read_module_or_file_14_0,4,5,6,7,8,10,14,9,15,16)
	MR_init_label10(top_level__mercury_compile__read_module_or_file_14_0,18,20,17,21,27,29,86,31,53,23)
	MR_init_label10(top_level__mercury_compile__read_module_or_file_14_0,57,58,59,60,3,61,62,63,64,65)
	MR_init_label10(top_level__mercury_compile__read_module_or_file_14_0,67,71,66,72,73,75,77,78,79,80)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'read_module_or_file'/14 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(top_level__mercury_compile__read_module_or_file_14_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r2,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(8) = MR_tfield(0, MR_r2, 0);
	MR_sv(10) = MR_r4;
	MR_r2 = (MR_Integer) 44;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i4);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r2 = (MR_Word) MR_string_const("% Parsing file \140", 16);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i5);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i6);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Word) MR_string_const("\' and imported interfaces...\n", 29);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i7);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(8);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__read_module_or_file_14_0_i8);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(9);
	MR_r3 = (MR_Word) MR_string_const(".m", 2);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__read_modules__find_read_module_9_0,
		top_level__mercury_compile__read_module_or_file_14_0_i10);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i9);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tempr2 = MR_sv(9);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_string_const(".m", 2);
	MR_sv(3) = MR_tempr2;
	MR_sv(2) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_sv(5) = MR_r4;
	MR_sv(6) = MR_r6;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__read_modules, have_read_module);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(10);
	}
	MR_np_call_localret_ent(map__delete_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i14);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r4 = MR_sv(4);
	MR_sv(4) = MR_sv(6);
	MR_sv(7) = MR_sv(5);
	MR_sv(5) = MR_sv(2);
	MR_sv(6) = MR_r4;
	MR_sv(9) = MR_r3;
	MR_r2 = (MR_Integer) 55;
	MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i57);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(8);
	MR_r3 = (MR_Word) MR_string_const(".m", 2);
	MR_r4 = (MR_Word) MR_string_const("Reading file", 12);
	MR_r5 = (MR_Integer) 1;
	MR_r6 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__read_modules__read_module_from_file_13_0,
		top_level__mercury_compile__read_module_or_file_14_0_i15);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(7) = MR_r3;
	MR_np_call_localret_ent(libs__globals__io_get_disable_smart_recompilation_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i16);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i18);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 107;
	MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i17);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 107;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,5,0);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(libs__globals__set_option_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i20);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 107;
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i21);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i23);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(9);
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		top_level__mercury_compile__read_module_or_file_14_0_i27);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i23);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 23;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i29);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i31);
	}
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(libs__globals__io_set_disable_smart_recompilation_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i23);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr2, 1) = MR_sv(3);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr3, 1) = (MR_Word) MR_TAG_COMMON(1,1,6);
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr4, 0) = (MR_Word) MR_TAG_COMMON(3,6,2);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	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_tempr4;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr4, 0) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = (MR_Word) MR_TAG_COMMON(3,6,1);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr4;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(3,6,0);
	MR_tfield(1, MR_r2, 1) = MR_tempr3;
	MR_r1 = MR_sv(1);
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_plain_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i53);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(libs__compiler_util__record_warning_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i86);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_sv(9) = MR_sv(10);
	MR_r2 = (MR_Integer) 55;
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i58);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i59);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Word) MR_string_const(".m", 2);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__read_module_or_file_14_0_i60);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_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_sv(3);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(9);
	MR_decr_sp_and_return(11);
	}
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_r2, 0);
	MR_sv(10) = MR_r4;
	MR_r2 = (MR_Integer) 44;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i61);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r2 = (MR_Word) MR_string_const("% Parsing module \140", 18);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i62);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__sym_name_to_string_1_0,
		top_level__mercury_compile__read_module_or_file_14_0_i63);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i64);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const("\' and imported interfaces...\n", 29);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i65);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(3);
	MR_r3 = (MR_Word) MR_string_const(".m", 2);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__read_modules__find_read_module_9_0,
		top_level__mercury_compile__read_module_or_file_14_0_i67);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i66);
	}
	{
	MR_Word MR_tempr1;
	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_Word) MR_string_const(".m", 2);
	MR_sv(2) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_sv(5) = MR_r4;
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__read_modules, have_read_module);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(10);
	}
	MR_np_call_localret_ent(map__delete_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i71);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_sv(2) = MR_sv(6);
	MR_r4 = MR_sv(4);
	MR_sv(4) = MR_sv(7);
	MR_r5 = MR_sv(5);
	MR_sv(5) = MR_r3;
	MR_sv(6) = MR_r4;
	MR_sv(7) = MR_r5;
	MR_r2 = (MR_Integer) 54;
	MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i78);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = (MR_Word) MR_string_const(".m", 2);
	MR_r4 = (MR_Word) MR_string_const("Reading module", 14);
	MR_r5 = (MR_Integer) 1;
	MR_r6 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__read_modules__read_module_13_0,
		top_level__mercury_compile__read_module_or_file_14_0_i72);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(7) = MR_r3;
	MR_np_call_localret_ent(libs__globals__io_get_disable_smart_recompilation_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i73);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i75);
	}
	MR_r1 = MR_sv(1);
	MR_sv(9) = MR_sv(10);
	MR_r2 = (MR_Integer) 54;
	MR_GOTO_LAB(top_level__mercury_compile__read_module_or_file_14_0_i78);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 107;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,5,0);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(libs__globals__set_option_4_0,
		top_level__mercury_compile__read_module_or_file_14_0_i77);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_sv(10);
	MR_r2 = (MR_Integer) 54;
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i79);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__read_module_or_file_14_0_i80);
MR_def_label(top_level__mercury_compile__read_module_or_file_14_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(9);
	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(top_level__mercury_compile_module6)
	MR_init_entry1(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0);
	MR_init_label1(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'version_numbers_return_timestamp'/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__top_level__mercury_compile__version_numbers_return_timestamp_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0_i3);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_io__type_ctor_info_state_0;
MR_decl_entry(list__map_foldl2_7_2);
MR_decl_entry(parse_tree__error_util__write_error_specs_8_0);
MR_decl_entry(list__map_3_0);
MR_decl_entry(list__condense_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module7)
	MR_init_entry1(top_level__mercury_compile__compile_all_submodules_13_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__compile_all_submodules_13_0);
	MR_init_label4(top_level__mercury_compile__compile_all_submodules_13_0,7,8,10,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compile_all_submodules'/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_def_static(top_level__mercury_compile__compile_all_submodules_13_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_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 10);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__compile_13_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 7;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_tfield(0, MR_tempr1, 5) = MR_r3;
	MR_tfield(0, MR_tempr1, 6) = MR_r4;
	MR_tfield(0, MR_tempr1, 7) = MR_r5;
	MR_tfield(0, MR_tempr1, 8) = MR_r6;
	MR_tfield(0, MR_tempr1, 9) = MR_r7;
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_r8;
	MR_sv(2) = MR_tempr2;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(0,4,4);
	MR_sv(4) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,1,14);
	MR_r4 = (MR_Word) MR_IO_CTOR_ADDR;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tempr2;
	MR_r7 = MR_r9;
	}
	MR_np_call_localret_ent(list__map_foldl2_7_2,
		top_level__mercury_compile__compile_all_submodules_13_0_i7);
MR_def_label(top_level__mercury_compile__compile_all_submodules_13_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_specs_8_0,
		top_level__mercury_compile__compile_all_submodules_13_0_i8);
MR_def_label(top_level__mercury_compile__compile_all_submodules_13_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,10,0);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(list__map_3_0,
		top_level__mercury_compile__compile_all_submodules_13_0_i10);
MR_def_label(top_level__mercury_compile__compile_all_submodules_13_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__condense_2_0,
		top_level__mercury_compile__compile_all_submodules_13_0_i11);
MR_def_label(top_level__mercury_compile__compile_all_submodules_13_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(top_level__mercury_compile_module8)
	MR_init_entry1(top_level__mercury_compile__halt_at_module_error_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__halt_at_module_error_2_0);
	MR_init_label2(top_level__mercury_compile__halt_at_module_error_2_0,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'halt_at_module_error'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(top_level__mercury_compile__halt_at_module_error_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r2,2)) {
		MR_GOTO_LAB(top_level__mercury_compile__halt_at_module_error_2_0_i8);
	}
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__halt_at_module_error_2_0_i1);
	}
	MR_r1 = ((MR_Integer) MR_r1 == (MR_Integer) 1);
	MR_proceed();
MR_def_label(top_level__mercury_compile__halt_at_module_error_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(top_level__mercury_compile__halt_at_module_error_2_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(libs__globals__get_target_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module9)
	MR_init_entry1(top_level__mercury_compile__find_timestamp_files_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__find_timestamp_files_3_0);
	MR_init_label9(top_level__mercury_compile__find_timestamp_files_3_0,2,3,7,5,10,12,14,16,18)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'find_timestamp_files'/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(top_level__mercury_compile__find_timestamp_files_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 300;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__find_timestamp_files_3_0_i2);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(libs__globals__get_target_2_0,
		top_level__mercury_compile__find_timestamp_files_3_0_i3);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,4)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i5);
	}
	if (MR_INT_NE(MR_sv(3),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i7);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,0);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".s_date", 7);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,1);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".pic_s_date", 11);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i10);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,2);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".c_date", 7);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i12);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,3);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".cs_date", 8);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,6)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i14);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,4);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".erl_date", 9);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i16);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,5);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".il_date", 8);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_3_0_i18);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,6);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".java_date", 10);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(top_level__mercury_compile__find_timestamp_files_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,7);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".s_date", 7);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(bool__or_list_2_0);
MR_decl_entry(parse_tree__modules__split_into_submodules_5_0);
MR_decl_entry(assoc_list__keys_2_0);
MR_decl_entry(list__filter_3_0);
MR_decl_entry(list__delete_all_3_1);
MR_decl_entry(mdbcomp__prim_data__non_traced_mercury_builtin_module_1_0);
MR_decl_entry(fn__mdbcomp__prim_data__mercury_profiling_builtin_module_0_0);
MR_decl_entry(libs__globals__set_trace_level_none_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module10)
	MR_init_entry1(top_level__mercury_compile__process_module_2_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_module_2_9_0);
	MR_init_label10(top_level__mercury_compile__process_module_2_9_0,2,3,4,5,6,7,14,17,16,19)
	MR_init_label10(top_level__mercury_compile__process_module_2_9_0,20,23,22,26,21,27,29,34,35,36)
	MR_init_label9(top_level__mercury_compile__process_module_2_9_0,37,38,40,43,44,42,48,49,39)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_module_2'/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(top_level__mercury_compile__process_module_2_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_r2 = (MR_Integer) 81;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i2);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 82;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i3);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 84;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i4);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 85;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i5);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 86;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i6);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 87;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i7);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,7)
	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_Word MR_tempr1;
	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_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(9);
	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(8);
	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_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(6);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	}
	MR_np_call_localret_ent(bool__or_list_2_0,
		top_level__mercury_compile__process_module_2_9_0_i14);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i16);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 53;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i17);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(top_level__mercury_compile__maybe_report_cmd_line_5_0,
		top_level__mercury_compile__process_module_2_9_0_i16);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r4 = MR_sv(5);
	MR_r3 = (MR_Integer) 0;
	MR_np_call_localret_ent(top_level__mercury_compile__read_module_or_file_14_0,
		top_level__mercury_compile__process_module_2_9_0_i19);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(5) = MR_r4;
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_sv(8) = MR_r7;
	MR_sv(9) = MR_r8;
	MR_r2 = (MR_Integer) 3;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i20);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),2)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i23);
	}
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(7);
	MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i22);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i21);
	}
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i21);
	}
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(7);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(parse_tree__error_util__write_error_specs_8_0,
		top_level__mercury_compile__process_module_2_9_0_i26);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(11);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(parse_tree__modules__split_into_submodules_5_0,
		top_level__mercury_compile__process_module_2_9_0_i27);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i29);
	}
	MR_r3 = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(4) = MR_r1;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,13);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(assoc_list__keys_2_0,
		top_level__mercury_compile__process_module_2_9_0_i35);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(9,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__IntroducedFrom__pred__process_module_2__1281__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(1, MR_sv(4), 0);
	MR_sv(4) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,1,13);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,4);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(list__filter_3_0,
		top_level__mercury_compile__process_module_2_9_0_i34);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r2 = MR_sv(7);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_np_call_localret_ent(assoc_list__keys_2_0,
		top_level__mercury_compile__process_module_2_9_0_i35);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,35)
	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_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(list__delete_all_3_1,
		top_level__mercury_compile__process_module_2_9_0_i36);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(top_level__mercury_compile__find_timestamp_files_3_0,
		top_level__mercury_compile__process_module_2_9_0_i37);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 113;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_2_9_0_i38);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(mdbcomp__prim_data__non_traced_mercury_builtin_module_1_0,
		top_level__mercury_compile__process_module_2_9_0_i40);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i39);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_profiling_builtin_module_0_0,
		top_level__mercury_compile__process_module_2_9_0_i43);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,43)
	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___mdbcomp__prim_data__sym_name_0_0,
		top_level__mercury_compile__process_module_2_9_0_i44);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i42);
	}
	if (MR_INT_EQ(MR_sv(10),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_2_9_0_i39);
	}
MR_def_label(top_level__mercury_compile__process_module_2_9_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 254;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,5,0);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(libs__globals__set_option_4_0,
		top_level__mercury_compile__process_module_2_9_0_i48);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__globals__set_trace_level_none_2_0,
		top_level__mercury_compile__process_module_2_9_0_i49);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(9);
	MR_r9 = MR_sv(6);
	MR_r8 = MR_sv(4);
	MR_r4 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(top_level__mercury_compile__compile_all_submodules_13_0);
MR_def_label(top_level__mercury_compile__process_module_2_9_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(9);
	MR_r9 = MR_sv(6);
	MR_r8 = MR_sv(4);
	MR_r4 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_r1 = MR_sv(1);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(top_level__mercury_compile__compile_all_submodules_13_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(top_level__mercury_compile_module11)
	MR_init_entry1(top_level__mercury_compile__find_smart_recompilation_target_files_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__find_smart_recompilation_target_files_3_0);
	MR_init_label7(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,2,4,6,8,10,12,14)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'find_smart_recompilation_target_files'/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(top_level__mercury_compile__find_smart_recompilation_target_files_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(libs__globals__get_target_2_0,
		top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i2);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,4)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i4);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,8);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".s", 2);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i6);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,9);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".c", 2);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i8);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,10);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".cs", 3);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,6)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i10);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,11);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".erl", 4);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i12);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,12);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".il", 3);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_smart_recompilation_target_files_3_0_i14);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,13);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".java", 5);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
MR_def_label(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(11,14);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_r2, 3) = MR_sv(2);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_string_const(".s", 2);
	MR_tfield(0, MR_r2, 6) = MR_sv(1);
	MR_r1 = MR_r2;
	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__map__init_0_0);
MR_decl_entry(list__foldl_4_2);
MR_decl_entry(parse_tree__mercury_to_mercury__convert_to_mercury_6_0);
MR_decl_entry(map__init_1_0);
MR_decl_entry(recompilation__check__should_recompile_8_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module12)
	MR_init_entry1(top_level__mercury_compile__process_module_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_module_8_0);
	MR_init_label10(top_level__mercury_compile__process_module_8_0,2,3,4,5,6,7,10,14,21,23)
	MR_init_label10(top_level__mercury_compile__process_module_8_0,24,27,25,29,30,31,32,9,40,41)
	MR_init_label10(top_level__mercury_compile__process_module_8_0,42,45,44,47,37,50,51,53,55,52)
	MR_init_label10(top_level__mercury_compile__process_module_8_0,56,60,58,63,62,61,64,65,66,67)
	MR_init_label4(top_level__mercury_compile__process_module_8_0,57,99,72,75)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_module'/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(top_level__mercury_compile__process_module_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r2 = (MR_Integer) 3;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i2);
MR_def_label(top_level__mercury_compile__process_module_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 82;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i3);
MR_def_label(top_level__mercury_compile__process_module_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 81;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i4);
MR_def_label(top_level__mercury_compile__process_module_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 83;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i5);
MR_def_label(top_level__mercury_compile__process_module_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 93;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i6);
MR_def_label(top_level__mercury_compile__process_module_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 108;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i7);
MR_def_label(top_level__mercury_compile__process_module_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i10);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(6) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__call_make_interface_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	}
	MR_np_call_localret_ent(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0,
		top_level__mercury_compile__process_module_8_0_i21);
MR_def_label(top_level__mercury_compile__process_module_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(7),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i14);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(6) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__call_make_short_interface_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_r1 = (MR_Integer) 1;
	MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i21);
	}
MR_def_label(top_level__mercury_compile__process_module_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i9);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(6) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__call_make_private_interface_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	}
	MR_np_call_localret_ent(fn__top_level__mercury_compile__version_numbers_return_timestamp_1_0,
		top_level__mercury_compile__process_module_8_0_i21);
MR_def_label(top_level__mercury_compile__process_module_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	MR_sv(9) = (MR_Word) MR_CTOR_ADDR(pair, pair, 2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__read_modules, have_read_module);
	MR_np_call_localret_ent(fn__map__init_0_0,
		top_level__mercury_compile__process_module_8_0_i23);
MR_def_label(top_level__mercury_compile__process_module_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__read_module_or_file_14_0,
		top_level__mercury_compile__process_module_8_0_i24);
MR_def_label(top_level__mercury_compile__process_module_8_0,24)
	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_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r7;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__halt_at_module_error_2_0,
		top_level__mercury_compile__process_module_8_0_i27);
MR_def_label(top_level__mercury_compile__process_module_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i25);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(10);
MR_def_label(top_level__mercury_compile__process_module_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(4);
	MR_tempr2 = MR_sv(5);
	MR_tempr3 = MR_sv(7);
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr3;
	}
	MR_np_call_localret_ent(parse_tree__modules__split_into_submodules_5_0,
		top_level__mercury_compile__process_module_8_0_i29);
MR_def_label(top_level__mercury_compile__process_module_8_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_specs_8_0,
		top_level__mercury_compile__process_module_8_0_i30);
MR_def_label(top_level__mercury_compile__process_module_8_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(6);
	MR_tempr1 = MR_tfield(0, MR_tempr3, 2);
	MR_r7 = MR_tempr1;
	MR_alloc_heap(MR_tempr2, ((MR_Integer) MR_tempr1 + (MR_Integer) 6));
	MR_r8 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_tfield(0, MR_tempr3, 0);
	MR_tfield(0, MR_tempr2, 1) = MR_tfield(0, MR_tempr3, 1);
	MR_tfield(0, MR_tempr2, 2) = ((MR_Integer) MR_tempr1 + (MR_Integer) 3);
	MR_r7 = ((MR_Integer) MR_r7 + (MR_Integer) 3);
	MR_r6 = (MR_Integer) 3;
	MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i32);
	}
MR_def_label(top_level__mercury_compile__process_module_8_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_tfield(0, MR_r8, MR_tempr1) = MR_tfield(0, MR_sv(6), MR_tempr1);
	MR_r6 = ((MR_Integer) MR_r6 + (MR_Integer) 1);
	}
MR_def_label(top_level__mercury_compile__process_module_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) MR_r6 < (MR_Integer) MR_r7)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i31);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr2 = MR_r8;
	MR_tempr3 = MR_r6;
	MR_tfield(0, MR_tempr2, MR_tempr3) = MR_sv(3);
	MR_tempr1 = ((MR_Integer) MR_tempr3 + (MR_Integer) 1);
	MR_tfield(0, MR_tempr2, MR_tempr1) = MR_sv(2);
	MR_tempr1 = ((MR_Integer) MR_tempr1 + (MR_Integer) 1);
	MR_tfield(0, MR_tempr2, MR_tempr1) = MR_sv(4);
	MR_tempr1 = ((MR_Integer) MR_tempr1 + (MR_Integer) 1);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r1, 0) = MR_sv(9);
	MR_tfield(0, MR_r1, 1) = MR_sv(8);
	MR_tfield(0, MR_r1, 2) = (MR_Word) MR_TAG_COMMON(0,1,13);
	MR_r2 = (MR_Word) MR_IO_CTOR_ADDR;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(list__foldl_4_2,
		top_level__mercury_compile__process_module_8_0_i99);
MR_def_label(top_level__mercury_compile__process_module_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i37);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__read_modules, have_read_module);
	MR_np_call_localret_ent(fn__map__init_0_0,
		top_level__mercury_compile__process_module_8_0_i40);
MR_def_label(top_level__mercury_compile__process_module_8_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Integer) 1;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__read_module_or_file_14_0,
		top_level__mercury_compile__process_module_8_0_i41);
MR_def_label(top_level__mercury_compile__process_module_8_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r7;
	MR_r1 = MR_r6;
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(parse_tree__error_util__write_error_specs_8_0,
		top_level__mercury_compile__process_module_8_0_i42);
MR_def_label(top_level__mercury_compile__process_module_8_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(top_level__mercury_compile__halt_at_module_error_2_0,
		top_level__mercury_compile__process_module_8_0_i45);
MR_def_label(top_level__mercury_compile__process_module_8_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i44);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(10);
MR_def_label(top_level__mercury_compile__process_module_8_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = (MR_Word) MR_string_const(".ugly", 5);
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__process_module_8_0_i47);
MR_def_label(top_level__mercury_compile__process_module_8_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(parse_tree__mercury_to_mercury__convert_to_mercury_6_0,
		top_level__mercury_compile__process_module_8_0_i99);
MR_def_label(top_level__mercury_compile__process_module_8_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 107;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_module_8_0_i50);
MR_def_label(top_level__mercury_compile__process_module_8_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(libs__globals__io_get_disable_smart_recompilation_3_0,
		top_level__mercury_compile__process_module_8_0_i51);
MR_def_label(top_level__mercury_compile__process_module_8_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i53);
	}
	MR_r3 = MR_sv(1);
	MR_sv(1) = MR_sv(5);
	MR_r1 = MR_r3;
	MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i52);
MR_def_label(top_level__mercury_compile__process_module_8_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 107;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,5,0);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(libs__globals__set_option_4_0,
		top_level__mercury_compile__process_module_8_0_i55);
MR_def_label(top_level__mercury_compile__process_module_8_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Integer) 0;
MR_def_label(top_level__mercury_compile__process_module_8_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(libs__globals__get_target_2_0,
		top_level__mercury_compile__process_module_8_0_i56);
MR_def_label(top_level__mercury_compile__process_module_8_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i58);
	}
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__read_modules, have_read_module);
	MR_np_call_localret_ent(map__init_1_0,
		top_level__mercury_compile__process_module_8_0_i60);
MR_def_label(top_level__mercury_compile__process_module_8_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i57);
MR_def_label(top_level__mercury_compile__process_module_8_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(4),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i62);
	}
	MR_sv(5) = MR_r1;
	MR_r1 = MR_tfield(0, MR_sv(4), 0);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__process_module_8_0_i63);
MR_def_label(top_level__mercury_compile__process_module_8_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(8);
	MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i61);
MR_def_label(top_level__mercury_compile__process_module_8_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_tfield(1, MR_sv(4), 0);
	MR_r2 = MR_sv(8);
MR_def_label(top_level__mercury_compile__process_module_8_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_np_call_localret_ent(top_level__mercury_compile__find_smart_recompilation_target_files_3_0,
		top_level__mercury_compile__process_module_8_0_i64);
MR_def_label(top_level__mercury_compile__process_module_8_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(top_level__mercury_compile__find_timestamp_files_3_0,
		top_level__mercury_compile__process_module_8_0_i65);
MR_def_label(top_level__mercury_compile__process_module_8_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(recompilation__check__should_recompile_8_0,
		top_level__mercury_compile__process_module_8_0_i66);
MR_def_label(top_level__mercury_compile__process_module_8_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(5),4)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i67);
	}
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i67);
	}
	MR_r4 = MR_tfield(1, MR_r1, 0);
	if (MR_LTAGS_TEST(MR_r4,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i67);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i57);
MR_def_label(top_level__mercury_compile__process_module_8_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	}
MR_def_label(top_level__mercury_compile__process_module_8_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i72);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r2, 0);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i72);
	}
	}
MR_def_label(top_level__mercury_compile__process_module_8_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(10);
MR_def_label(top_level__mercury_compile__process_module_8_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(5),4)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i75);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_module_8_0_i75);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(11,15);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__process_module_2_callback_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 5;
	MR_tempr2 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_tempr3 = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_tempr3;
	MR_tfield(0, MR_tempr1, 5) = MR_r2;
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tempr4 = MR_sv(8);
	MR_tfield(0, MR_tempr1, 7) = MR_tempr4;
	MR_r1 = MR_tempr4;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(top_level__mercury_compile__compile_using_gcc_backend_9_0);
	}
MR_def_label(top_level__mercury_compile__process_module_8_0,75)
	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_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_tempr2;
	MR_r5 = MR_tempr1;
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(top_level__mercury_compile__process_module_2_9_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(string__remove_suffix_3_0);
MR_decl_entry(make__util__build_with_module_options_args_11_0);
MR_decl_entry(parse_tree__modules__generate_file_dependency_file_4_0);
MR_decl_entry(parse_tree__modules__generate_module_dependency_file_4_0);
MR_decl_entry(parse_tree__modules__generate_file_dependencies_4_0);
MR_decl_entry(parse_tree__modules__generate_module_dependencies_4_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module13)
	MR_init_entry1(top_level__mercury_compile__process_arg_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_arg_8_0);
	MR_init_label10(top_level__mercury_compile__process_arg_8_0,3,2,6,8,9,14,13,21,42,23)
	MR_init_label7(top_level__mercury_compile__process_arg_8_0,11,24,27,29,32,26,36)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_arg'/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(top_level__mercury_compile__process_arg_8_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_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(".m", 2);
	}
	MR_np_call_localret_ent(string__remove_suffix_3_0,
		top_level__mercury_compile__process_arg_8_0_i3);
MR_def_label(top_level__mercury_compile__process_arg_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i2);
	}
	MR_tag_alloc_heap(MR_sv(4), 0, (MR_Integer) 1);
	MR_tfield(0, MR_sv(4), 0) = MR_r2;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 594;
	MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i8);
MR_def_label(top_level__mercury_compile__process_arg_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__process_arg_8_0_i6);
MR_def_label(top_level__mercury_compile__process_arg_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(4), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(4), 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 594;
MR_def_label(top_level__mercury_compile__process_arg_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_arg_8_0_i9);
MR_def_label(top_level__mercury_compile__process_arg_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i11);
	}
	if (MR_PTAG_TESTR(MR_sv(4),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i13);
	}
	MR_r1 = MR_tfield(0, MR_sv(4), 0);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__process_arg_8_0_i14);
MR_def_label(top_level__mercury_compile__process_arg_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_r8 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(12,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__process_arg_build_10_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tempr2 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 4) = MR_tempr2;
	MR_tempr3 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 5) = MR_tempr3;
	MR_r3 = MR_sv(1);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_tempr3;
	MR_r4 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r9 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(make__util__build_with_module_options_args_11_0,
		top_level__mercury_compile__process_arg_8_0_i21);
MR_def_label(top_level__mercury_compile__process_arg_8_0,13)
	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) 6);
	MR_r8 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(12,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__process_arg_build_10_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tempr2 = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_tempr3 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 4) = MR_tempr3;
	MR_tempr4 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 5) = MR_tempr4;
	MR_r3 = MR_sv(1);
	MR_r5 = MR_tempr3;
	MR_r6 = MR_tempr4;
	MR_r4 = MR_tfield(1, MR_tempr2, 0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r9 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(make__util__build_with_module_options_args_11_0,
		top_level__mercury_compile__process_arg_8_0_i21);
MR_def_label(top_level__mercury_compile__process_arg_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i23);
	}
MR_def_label(top_level__mercury_compile__process_arg_8_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(top_level__mercury_compile__process_arg_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r2, 0);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	MR_decr_sp_and_return(5);
	}
MR_def_label(top_level__mercury_compile__process_arg_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 90;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_arg_8_0_i24);
MR_def_label(top_level__mercury_compile__process_arg_8_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i26);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 89;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_arg_8_0_i27);
MR_def_label(top_level__mercury_compile__process_arg_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i29);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(top_level__mercury_compile__process_module_8_0);
MR_def_label(top_level__mercury_compile__process_arg_8_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(4),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i32);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_sv(4), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_file_dependency_file_4_0,
		top_level__mercury_compile__process_arg_8_0_i42);
MR_def_label(top_level__mercury_compile__process_arg_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(1, MR_sv(4), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_module_dependency_file_4_0,
		top_level__mercury_compile__process_arg_8_0_i42);
MR_def_label(top_level__mercury_compile__process_arg_8_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(4),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_8_0_i36);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_sv(4), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_file_dependencies_4_0,
		top_level__mercury_compile__process_arg_8_0_i42);
MR_def_label(top_level__mercury_compile__process_arg_8_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(1, MR_sv(4), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_module_dependencies_4_0,
		top_level__mercury_compile__process_arg_8_0_i42);
#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(cord__is_empty_1_0);
MR_decl_entry(gc__garbage_collect_2_0);
MR_decl_entry(io__read_line_as_string_3_0);
MR_decl_entry(io__set_exit_status_3_0);
MR_decl_entry(fn__string__rstrip_1_0);
MR_decl_entry(fn__cord__from_list_1_0);
MR_decl_entry(fn__f_99_111_114_100_95_95_43_43_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module14)
	MR_init_entry1(top_level__mercury_compile__process_stdin_arg_list_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_stdin_arg_list_9_0);
	MR_init_label10(top_level__mercury_compile__process_stdin_arg_list_9_0,32,3,6,7,23,9,11,12,13,10)
	MR_init_label6(top_level__mercury_compile__process_stdin_arg_list_9_0,15,16,17,18,19,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_stdin_arg_list'/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(top_level__mercury_compile__process_stdin_arg_list_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(5) = MR_tempr1;
	MR_sv(6) = MR_r5;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(cord__is_empty_1_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i3);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(top_level__mercury_compile__process_stdin_arg_list_9_0_i6);
	}
	MR_np_call_localret_ent(gc__garbage_collect_2_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i6);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__read_line_as_string_3_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i7);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_stdin_arg_list_9_0_i9);
	}
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_decr_sp_and_return(8);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_stdin_arg_list_9_0_i10);
	}
	MR_r1 = MR_tfield(2, MR_r1, 0);
	MR_np_call_localret_ent(io__error_message_2_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i11);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Error reading module name: ", 27);
	MR_np_call_localret_ent(io__write_string_3_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i12);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(io__write_string_3_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i13);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i23);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(fn__string__rstrip_1_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i15);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__process_arg_8_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i16);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r2;
	MR_sv(7) = (MR_Word) MR_STRING_CTOR_ADDR;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i17);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i18);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i19);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,19)
	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_99_111_114_100_95_95_43_43_2_0,
		top_level__mercury_compile__process_stdin_arg_list_9_0_i20);
MR_def_label(top_level__mercury_compile__process_stdin_arg_list_9_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_tempr1;
	MR_succip_word = MR_sv(8);
	MR_GOTO_LAB(top_level__mercury_compile__process_stdin_arg_list_9_0_i32);
	}
#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(top_level__mercury_compile_module15)
	MR_init_entry1(top_level__mercury_compile__process_arg_list_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_arg_list_10_0);
	MR_init_label10(top_level__mercury_compile__process_arg_list_10_0,20,3,4,6,7,5,8,9,10,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_arg_list'/10 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(top_level__mercury_compile__process_arg_list_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_list_10_0_i3);
	}
	MR_r1 = MR_r5;
	MR_r2 = MR_r6;
	MR_decr_sp_and_return(9);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,3)
	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_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_tfield(1, MR_r4, 1);
	MR_r4 = MR_tfield(1, MR_r4, 0);
	MR_np_call_localret_ent(top_level__mercury_compile__process_arg_8_0,
		top_level__mercury_compile__process_arg_list_10_0_i4);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(6),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_arg_list_10_0_i6);
	}
	MR_sv(8) = MR_r2;
	MR_r2 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_GOTO_LAB(top_level__mercury_compile__process_arg_list_10_0_i5);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_np_call_localret_ent(gc__garbage_collect_2_0,
		top_level__mercury_compile__process_arg_list_10_0_i7);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(7);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		top_level__mercury_compile__process_arg_list_10_0_i8);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		top_level__mercury_compile__process_arg_list_10_0_i9);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		top_level__mercury_compile__process_arg_list_10_0_i10);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		top_level__mercury_compile__process_arg_list_10_0_i11);
MR_def_label(top_level__mercury_compile__process_arg_list_10_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_tempr1;
	MR_succip_word = MR_sv(9);
	MR_GOTO_LAB(top_level__mercury_compile__process_arg_list_10_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_decl_entry(fn__cord__empty_0_0);
MR_decl_entry(fn__cord__list_1_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module16)
	MR_init_entry1(top_level__mercury_compile__process_args_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_args_8_0);
	MR_init_label9(top_level__mercury_compile__process_args_8_0,2,5,6,4,8,9,10,11,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_args'/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(top_level__mercury_compile__process_args_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r2 = (MR_Integer) 624;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_args_8_0_i2);
MR_def_label(top_level__mercury_compile__process_args_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_args_8_0_i4);
	}
	MR_sv(5) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_8_0_i5);
MR_def_label(top_level__mercury_compile__process_args_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_8_0_i6);
MR_def_label(top_level__mercury_compile__process_args_8_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_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__process_arg_list_10_0,
		top_level__mercury_compile__process_args_8_0_i10);
MR_def_label(top_level__mercury_compile__process_args_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_8_0_i8);
MR_def_label(top_level__mercury_compile__process_args_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_8_0_i9);
MR_def_label(top_level__mercury_compile__process_args_8_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_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__process_stdin_arg_list_9_0,
		top_level__mercury_compile__process_args_8_0_i10);
MR_def_label(top_level__mercury_compile__process_args_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_r2 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__cord__list_1_0,
		top_level__mercury_compile__process_args_8_0_i11);
MR_def_label(top_level__mercury_compile__process_args_8_0,11)
	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(fn__cord__list_1_0,
		top_level__mercury_compile__process_args_8_0_i12);
MR_def_label(top_level__mercury_compile__process_args_8_0,12)
	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(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

extern const MR_TypeCtorInfo_Struct mercury_data_libs__options__type_ctor_info_option_0;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
MR_decl_entry(fn__list__map_2_0);
MR_decl_entry(fn__bool__or_list_1_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module17)
	MR_init_entry1(top_level__mercury_compile__process_all_args_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_all_args_8_0);
	MR_init_label10(top_level__mercury_compile__process_all_args_8_0,3,5,6,12,9,14,15,52,20,24)
	MR_init_label6(top_level__mercury_compile__process_all_args_8_0,25,26,16,28,27,32)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_all_args'/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(top_level__mercury_compile__process_all_args_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (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(libs__globals__get_target_2_0,
		top_level__mercury_compile__process_all_args_8_0_i3);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (((MR_Integer) 4 != (MR_Integer) MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i52);
	}
	{
	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(14,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(libs__globals__lookup_bool_option_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(libs__options, option);
	MR_r2 = (MR_Word) MR_BOOL_CTOR_ADDR;
	MR_r4 = (MR_Word) MR_TAG_COMMON(1,13,10);
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		top_level__mercury_compile__process_all_args_8_0_i5);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__bool__or_list_1_0,
		top_level__mercury_compile__process_all_args_8_0_i6);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i52);
	}
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i9);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,1,15);
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_plain_4_0,
		top_level__mercury_compile__process_all_args_8_0_i12);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__process_all_args_8_0_i26);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(5) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(6) = MR_tfield(1, MR_tempr1, 1);
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 107;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_all_args_8_0_i14);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(libs__globals__io_get_disable_smart_recompilation_3_0,
		top_level__mercury_compile__process_all_args_8_0_i15);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(7),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i16);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i16);
	}
	if (MR_LTAGS_TESTR(MR_sv(6),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i20);
	}
MR_def_label(top_level__mercury_compile__process_all_args_8_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(top_level__mercury_compile__process_args_8_0);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,1,16);
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_plain_4_0,
		top_level__mercury_compile__process_all_args_8_0_i24);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__process_all_args_8_0_i25);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(libs__globals__io_set_disable_smart_recompilation_3_0,
		top_level__mercury_compile__process_all_args_8_0_i26);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(8);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_string_const(".m", 2);
	MR_np_call_localret_ent(string__remove_suffix_3_0,
		top_level__mercury_compile__process_all_args_8_0_i28);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_all_args_8_0_i27);
	}
	MR_tag_alloc_heap(MR_r4, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r4, 0) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,4);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__process_args_callback_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 4;
	MR_tempr2 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_tempr3 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = MR_tempr3;
	MR_tfield(0, MR_tempr1, 5) = MR_sv(4);
	MR_tempr4 = MR_sv(1);
	MR_tfield(0, MR_tempr1, 6) = MR_tempr4;
	MR_r1 = MR_tempr4;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr3;
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(top_level__mercury_compile__compile_using_gcc_backend_9_0);
	}
MR_def_label(top_level__mercury_compile__process_all_args_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__process_all_args_8_0_i32);
MR_def_label(top_level__mercury_compile__process_all_args_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r4, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r4, 0) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,5);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__process_args_callback_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 4;
	MR_tempr2 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_tempr3 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = MR_tempr3;
	MR_tfield(0, MR_tempr1, 5) = MR_sv(4);
	MR_tempr4 = MR_sv(1);
	MR_tfield(0, MR_tempr1, 6) = MR_tempr4;
	MR_r1 = MR_tempr4;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr3;
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(top_level__mercury_compile__compile_using_gcc_backend_9_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(libs__globals__lookup_maybe_string_option_3_0);
MR_decl_entry(io__stdout_stream_3_0);
MR_decl_entry(io__set_output_stream_4_0);
MR_decl_entry(libs__handle_options__display_compiler_version_2_0);
MR_decl_entry(libs__handle_options__long_usage_2_0);
MR_decl_entry(libs__handle_options__grade_directory_component_2_0);
MR_decl_entry(io__write_string_4_0);
MR_decl_entry(libs__globals__lookup_string_option_3_0);
MR_decl_entry(libs__globals__lookup_accumulating_option_3_0);
MR_decl_entry(io__write_list_6_0);
MR_decl_entry(backend_libs__compile_target_code__output_c_compiler_flags_4_0);
MR_decl_entry(backend_libs__compile_target_code__output_library_link_flags_4_0);
MR_decl_entry(parse_tree__source_file_map__write_source_file_map_4_0);
MR_decl_entry(backend_libs__compile_target_code__make_standalone_interface_4_0);
MR_decl_entry(fn__libs__globals__compilation_target_string_1_0);
MR_decl_entry(make__make_process_args_6_0);
MR_decl_entry(libs__handle_options__usage_2_0);
MR_decl_entry(io__get_exit_status_3_0);
MR_decl_entry(parse_tree__module_cmds__create_java_shell_script_5_0);
MR_decl_entry(backend_libs__compile_target_code__link_module_list_6_0);
MR_decl_entry(libs__globals__io_get_extra_error_info_3_0);
MR_decl_entry(io__report_stats_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module18)
	MR_init_entry1(top_level__mercury_compile__main_after_setup_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__main_after_setup_7_0);
	MR_init_label10(top_level__mercury_compile__main_after_setup_7_0,2,3,4,5,6,7,8,9,10,11)
	MR_init_label10(top_level__mercury_compile__main_after_setup_7_0,12,13,14,15,16,17,20,21,18,26)
	MR_init_label10(top_level__mercury_compile__main_after_setup_7_0,27,28,24,32,33,30,38,39,36,44)
	MR_init_label10(top_level__mercury_compile__main_after_setup_7_0,45,46,42,50,51,48,56,57,54,62)
	MR_init_label10(top_level__mercury_compile__main_after_setup_7_0,63,64,60,68,66,72,70,74,79,81)
	MR_init_label10(top_level__mercury_compile__main_after_setup_7_0,86,94,77,96,99,103,104,110,111,113)
	MR_init_label8(top_level__mercury_compile__main_after_setup_7_0,112,105,119,120,166,124,127,144)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'main_after_setup'/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(top_level__mercury_compile__main_after_setup_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(20);
	MR_sv(20) = (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_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 628;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i2);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 627;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i3);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 88;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i4);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 99;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i5);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 100;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i6);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 101;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i7);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 624;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i8);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 102;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i9);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 103;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i10);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 104;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i11);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 105;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i12);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 106;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i13);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 589;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i14);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 92;
	MR_np_call_localret_ent(libs__globals__lookup_maybe_string_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i15);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(19) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 52;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i16);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(top_level__mercury_compile__maybe_report_cmd_line_5_0,
		top_level__mercury_compile__main_after_setup_7_0_i17);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i18);
	}
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i20);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__set_output_stream_4_0,
		top_level__mercury_compile__main_after_setup_7_0_i21);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__handle_options__display_compiler_version_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i28);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(7),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i24);
	}
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i26);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__set_output_stream_4_0,
		top_level__mercury_compile__main_after_setup_7_0_i27);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__handle_options__long_usage_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i28);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(io__set_output_stream_4_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i30);
	}
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(libs__handle_options__grade_directory_component_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i32);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i33);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(io__write_string_4_0,
		top_level__mercury_compile__main_after_setup_7_0_i46);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(10),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i36);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 549;
	MR_np_call_localret_ent(libs__globals__lookup_string_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i38);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i39);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(io__write_string_4_0,
		top_level__mercury_compile__main_after_setup_7_0_i46);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(11),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i42);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 550;
	MR_np_call_localret_ent(libs__globals__lookup_string_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i44);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i45);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(io__write_string_4_0,
		top_level__mercury_compile__main_after_setup_7_0_i46);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("\n", 1);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(io__write_string_4_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(13),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i48);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 603;
	MR_np_call_localret_ent(libs__globals__lookup_accumulating_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i50);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i51);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Word) MR_string_const("\n", 1);
	MR_r5 = (MR_Word) MR_TAG_COMMON(0,10,1);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(io__write_list_6_0);
	}
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(14),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i54);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 469;
	MR_np_call_localret_ent(libs__globals__lookup_string_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i56);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i57);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,57)
	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_Word) MR_string_const("\n", 1);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i64);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(15),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i60);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 488;
	MR_np_call_localret_ent(libs__globals__lookup_string_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i62);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i63);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,63)
	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_Word) MR_string_const("\n", 1);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i64);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,64)
	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(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(io__write_string_4_0);
	}
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(16),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i66);
	}
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i68);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,68)
	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_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(backend_libs__compile_target_code__output_c_compiler_flags_4_0);
	}
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(17),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i70);
	}
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i72);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,72)
	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_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(backend_libs__compile_target_code__output_library_link_flags_4_0);
	}
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i74);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(parse_tree__source_file_map__write_source_file_map_4_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(19),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i77);
	}
	MR_sv(1) = MR_tfield(1, MR_sv(19), 0);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(libs__globals__get_target_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i79);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(((((MR_Integer) MR_r1 == (MR_Integer) 4) || ((MR_Integer) MR_r1 == (MR_Integer) 0)) || ((MR_Integer) MR_r1 == (MR_Integer) 5)))) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i81);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(backend_libs__compile_target_code__make_standalone_interface_4_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(3,6,9);
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(2,15,0);
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(3,6,10);
	MR_np_call_localret_ent(fn__libs__globals__compilation_target_string_1_0,
		top_level__mercury_compile__main_after_setup_7_0_i86);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,86)
	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_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,1,17);
	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_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	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_tempr2;
	MR_r1 = MR_sv(5);
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_pieces_plain_4_0,
		top_level__mercury_compile__main_after_setup_7_0_i94);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(io__set_exit_status_3_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(18),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i96);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(make__make_process_args_6_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(3),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i99);
	}
	if (MR_INT_NE(MR_sv(12),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i99);
	}
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(libs__handle_options__usage_2_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_np_call_localret_ent(top_level__mercury_compile__process_all_args_8_0,
		top_level__mercury_compile__main_after_setup_7_0_i103);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(io__get_exit_status_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i104);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i105);
	}
	if (MR_INT_NE(MR_sv(4),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i166);
	}
	if (MR_LTAGS_TEST(MR_sv(3),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i166);
	}
	MR_r1 = MR_tfield(1, MR_sv(3), 0);
	MR_np_call_localret_ent(parse_tree__file_names__file_name_to_module_name_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i110);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(libs__globals__get_target_2_0,
		top_level__mercury_compile__main_after_setup_7_0_i111);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i113);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(parse_tree__module_cmds__create_java_shell_script_5_0,
		top_level__mercury_compile__main_after_setup_7_0_i112);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r7 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(16,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(backend_libs__compile_target_code__link_module_list_6_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tempr2 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_tempr3 = MR_sv(6);
	MR_tfield(0, MR_tempr1, 4) = MR_tempr3;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_tempr3;
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(2);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__compile_with_module_options__ho2_8_0,
		top_level__mercury_compile__main_after_setup_7_0_i112);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_cmds__maybe_set_exit_status_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i166);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 46;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i119);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__globals__io_get_extra_error_info_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i120);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i166);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i124);
	}
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,166)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 54;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i127);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,124)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("For more information, recompile with \140-E\'.\n", 43);
	MR_np_call_localret_ent(io__write_string_3_0,
		top_level__mercury_compile__main_after_setup_7_0_i166);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__main_after_setup_7_0_i144);
	}
	MR_r1 = (MR_Word) MR_string_const("full_memory_stats", 17);
	MR_succip_word = MR_sv(20);
	MR_decr_sp(20);
	MR_np_tailcall_ent(io__report_stats_3_0);
MR_def_label(top_level__mercury_compile__main_after_setup_7_0,144)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(20);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(libs__handle_options__generate_default_globals_3_0);
MR_decl_entry(fn__string__string_1_0);
MR_decl_entry(require__unexpected_3_0);
MR_decl_entry(make__options_file__read_args_file_5_0);
MR_decl_entry(fn__make__options_file__options_variables_init_0_0);
MR_decl_entry(libs__handle_options__separate_option_args_5_0);
MR_decl_entry(libs__handle_options__handle_given_options_8_0);
MR_decl_entry(make__options_file__read_options_files_5_0);
MR_decl_entry(make__options_file__lookup_mmc_options_5_0);
MR_decl_entry(make__options_file__read_options_file_6_0);
MR_decl_entry(libs__handle_options__usage_errors_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module19)
	MR_init_entry1(top_level__mercury_compile__real_main_after_expansion_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__real_main_after_expansion_3_0);
	MR_init_label10(top_level__mercury_compile__real_main_after_expansion_3_0,7,9,10,6,12,13,15,16,17,18)
	MR_init_label10(top_level__mercury_compile__real_main_after_expansion_3_0,19,2,24,25,26,28,31,33,36,37)
	MR_init_label10(top_level__mercury_compile__real_main_after_expansion_3_0,40,43,42,45,47,39,50,51,38,73)
	MR_init_label4(top_level__mercury_compile__real_main_after_expansion_3_0,53,55,56,58)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'real_main_after_expansion'/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(top_level__mercury_compile__real_main_after_expansion_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i2);
	}
	MR_r3 = MR_tfield(1, MR_r1, 0);
	if ((strcmp((char *) (MR_Word *) MR_r3, MR_string_const("--arg-file", 10)) != 0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 1);
	MR_r3 = MR_tempr1;
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i2);
	}
	MR_r4 = MR_tfield(1, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i7);
	}
	MR_sv(1) = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(libs__handle_options__generate_default_globals_3_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i12);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r3, 0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = MR_r4;
	MR_np_call_localret_ent(fn__string__string_1_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i9);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("extra arguments with --arg-file: ", 33);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i10);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("top_level.mercury_compile", 25);
	MR_r2 = (MR_Word) MR_string_const("predicate \140top_level.mercury_compile.real_main_after_expansion\'/3", 65);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(require__unexpected_3_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i6);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__handle_options__generate_default_globals_3_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i12);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(make__options_file__read_args_file_5_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i13);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i15);
	}
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(2) = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i17);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(libs__handle_options__separate_option_args_5_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i16);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i17);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i18);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__handle_options__handle_given_options_8_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i19);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i58);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = (MR_Integer) 0;
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(top_level__mercury_compile__main_after_setup_7_0);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(libs__handle_options__handle_given_options_8_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i24);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r5;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i25);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,25)
	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(make__options_file__read_options_files_5_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i26);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i28);
	}
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i73);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	}
	MR_np_call_localret_ent(make__options_file__lookup_mmc_options_5_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i31);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i33);
	}
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i73);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_sv(1);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i36);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__handle_options__handle_given_options_8_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i37);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i39);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 609;
	}
	MR_np_call_localret_ent(libs__globals__lookup_maybe_string_option_3_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i40);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i42);
	}
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i43);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,43)
	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(1);
	}
	MR_np_call_localret_ent(make__options_file__lookup_mmc_options_5_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i38);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(make__options_file__read_options_file_6_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i45);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i47);
	}
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i51);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(1);
	}
	MR_np_call_localret_ent(make__options_file__lookup_mmc_options_5_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i38);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r4;
	MR_np_call_localret_ent(libs__handle_options__usage_errors_3_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i50);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i51);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i53);
	}
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(io__set_exit_status_3_0);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i55);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__handle_options__handle_given_options_8_0,
		top_level__mercury_compile__real_main_after_expansion_3_0_i56);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_after_expansion_3_0_i58);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(3);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(top_level__mercury_compile__main_after_setup_7_0);
MR_def_label(top_level__mercury_compile__real_main_after_expansion_3_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r4;
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(libs__handle_options__usage_errors_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(top_level__mercury_compile_module20)
	MR_init_entry1(top_level__mercury_compile__gc_init_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__gc_init_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gc_init'/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(top_level__mercury_compile__gc_init_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
#define	MR_PROC_LABEL	mercury__top_level__mercury_compile__gc_init_2_0
	MR_OBTAIN_GLOBAL_LOCK("gc_init");
{
#line 2257 "mercury_compile.m"

#ifdef MR_BOEHM_GC
    /*
    ** Explicitly force the initial heap size to be at least 4 Mb.
    **
    ** This works around a bug in the Boehm collector (for versions up
    ** to at least 6.2) where the collector would sometimes abort with
    ** the message `unexpected mark stack overflow' (e.g. in grade hlc.gc
    ** on dec-alpha-osf3.2).
    **
    ** Doing this should also improve performance slightly by avoiding
    ** frequent garbage collection during start-up.
    */
    GC_expand_hp(4 * 1024 * 1024);
#endif
;}
#line 6332 "top_level.mercury_compile.c"
	MR_RELEASE_GLOBAL_LOCK("gc_init");
#undef	MR_PROC_LABEL
	}
	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(io__stderr_stream_3_0);
MR_decl_entry(io__command_line_arguments_3_0);
MR_decl_entry(io__nl_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module21)
	MR_init_entry1(top_level__mercury_compile__real_main_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__real_main_2_0);
	MR_init_label8(top_level__mercury_compile__real_main_2_0,2,3,4,5,8,9,10,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'real_main'/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__top_level__mercury_compile__real_main_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	{
#define	MR_PROC_LABEL	mercury__top_level__mercury_compile__real_main_2_0
	MR_OBTAIN_GLOBAL_LOCK("gc_init");
{
#line 2257 "mercury_compile.m"

#ifdef MR_BOEHM_GC
    /*
    ** Explicitly force the initial heap size to be at least 4 Mb.
    **
    ** This works around a bug in the Boehm collector (for versions up
    ** to at least 6.2) where the collector would sometimes abort with
    ** the message `unexpected mark stack overflow' (e.g. in grade hlc.gc
    ** on dec-alpha-osf3.2).
    **
    ** Doing this should also improve performance slightly by avoiding
    ** frequent garbage collection during start-up.
    */
    GC_expand_hp(4 * 1024 * 1024);
#endif
;}
#line 6384 "top_level.mercury_compile.c"
	MR_RELEASE_GLOBAL_LOCK("gc_init");
#undef	MR_PROC_LABEL
	}
	MR_np_call_localret_ent(io__stderr_stream_3_0,
		top_level__mercury_compile__real_main_2_0_i2);
MR_def_label(top_level__mercury_compile__real_main_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__set_output_stream_4_0,
		top_level__mercury_compile__real_main_2_0_i3);
MR_def_label(top_level__mercury_compile__real_main_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__command_line_arguments_3_0,
		top_level__mercury_compile__real_main_2_0_i4);
MR_def_label(top_level__mercury_compile__real_main_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(top_level__mercury_compile__expand_at_file_arguments_4_0,
		top_level__mercury_compile__real_main_2_0_i5);
MR_def_label(top_level__mercury_compile__real_main_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__real_main_2_0_i7);
	}
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__real_main_2_0_i8);
MR_def_label(top_level__mercury_compile__real_main_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__io__error_message_1_0,
		top_level__mercury_compile__real_main_2_0_i9);
MR_def_label(top_level__mercury_compile__real_main_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__write_string_3_0,
		top_level__mercury_compile__real_main_2_0_i10);
MR_def_label(top_level__mercury_compile__real_main_2_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(io__nl_2_0);
MR_def_label(top_level__mercury_compile__real_main_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(top_level__mercury_compile__real_main_after_expansion_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(top_level__mercury_compile_module22)
	MR_init_entry1(top_level__mercury_compile__main_for_make_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__main_for_make_4_0);
	MR_init_label1(top_level__mercury_compile__main_for_make_4_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'main_for_make'/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_define_entry(mercury__top_level__mercury_compile__main_for_make_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__make__options_file__options_variables_init_0_0,
		top_level__mercury_compile__main_for_make_4_0_i2);
MR_def_label(top_level__mercury_compile__main_for_make_4_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_sv(2);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(top_level__mercury_compile__main_after_setup_7_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(top_level__mercury_compile_module23)
	MR_init_entry1(top_level__mercury_compile__process_args_callback_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_args_callback_7_0);
	MR_init_label9(top_level__mercury_compile__process_args_callback_7_0,2,5,6,4,8,9,10,11,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_args_callback'/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(top_level__mercury_compile__process_args_callback_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 624;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__process_args_callback_7_0_i2);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__process_args_callback_7_0_i4);
	}
	MR_sv(5) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_callback_7_0_i5);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_callback_7_0_i6);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__process_arg_list_10_0,
		top_level__mercury_compile__process_args_callback_7_0_i10);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_callback_7_0_i8);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		top_level__mercury_compile__process_args_callback_7_0_i9);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__process_stdin_arg_list_9_0,
		top_level__mercury_compile__process_args_callback_7_0_i10);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_r2 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__cord__list_1_0,
		top_level__mercury_compile__process_args_callback_7_0_i11);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,11)
	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(fn__cord__list_1_0,
		top_level__mercury_compile__process_args_callback_7_0_i12);
MR_def_label(top_level__mercury_compile__process_args_callback_7_0,12)
	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(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(top_level__mercury_compile_module24)
	MR_init_entry1(top_level__mercury_compile__process_arg_build_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_arg_build_10_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_arg_build'/10 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(top_level__mercury_compile__process_arg_build_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_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_declare_entry(mercury__do_call_closure_5);

MR_BEGIN_MODULE(top_level__mercury_compile_module25)
	MR_init_entry1(top_level__mercury_compile__apply_process_module_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__apply_process_module_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'apply_process_module'/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(top_level__mercury_compile__apply_process_module_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_set_prof_ho_caller_proc(MR_ENTRY_AP(top_level__mercury_compile__apply_process_module_7_0));
	MR_np_tailcall_ent(do_call_closure_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(top_level__mercury_compile_module26)
	MR_init_entry1(top_level__mercury_compile__process_module_2_callback_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__process_module_2_callback_8_0);
	MR_init_label1(top_level__mercury_compile__process_module_2_callback_8_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'process_module_2_callback'/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(top_level__mercury_compile__process_module_2_callback_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r5;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr3;
	MR_r5 = MR_tempr4;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__process_module_2_9_0,
		top_level__mercury_compile__process_module_2_callback_8_0_i2);
MR_def_label(top_level__mercury_compile__process_module_2_callback_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_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_decl_entry(parse_tree__modules__make_interface_8_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module27)
	MR_init_entry1(top_level__mercury_compile__call_make_interface_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__call_make_interface_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'call_make_interface'/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(top_level__mercury_compile__call_make_interface_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r4;
	MR_tempr3 = MR_r5;
	MR_r4 = MR_tfield(0, MR_tempr3, 0);
	MR_tempr2 = MR_tempr3;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tfield(0, MR_tempr2, 1);
	MR_np_tailcall_ent(parse_tree__modules__make_interface_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(top_level__mercury_compile_module28)
	MR_init_entry1(top_level__mercury_compile__call_make_short_interface_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__call_make_short_interface_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'call_make_short_interface'/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(top_level__mercury_compile__call_make_short_interface_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r5;
	MR_np_tailcall_ent(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_97_108_108_95_109_97_107_101_95_115_104_111_114_116_95_105_110_116_101_114_102_97_99_101_95_95_91_51_44_32_52_93_95_48_7_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__modules__make_private_interface_8_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module29)
	MR_init_entry1(top_level__mercury_compile__call_make_private_interface_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__call_make_private_interface_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'call_make_private_interface'/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(top_level__mercury_compile__call_make_private_interface_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r4;
	MR_tempr3 = MR_r5;
	MR_r4 = MR_tfield(0, MR_tempr3, 0);
	MR_tempr2 = MR_tempr3;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tfield(0, MR_tempr2, 1);
	MR_np_tailcall_ent(parse_tree__modules__make_private_interface_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_decl_entry(parse_tree__file_names__module_name_to_file_name_stem_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module30)
	MR_init_entry1(top_level__mercury_compile__module_to_link_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__module_to_link_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'module_to_link'/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(top_level__mercury_compile__module_to_link_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_tailcall_ent(parse_tree__file_names__module_name_to_file_name_stem_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(top_level__mercury_compile_module31)
	MR_init_entry1(top_level__mercury_compile__usual_find_target_files_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__usual_find_target_files_8_0);
	MR_init_label4(top_level__mercury_compile__usual_find_target_files_8_0,7,2,3,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'usual_find_target_files'/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(top_level__mercury_compile__usual_find_target_files_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r2,4)) {
		MR_GOTO_LAB(top_level__mercury_compile__usual_find_target_files_8_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r4;
	}
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		top_level__mercury_compile__usual_find_target_files_8_0_i7);
MR_def_label(top_level__mercury_compile__usual_find_target_files_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(top_level__mercury_compile__usual_find_target_files_8_0_i2);
	}
	MR_r1 = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_tempr2 = MR_sv(3);
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(4);
	}
MR_def_label(top_level__mercury_compile__usual_find_target_files_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r5 = MR_sv(3);
MR_def_label(top_level__mercury_compile__usual_find_target_files_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r5;
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__usual_find_target_files_8_0_i9);
MR_def_label(top_level__mercury_compile__usual_find_target_files_8_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_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_tempr1;
	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(top_level__mercury_compile_module32)
	MR_init_entry1(top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__find_timestamp_files_2_8_0);
	MR_init_label4(top_level__mercury_compile__find_timestamp_files_2_8_0,7,2,3,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'find_timestamp_files_2'/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(top_level__mercury_compile__find_timestamp_files_2_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r2,4)) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_2_8_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r4;
	}
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		top_level__mercury_compile__find_timestamp_files_2_8_0_i7);
MR_def_label(top_level__mercury_compile__find_timestamp_files_2_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(top_level__mercury_compile__find_timestamp_files_2_8_0_i2);
	}
	MR_r1 = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_tempr2 = MR_sv(3);
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(4);
	}
MR_def_label(top_level__mercury_compile__find_timestamp_files_2_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r5 = MR_sv(3);
MR_def_label(top_level__mercury_compile__find_timestamp_files_2_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r5;
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__find_timestamp_files_2_8_0_i9);
MR_def_label(top_level__mercury_compile__find_timestamp_files_2_8_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_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_tempr1;
	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(hlds__hlds_module__module_info_get_all_deps_2_0);
MR_decl_entry(fn__set__from_list_1_0);
MR_decl_entry(hlds__hlds_module__module_info_get_analysis_info_2_0);
MR_decl_entry(analysis__prepare_intermodule_analysis_7_0);
MR_decl_entry(hlds__hlds_module__module_info_set_analysis_info_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module33)
	MR_init_entry1(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__prepare_for_intermodule_analysis_7_0);
	MR_init_label10(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,2,3,4,6,7,8,9,10,11,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'prepare_for_intermodule_analysis'/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(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(6) = MR_r4;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("% Preparing for intermodule analysis...\n", 40);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i2);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_all_deps_2_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i3);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 631;
	MR_np_call_localret_ent(libs__globals__lookup_accumulating_option_3_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i4);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,10,2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i6);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,6)
	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_np_call_localret_ent(fn__set__from_list_1_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i7);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_analysis_info_2_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i8);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(analysis__prepare_intermodule_analysis_7_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i9);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_analysis_info_3_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i10);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Word) MR_string_const("% done.\n", 8);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i11);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__prepare_for_intermodule_analysis_7_0_i12);
MR_def_label(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = 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(top_level__mercury_compile_module34)
	MR_init_entry1(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0);
	MR_init_label10(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,2,4,5,6,7,9,10,11,12,13)
	MR_init_label2(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,14,15)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_prepare_for_intermodule_analysis'/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(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r2 = (MR_Integer) 319;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i2);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i4);
	}
	MR_r1 = MR_sv(4);
	MR_decr_sp_and_return(7);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Word) MR_string_const("% Preparing for intermodule analysis...\n", 40);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i5);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_all_deps_2_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i6);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 631;
	MR_np_call_localret_ent(libs__globals__lookup_accumulating_option_3_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i7);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(6);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,10,3);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i9);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__set__from_list_1_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i10);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_analysis_info_2_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i11);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(analysis__prepare_intermodule_analysis_7_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i12);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_analysis_info_3_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i13);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Word) MR_string_const("% done.\n", 8);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i14);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0_i15);
MR_def_label(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = 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_decl_entry(backend_libs__compile_target_code__maybe_pic_object_file_extension_3_0);
MR_decl_entry(fn__parse_tree__prog_foreign__foreign_language_module_name_2_1);
MR_decl_entry(backend_libs__compile_target_code__do_compile_c_file_8_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module35)
	MR_init_entry1(top_level__mercury_compile__mercury_compile_asm_c_code_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__mercury_compile_asm_c_code_5_0);
	MR_init_label9(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,2,3,4,5,6,7,8,9,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mercury_compile_asm_c_code'/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(top_level__mercury_compile__mercury_compile_asm_c_code_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(backend_libs__compile_target_code__get_linked_target_type_2_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i2);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,2)
	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(backend_libs__compile_target_code__get_object_code_type_3_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i3);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(backend_libs__compile_target_code__maybe_pic_object_file_extension_3_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i4);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = (MR_Word) MR_string_const(".c", 2);
	MR_r4 = (MR_Integer) 1;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i5);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__parse_tree__prog_foreign__foreign_language_module_name_2_1,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i6);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_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(4);
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i7);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(io__output_stream_3_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i8);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(1);
	MR_np_call_localret_ent(backend_libs__compile_target_code__do_compile_c_file_8_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i9);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_cmds__maybe_set_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_asm_c_code_5_0_i10);
MR_def_label(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_get_globals_2_0);
MR_decl_entry(hlds__hlds_module__module_info_get_name_2_0);
MR_decl_entry(io__open_output_4_0);
MR_decl_entry(transform_hlds__dependency_graph__write_prof_dependency_graph_4_0);
MR_decl_entry(io__close_output_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module36)
	MR_init_entry1(top_level__mercury_compile__maybe_output_prof_call_graph_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__maybe_output_prof_call_graph_6_0);
	MR_init_label10(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,2,3,4,8,7,11,12,13,14,15)
	MR_init_label10(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,18,19,20,17,21,22,23,24,25,26)
	MR_init_label1(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_output_prof_call_graph'/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(top_level__mercury_compile__maybe_output_prof_call_graph_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i2);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r2 = (MR_Integer) 182;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i3);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Integer) 183;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i4);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i8);
	}
	MR_r1 = MR_sv(1);
	MR_GOTO_LAB(top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i7);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i6);
	}
	MR_r1 = MR_sv(1);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r2 = (MR_Word) MR_string_const("% Outputing profiling call graph...", 35);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i11);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i12);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_name_2_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i13);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,13)
	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_Word) MR_string_const(".prof", 5);
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i14);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__open_output_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i15);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i17);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(fn__io__error_message_1_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i18);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("unable to write profiling static call graph: ", 45);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i19);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__report_error_3_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i20);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_sv(4) = MR_sv(5);
	MR_r2 = (MR_Word) MR_string_const(" done.\n", 7);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i25);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(io__set_output_stream_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i21);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(transform_hlds__dependency_graph__write_prof_dependency_graph_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i22);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,22)
	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(io__set_output_stream_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i23);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(io__close_output_3_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i24);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const(" done.\n", 7);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i25);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__maybe_output_prof_call_graph_6_0_i26);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_decr_sp_and_return(6);
MR_def_label(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(top_level__mercury_compile_middle_passes__middle_pass_7_0);
MR_decl_entry(fn__parse_tree__error_util__contains_errors_2_0);
MR_decl_entry(hlds__hlds_module__module_info_get_num_errors_2_0);
MR_decl_entry(top_level__mercury_compile_mlds_back_end__mlds_backend_7_0);
MR_decl_entry(top_level__mercury_compile_mlds_back_end__mlds_to_csharp_4_0);
MR_decl_entry(top_level__mercury_compile_erl_back_end__erlang_backend_6_0);
MR_decl_entry(top_level__mercury_compile_erl_back_end__elds_to_erlang_4_0);
MR_decl_entry(fn__top_level__mercury_compile_mlds_back_end__mlds_has_main_1_0);
MR_decl_entry(top_level__mercury_compile_mlds_back_end__mlds_to_il_assembler_4_0);
MR_decl_entry(backend_libs__compile_target_code__il_assemble_7_0);
MR_decl_entry(top_level__mercury_compile_mlds_back_end__mlds_to_java_4_0);
MR_decl_entry(backend_libs__compile_target_code__compile_java_files_6_0);
MR_decl_entry(backend_libs__export__get_foreign_export_decls_2_0);
MR_decl_entry(backend_libs__export__produce_header_file_5_0);
MR_decl_entry(top_level__mercury_compile_mlds_back_end__maybe_mlds_to_gcc_5_0);
MR_decl_entry(recompilation__usage__write_usage_file_5_0);
MR_decl_entry(top_level__mercury_compile_llds_back_end__llds_backend_pass_8_0);
MR_decl_entry(top_level__mercury_compile_llds_back_end__llds_output_pass_8_0);
MR_decl_entry(top_level__mercury_compile_mlds_back_end__mlds_to_high_level_c_4_0);
MR_decl_entry(ll_backend__llds_to_x86_64__llds_to_x86_64_asm_3_0);
MR_decl_entry(ll_backend__llds_to_x86_64_out__output_x86_64_asm_4_0);
MR_declare_entry(mercury__do_call_closure_2);
MR_decl_entry(parse_tree__module_cmds__touch_datestamp_4_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module37)
	MR_init_entry1(top_level__mercury_compile__mercury_compile_after_front_end_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__mercury_compile_after_front_end_11_0);
	MR_init_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0,2,3,4,5,6,7,8,9,10,11)
	MR_init_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0,12,13,19,18,22,21,25,28,29,30)
	MR_init_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0,31,27,24,35,36,39,40,42,34,44)
	MR_init_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0,45,48,49,97,53,54,47,59,60,58)
	MR_init_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0,61,62,65,66,67,68,69,70,71,56)
	MR_init_label10(top_level__mercury_compile__mercury_compile_after_front_end_11_0,73,74,75,76,77,78,80,14,81,82)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mercury_compile_after_front_end'/11 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(top_level__mercury_compile__mercury_compile_after_front_end_11_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_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(8) = MR_tempr1;
	MR_sv(9) = MR_r7;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i2);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r2 = (MR_Integer) 44;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i3);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 54;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i4);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(8);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__maybe_output_prof_call_graph_6_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i5);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,5)
	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(9);
	}
	MR_np_call_localret_ent(top_level__mercury_compile_middle_passes__middle_pass_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i6);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 238;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i7);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(libs__globals__get_target_2_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i8);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 96;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i9);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_string_const(".used", 5);
	MR_r4 = (MR_Integer) 1;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i10);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__remove_file_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i11);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(fn__parse_tree__error_util__contains_errors_2_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i12);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_num_errors_2_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i13);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(5),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i14);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i14);
	}
	if (MR_INT_NE(MR_sv(8),2)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i18);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_backend_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i19);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r3;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_to_csharp_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),6)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i21);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_erl_back_end__erlang_backend_6_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i22);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile_erl_back_end__elds_to_erlang_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i24);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_backend_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i25);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i27);
	}
	MR_sv(5) = MR_r2;
	MR_sv(10) = MR_r3;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__top_level__mercury_compile_mlds_back_end__mlds_has_main_1_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i28);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_to_il_assembler_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i29);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__output_stream_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i30);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(6);
	MR_np_call_localret_ent(backend_libs__compile_target_code__il_assemble_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i31);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_cmds__maybe_set_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r3;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_to_il_assembler_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),3)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i34);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_backend_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i35);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r3;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_to_java_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i36);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
	}
	MR_np_call_localret_ent(io__output_stream_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i39);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_string_const(".java", 5);
	MR_r4 = (MR_Integer) 1;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i40);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,40)
	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_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(6);
	}
	MR_np_call_localret_ent(backend_libs__compile_target_code__compile_java_files_6_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i42);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_cmds__maybe_set_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(backend_libs__export__get_foreign_export_decls_2_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i44);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(backend_libs__export__produce_header_file_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i45);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),4)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i47);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_backend_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i48);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r3;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__maybe_mlds_to_gcc_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i49);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i53);
	}
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(recompilation__usage__write_usage_file_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i77);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(top_level__mercury_compile__mercury_compile_asm_c_code_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i54);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,54)
	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_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(11);
	}
	MR_np_call_localret_ent(recompilation__usage__write_usage_file_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i77);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i56);
	}
	if (MR_INT_NE(MR_sv(7),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i58);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_llds_back_end__llds_backend_pass_8_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i59);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r4;
	MR_sv(7) = MR_r1;
	MR_r4 = MR_sv(4);
	MR_np_call_localret_ent(top_level__mercury_compile_llds_back_end__llds_output_pass_8_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i60);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(7);
	}
	MR_np_call_localret_ent(recompilation__usage__write_usage_file_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i77);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_backend_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i61);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r3;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(top_level__mercury_compile_mlds_back_end__mlds_to_high_level_c_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i62);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_string_const(".c", 2);
	MR_r4 = (MR_Integer) 1;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i65);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(backend_libs__compile_target_code__get_linked_target_type_2_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i66);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(backend_libs__compile_target_code__get_object_code_type_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i67);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(backend_libs__compile_target_code__maybe_pic_object_file_extension_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i68);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_tempr1;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i69);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(io__output_stream_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i70);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(6);
	MR_np_call_localret_ent(backend_libs__compile_target_code__do_compile_c_file_8_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i71);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(parse_tree__module_cmds__maybe_set_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i97);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile_llds_back_end__llds_backend_pass_8_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i73);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r4;
	MR_sv(7) = MR_r1;
	MR_r2 = MR_r3;
	MR_np_call_localret_ent(ll_backend__llds_to_x86_64__llds_to_x86_64_asm_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i74);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(io__stdout_stream_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i75);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__llds_to_x86_64_out__output_x86_64_asm_4_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i76);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(recompilation__usage__write_usage_file_5_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i77);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_set_prof_ho_caller_proc(MR_ENTRY_AP(top_level__mercury_compile__mercury_compile_after_front_end_11_0));
	MR_noprof_call_localret(MR_ENTRY(mercury__do_call_closure_2),
		mercury__top_level__mercury_compile__mercury_compile_after_front_end_11_0_i78);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,78)
	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(17,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(parse_tree__module_cmds__touch_datestamp_4_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(6);
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_IO_CTOR_ADDR;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(list__foldl_4_2,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i80);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(10);
	MR_decr_sp_and_return(12);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__get_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i81);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_after_front_end_11_0_i82);
	}
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_after_front_end_11_0_i82);
MR_def_label(top_level__mercury_compile__mercury_compile_after_front_end_11_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(10);
	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(parse_tree__error_util__maybe_write_out_errors_no_module_6_0);
MR_decl_entry(parse_tree__module_qual__module_qualify_items_13_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module38)
	MR_init_entry1(top_level__mercury_compile__invoke_module_qualify_items_16_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__invoke_module_qualify_items_16_0);
	MR_init_label9(top_level__mercury_compile__invoke_module_qualify_items_16_0,2,3,4,5,7,8,9,10,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'invoke_module_qualify_items'/16 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(top_level__mercury_compile__invoke_module_qualify_items_16_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_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_r7;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_r8;
	}
	MR_np_call_localret_ent(parse_tree__error_util__maybe_write_out_errors_no_module_6_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i2);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_string_const("% Module qualifying items...\n", 29);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i3);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i4);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_string_const(".m", 2);
	MR_r4 = (MR_Integer) 1;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i5);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r5, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r5, 0) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(parse_tree__module_qual__module_qualify_items_13_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i7);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_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_sv(5) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_r6;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i8);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__error_util__maybe_write_out_errors_no_module_6_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i9);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_string_const("% done.\n", 8);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i10);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__invoke_module_qualify_items_16_0_i11);
MR_def_label(top_level__mercury_compile__invoke_module_qualify_items_16_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(1);
	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_decl_entry(transform_hlds__intermod__grab_opt_files_6_0);
MR_decl_entry(parse_tree__module_imports__module_and_imports_get_module_name_2_0);
MR_decl_entry(bool__or_3_0);
MR_decl_entry(parse_tree__error_util__write_error_spec_8_0);
MR_decl_entry(transform_hlds__trans_opt__grab_trans_opt_files_7_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module39)
	MR_init_entry1(top_level__mercury_compile__maybe_grab_optfiles_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__maybe_grab_optfiles_8_0);
	MR_init_label10(top_level__mercury_compile__maybe_grab_optfiles_8_0,2,3,4,5,6,7,11,13,10,17)
	MR_init_label10(top_level__mercury_compile__maybe_grab_optfiles_8_0,18,19,20,9,21,26,27,67,29,25)
	MR_init_label6(top_level__mercury_compile__maybe_grab_optfiles_8_0,22,49,52,56,57,60)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_grab_optfiles'/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(top_level__mercury_compile__maybe_grab_optfiles_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r2 = (MR_Integer) 314;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i2);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 316;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i3);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 84;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i4);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 318;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i5);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 85;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i6);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 319;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i7);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i11);
	}
	MR_r1 = MR_sv(3);
	MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i10);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(5),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i13);
	}
	MR_r1 = MR_sv(3);
	MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i10);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i9);
	}
	MR_r1 = MR_sv(3);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(7),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i9);
	}
	MR_sv(3) = MR_r1;
	MR_r2 = (MR_Word) MR_string_const("% Reading .opt files...\n", 24);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i17);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i18);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(transform_hlds__intermod__grab_opt_files_6_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i19);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("% Done.\n", 8);
	}
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i20);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i21);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_sv(5) = (MR_Integer) 0;
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(9),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i22);
	}
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i25);
	}
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_imports__module_and_imports_get_module_name_2_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i26);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 14;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i27);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i29);
	}
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(bool__or_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i60);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,29)
	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) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	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,1,20);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(3,6,12);
	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_Word) MR_TAG_COMMON(3,6,11);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr2;
	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) 4);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(1, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(1, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tfield(1, MR_tempr1, 3) = MR_tempr2;
	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_r1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r1, 2) = MR_tempr2;
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__error_util__write_error_spec_8_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i67);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(1, MR_sv(4), 0);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__trans_opt__grab_trans_opt_files_7_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i57);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(7),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i49);
	}
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(bool__or_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i60);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_grab_optfiles_8_0_i52);
	}
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(bool__or_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i60);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr3 = MR_sv(2);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(0, MR_tempr3, 5);
	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_tfield(0, MR_tempr3, 4);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tfield(0, MR_tempr3, 3);
	MR_tfield(1, MR_r2, 1) = MR_tempr2;
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__prim_data, sym_name);
	}
	MR_np_call_localret_ent(list__condense_2_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i56);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,56)
	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_np_call_localret_ent(transform_hlds__trans_opt__grab_trans_opt_files_7_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i57);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(bool__or_3_0,
		top_level__mercury_compile__maybe_grab_optfiles_8_0_i60);
MR_def_label(top_level__mercury_compile__maybe_grab_optfiles_8_0,60)
	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_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_decl_entry(parse_tree__equiv_type__expand_eqv_types_10_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module40)
	MR_init_entry1(top_level__mercury_compile__expand_equiv_types_17_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__expand_equiv_types_17_0);
	MR_init_label9(top_level__mercury_compile__expand_equiv_types_17_0,2,3,4,5,6,7,8,9,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'expand_equiv_types'/17 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(top_level__mercury_compile__expand_equiv_types_17_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_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_r8;
	}
	MR_np_call_localret_ent(parse_tree__error_util__maybe_write_out_errors_no_module_6_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i2);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Word) MR_string_const("% Expanding equivalence types...\n", 33);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i3);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(libs__file_util__maybe_flush_output_3_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i4);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_np_call_localret_ent(parse_tree__equiv_type__expand_eqv_types_10_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i5);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_sv(6) = MR_r3;
	MR_sv(7) = MR_r4;
	MR_sv(8) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(9) = MR_tempr1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__contains_errors_2_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i6);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(10);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i7);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__error_util__maybe_write_out_errors_no_module_6_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i8);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Word) MR_string_const("% done.\n", 8);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i9);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__expand_equiv_types_17_0_i10);
MR_def_label(top_level__mercury_compile__expand_equiv_types_17_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(1);
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__make_hlds__parse_tree_to_hlds_11_0);
MR_decl_entry(hlds__hlds_module__module_info_set_event_set_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module41)
	MR_init_entry1(top_level__mercury_compile__make_hlds_18_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__make_hlds_18_0);
	MR_init_label10(top_level__mercury_compile__make_hlds_18_0,2,3,4,6,7,8,9,10,13,18)
	MR_init_label5(top_level__mercury_compile__make_hlds_18_0,12,19,20,21,22)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_hlds'/18 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(top_level__mercury_compile__make_hlds_18_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(8) = MR_tempr1;
	MR_sv(9) = MR_r9;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_r10;
	}
	MR_np_call_localret_ent(parse_tree__error_util__maybe_write_out_errors_no_module_6_0,
		top_level__mercury_compile__make_hlds_18_0_i2);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Word) MR_string_const("% Converting parse tree to hlds...\n", 35);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__make_hlds_18_0_i3);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = (MR_Word) MR_string_const(".hlds_dump", 10);
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__make_hlds_18_0_i4);
MR_def_label(top_level__mercury_compile__make_hlds_18_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_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr2;
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__make_hlds__parse_tree_to_hlds_11_0,
		top_level__mercury_compile__make_hlds_18_0_i6);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_sv(6) = MR_r4;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_r5;
	MR_r3 = MR_sv(10);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__make_hlds_18_0_i7);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_event_set_3_0,
		top_level__mercury_compile__make_hlds_18_0_i8);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(io__get_exit_status_3_0,
		top_level__mercury_compile__make_hlds_18_0_i9);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__parse_tree__error_util__contains_errors_2_0,
		top_level__mercury_compile__make_hlds_18_0_i10);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__make_hlds_18_0_i13);
	}
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__make_hlds_18_0_i12);
	}
MR_def_label(top_level__mercury_compile__make_hlds_18_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__make_hlds_18_0_i18);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(8);
	MR_sv(1) = (MR_Integer) 1;
	MR_r3 = MR_sv(7);
	MR_GOTO_LAB(top_level__mercury_compile__make_hlds_18_0_i19);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(8);
	MR_sv(1) = (MR_Integer) 0;
	MR_r3 = MR_sv(7);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(parse_tree__error_util__maybe_write_out_errors_no_module_6_0,
		top_level__mercury_compile__make_hlds_18_0_i20);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Word) MR_string_const("% done.\n", 8);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__make_hlds_18_0_i21);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(9);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__make_hlds_18_0_i22);
MR_def_label(top_level__mercury_compile__make_hlds_18_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(4);
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__bool__or_2_0);
MR_decl_entry(parse_tree__modules__maybe_read_dependency_file_5_0);
MR_decl_entry(parse_tree__module_imports__module_and_imports_get_results_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_event_spec_0;
MR_decl_entry(parse_tree__prog_event__read_event_set_6_0);
MR_decl_entry(parse_tree__module_qual__mq_info_get_recompilation_info_2_0);
MR_decl_entry(parse_tree__module_qual__mq_info_set_recompilation_info_3_0);
MR_decl_entry(hlds__passes_aux__maybe_dump_hlds_7_0);
MR_decl_entry(parse_tree__write_deps_file__write_dependency_file_6_0);
MR_decl_entry(make__make_write_module_dep_file_4_0);
MR_decl_entry(hlds__hlds_module__module_info_incr_errors_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module42)
	MR_init_entry1(top_level__mercury_compile__pre_hlds_pass_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__pre_hlds_pass_15_0);
	MR_init_label10(top_level__mercury_compile__pre_hlds_pass_15_0,2,3,4,5,6,7,8,11,10,9)
	MR_init_label10(top_level__mercury_compile__pre_hlds_pass_15_0,12,13,14,15,18,16,19,20,21,23)
	MR_init_label10(top_level__mercury_compile__pre_hlds_pass_15_0,24,25,26,27,28,29,31,36,37,38)
	MR_init_label10(top_level__mercury_compile__pre_hlds_pass_15_0,41,42,43,59,45,40,39,49,53,48)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'pre_hlds_pass'/15 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(top_level__mercury_compile__pre_hlds_pass_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(21);
	MR_sv(21) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(19) = MR_r4;
	MR_sv(7) = MR_r5;
	MR_r2 = (MR_Integer) 54;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i2);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 44;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i3);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 594;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i4);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__bool__or_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i5);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 84;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i6);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__bool__or_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i7);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(parse_tree__module_imports__module_and_imports_get_module_name_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i8);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i10);
	}
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(parse_tree__modules__maybe_read_dependency_file_5_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i11);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r6 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_r6;
	MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i9);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(6) = MR_r3;
	MR_sv(9) = MR_r4;
	MR_np_call_localret_ent(top_level__mercury_compile__maybe_grab_optfiles_8_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i12);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_np_call_localret_ent(parse_tree__module_imports__module_and_imports_get_results_4_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i13);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_sv(13) = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r1 = MR_sv(13);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i14);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_tfield(0, MR_sv(4), 17);
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 162;
	MR_np_call_localret_ent(libs__globals__lookup_string_option_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i15);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r1, MR_string_const("", 0)) != 0)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i16);
	}
	MR_sv(11) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, event_spec);
	MR_np_call_localret_ent(fn__map__init_0_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i18);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r10 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r7 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r4 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_r5 = MR_sv(11);
	MR_sv(7) = (MR_Word) MR_string_const("", 0);
	MR_r3 = MR_r10;
	MR_r11 = MR_sv(12);
	MR_sv(12) = (MR_Integer) 0;
	MR_r8 = MR_r11;
	MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i25);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(parse_tree__prog_event__read_event_set_6_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i19);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(12);
	MR_sv(12) = MR_r1;
	MR_tempr2 = MR_sv(13);
	MR_sv(13) = MR_r2;
	MR_tempr3 = MR_r3;
	MR_sv(14) = MR_tempr3;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_tempr3;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i20);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(14);
	MR_sv(14) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__contains_errors_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i21);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i23);
	}
	MR_r10 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r7 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r4 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_r5 = MR_sv(11);
	MR_sv(7) = MR_sv(12);
	MR_r3 = MR_sv(13);
	MR_sv(12) = MR_r10;
	MR_r8 = MR_sv(14);
	MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i25);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, event_spec);
	MR_np_call_localret_ent(fn__map__init_0_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i24);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r7 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r4 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_r5 = MR_sv(11);
	MR_sv(7) = (MR_Word) MR_string_const("", 0);
	MR_r3 = MR_tempr1;
	MR_r8 = MR_sv(14);
	}
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r6;
	MR_sv(3) = MR_r4;
	MR_np_call_localret_ent(top_level__mercury_compile__invoke_module_qualify_items_16_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i26);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(13) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(14) = MR_tempr1;
	MR_sv(15) = MR_r4;
	MR_sv(16) = MR_r5;
	MR_sv(17) = MR_r6;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_get_recompilation_info_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i27);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,27)
	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_sv(6);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(13);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_sv(17);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__expand_equiv_types_17_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i28);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(13) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(14);
	MR_sv(14) = MR_r3;
	MR_sv(17) = MR_r4;
	MR_sv(18) = MR_r6;
	MR_sv(20) = MR_r7;
	MR_r1 = MR_r5;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__module_qual__mq_info_set_recompilation_info_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i29);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(13);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(11);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_sv(14);
	MR_r7 = MR_sv(17);
	MR_r8 = MR_sv(6);
	MR_r9 = MR_sv(5);
	MR_r10 = MR_sv(20);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__make_hlds_18_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i31);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,31)
	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_r3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(18);
	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(12);
	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(15);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(3) = MR_r2;
	MR_sv(7) = MR_r5;
	MR_sv(11) = MR_r1;
	MR_sv(5) = MR_r4;
	MR_sv(12) = MR_r6;
	MR_r1 = MR_tempr2;
	}
	MR_np_call_localret_ent(bool__or_list_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i36);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(bool__or_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i37);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = (MR_Word) MR_string_const("initial", 7);
	MR_r4 = MR_sv(19);
	MR_np_call_localret_ent(hlds__passes_aux__maybe_dump_hlds_7_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i38);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i40);
	}
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_all_deps_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i41);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(9);
	}
	MR_np_call_localret_ent(parse_tree__write_deps_file__write_dependency_file_6_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i42);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 109;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i43);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i45);
	}
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(11);
	MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i39);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(make__make_write_module_dep_file_4_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i59);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(11);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_sv(7),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i49);
	}
	if (MR_INT_NE(MR_sv(10),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__pre_hlds_pass_15_0_i48);
	}
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_module__module_info_incr_errors_2_0,
		top_level__mercury_compile__pre_hlds_pass_15_0_i53);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_r8 = MR_sv(12);
	MR_decr_sp_and_return(21);
MR_def_label(top_level__mercury_compile__pre_hlds_pass_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_r8 = MR_sv(12);
	MR_decr_sp_and_return(21);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(transform_hlds__dependency_graph__write_dependency_graph_4_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module43)
	MR_init_entry1(top_level__mercury_compile__maybe_write_dependency_graph_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__maybe_write_dependency_graph_6_0);
	MR_init_label10(top_level__mercury_compile__maybe_write_dependency_graph_6_0,2,3,21,5,6,7,8,9,12,13)
	MR_init_label6(top_level__mercury_compile__maybe_write_dependency_graph_6_0,11,15,16,17,18,19)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_write_dependency_graph'/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(top_level__mercury_compile__maybe_write_dependency_graph_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(4) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i2);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r2 = (MR_Integer) 132;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i3);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_write_dependency_graph_6_0_i5);
	}
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_decr_sp_and_return(5);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const("% Writing dependency graph...", 29);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i6);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_name_2_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i7);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,7)
	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_Word) MR_string_const(".dependency_graph", 17);
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(parse_tree__file_names__module_name_to_file_name_7_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i8);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(io__open_output_4_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i9);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__maybe_write_dependency_graph_6_0_i11);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(fn__io__error_message_1_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i12);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("unable to write dependency graph: ", 34);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i13);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__report_error_3_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i19);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_tfield(0, MR_r1, 0);
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(io__set_output_stream_4_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i15);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,15)
	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(transform_hlds__dependency_graph__write_dependency_graph_4_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i16);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,16)
	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(io__set_output_stream_4_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i17);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(io__close_output_3_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i18);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_string_const(" done.\n", 7);
	MR_np_call_localret_ent(libs__file_util__maybe_write_string_4_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i19);
MR_def_label(top_level__mercury_compile__maybe_write_dependency_graph_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		top_level__mercury_compile__maybe_write_dependency_graph_6_0_i21);
#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(top_level__mercury_compile_front_end__frontend_pass_13_0);
MR_decl_entry(hlds__hlds_module__module_info_set_globals_3_0);
MR_decl_entry(top_level__mercury_compile_middle_passes__maybe_unused_args_6_0);
MR_decl_entry(top_level__mercury_compile_middle_passes__output_trans_opt_file_5_0);
MR_decl_entry(top_level__mercury_compile_middle_passes__output_analysis_file_5_0);
MR_decl_entry(check_hlds__xml_documentation__xml_documentation_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module44)
	MR_init_entry1(top_level__mercury_compile__mercury_compile_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__mercury_compile_11_0);
	MR_init_label10(top_level__mercury_compile__mercury_compile_11_0,2,3,4,5,6,7,12,14,15,16)
	MR_init_label10(top_level__mercury_compile__mercury_compile_11_0,17,18,19,20,21,25,27,29,30,23)
	MR_init_label10(top_level__mercury_compile__mercury_compile_11_0,64,32,34,39,40,37,41,44,45,8)
	MR_init_label2(top_level__mercury_compile__mercury_compile_11_0,9,52)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mercury_compile'/11 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(top_level__mercury_compile__mercury_compile_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(16);
	MR_sv(16) = (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(8) = MR_r5;
	MR_sv(9) = MR_r6;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__module_imports__module_and_imports_get_module_name_2_0,
		top_level__mercury_compile__mercury_compile_11_0_i2);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 94;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i3);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 95;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i4);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(bool__or_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i5);
MR_def_label(top_level__mercury_compile__mercury_compile_11_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_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(9);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__pre_hlds_pass_15_0,
		top_level__mercury_compile__mercury_compile_11_0_i6);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r6;
	MR_sv(8) = MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_r4;
	MR_r3 = MR_r5;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_r7;
	MR_r7 = MR_r8;
	}
	MR_np_call_localret_ent(top_level__mercury_compile_front_end__frontend_pass_13_0,
		top_level__mercury_compile__mercury_compile_11_0_i7);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i9);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i9);
	}
	MR_sv(8) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(14) = MR_tempr1;
	MR_sv(15) = MR_r3;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__parse_tree__error_util__contains_errors_2_0,
		top_level__mercury_compile__mercury_compile_11_0_i12);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i8);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 44;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i14);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 54;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i15);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__maybe_write_dependency_graph_6_0,
		top_level__mercury_compile__mercury_compile_11_0_i16);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 84;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i17);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 85;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i18);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 86;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i19);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 87;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i20);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i21);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(15);
	MR_r3 = MR_sv(14);
	MR_decr_sp_and_return(16);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(7),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i23);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 10;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i25);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i27);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(15);
	MR_r3 = MR_sv(14);
	MR_decr_sp_and_return(16);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 338;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,5,0);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(libs__globals__set_option_4_0,
		top_level__mercury_compile__mercury_compile_11_0_i29);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_globals_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i30);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile_middle_passes__maybe_unused_args_6_0,
		top_level__mercury_compile__mercury_compile_11_0_i64);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(11),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i32);
	}
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(15);
	MR_r3 = MR_sv(14);
	MR_decr_sp_and_return(16);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(12),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i34);
	}
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(15);
	MR_np_call_localret_ent(top_level__mercury_compile_middle_passes__output_trans_opt_file_5_0,
		top_level__mercury_compile__mercury_compile_11_0_i40);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(13),1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i37);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile__prepare_for_intermodule_analysis_7_0,
		top_level__mercury_compile__mercury_compile_11_0_i39);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(15);
	MR_np_call_localret_ent(top_level__mercury_compile_middle_passes__output_analysis_file_5_0,
		top_level__mercury_compile__mercury_compile_11_0_i40);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,40)
	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_r3 = MR_sv(14);
	MR_decr_sp_and_return(16);
	}
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i41);
	}
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(check_hlds__xml_documentation__xml_documentation_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i64);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(10);
	MR_np_call_localret_ent(top_level__mercury_compile__maybe_prepare_for_intermodule_analysis_7_0,
		top_level__mercury_compile__mercury_compile_11_0_i44);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(14);
	MR_r7 = MR_sv(15);
	}
	MR_np_call_localret_ent(top_level__mercury_compile__mercury_compile_after_front_end_11_0,
		top_level__mercury_compile__mercury_compile_11_0_i45);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(14);
	MR_decr_sp_and_return(16);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(14);
	MR_r3 = MR_sv(15);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r4;
	MR_sv(15) = MR_r3;
	MR_np_call_localret_ent(io__get_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i52);
MR_def_label(top_level__mercury_compile__mercury_compile_11_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__mercury_compile_11_0_i64);
	}
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(io__set_exit_status_3_0,
		top_level__mercury_compile__mercury_compile_11_0_i64);
#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__modules__check_for_no_exports_7_0);
MR_decl_entry(parse_tree__modules__grab_imported_modules_11_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module45)
	MR_init_entry1(top_level__mercury_compile__compile_13_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__compile_13_0);
	MR_init_label9(top_level__mercury_compile__compile_13_0,2,5,3,7,8,9,10,12,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compile'/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_def_static(top_level__mercury_compile__compile_13_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(8) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 1);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_r9;
	}
	MR_np_call_localret_ent(parse_tree__modules__check_for_no_exports_7_0,
		top_level__mercury_compile__compile_13_0_i2);
MR_def_label(top_level__mercury_compile__compile_13_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___mdbcomp__prim_data__sym_name_0_0,
		top_level__mercury_compile__compile_13_0_i5);
MR_def_label(top_level__mercury_compile__compile_13_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_13_0_i3);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r7 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r4 = MR_sv(8);
	MR_r8 = MR_sv(9);
	MR_r5 = MR_sv(4);
	MR_GOTO_LAB(top_level__mercury_compile__compile_13_0_i7);
MR_def_label(top_level__mercury_compile__compile_13_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(10);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r7 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r4 = MR_sv(8);
	MR_r8 = MR_sv(9);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(top_level__mercury_compile__compile_13_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r5;
	MR_np_call_localret_ent(parse_tree__modules__grab_imported_modules_11_0,
		top_level__mercury_compile__compile_13_0_i8);
MR_def_label(top_level__mercury_compile__compile_13_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(parse_tree__module_imports__module_and_imports_get_results_4_0,
		top_level__mercury_compile__compile_13_0_i9);
MR_def_label(top_level__mercury_compile__compile_13_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r3 = MR_sv(10);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		top_level__mercury_compile__compile_13_0_i10);
MR_def_label(top_level__mercury_compile__compile_13_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),2)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_13_0_i12);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(top_level__mercury_compile__compile_13_0,12)
	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_sv(2);
	MR_r4 = MR_sv(7);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_tempr1;
	}
	MR_np_call_localret_ent(top_level__mercury_compile__mercury_compile_11_0,
		top_level__mercury_compile__compile_13_0_i13);
MR_def_label(top_level__mercury_compile__compile_13_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r3;
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(private_builtin__builtin_unify_pred_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module46)
	MR_init_entry1(__Unify___top_level__mercury_compile__compile_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___top_level__mercury_compile__compile_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___top_level__mercury_compile__compile_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_unify_pred_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(private_builtin__builtin_compare_pred_3_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module47)
	MR_init_entry1(__Compare___top_level__mercury_compile__compile_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___top_level__mercury_compile__compile_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___top_level__mercury_compile__compile_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_pred_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(top_level__mercury_compile_module48)
	MR_init_entry1(__Unify___top_level__mercury_compile__file_or_module_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___top_level__mercury_compile__file_or_module_0_0);
	MR_init_label3(__Unify___top_level__mercury_compile__file_or_module_0_0,14,5,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___top_level__mercury_compile__file_or_module_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___top_level__mercury_compile__file_or_module_0_0_i14);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(__Unify___top_level__mercury_compile__file_or_module_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(__Unify___top_level__mercury_compile__file_or_module_0_0_i1);
	}
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	MR_r1 = (strcmp((char *) (MR_Word *) MR_r1, (char *) (MR_Word *) MR_r2) == 0);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___top_level__mercury_compile__file_or_module_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___top_level__mercury_compile__file_or_module_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___top_level__mercury_compile__file_or_module_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___mdbcomp__prim_data__sym_name_0_0);
MR_def_label(__Unify___top_level__mercury_compile__file_or_module_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___mdbcomp__prim_data__sym_name_0_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module49)
	MR_init_entry1(__Compare___top_level__mercury_compile__file_or_module_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___top_level__mercury_compile__file_or_module_0_0);
	MR_init_label5(__Compare___top_level__mercury_compile__file_or_module_0_0,3,2,7,5,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___top_level__mercury_compile__file_or_module_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___top_level__mercury_compile__file_or_module_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___top_level__mercury_compile__file_or_module_0_0_i2);
MR_def_label(__Compare___top_level__mercury_compile__file_or_module_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___top_level__mercury_compile__file_or_module_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Compare___top_level__mercury_compile__file_or_module_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___top_level__mercury_compile__file_or_module_0_0_i7);
	}
	MR_r1 = MR_tfield(0, MR_sv(1), 0);
	MR_r2 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_3_0);
MR_def_label(__Compare___top_level__mercury_compile__file_or_module_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___top_level__mercury_compile__file_or_module_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___top_level__mercury_compile__file_or_module_0_0_i10);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___top_level__mercury_compile__file_or_module_0_0,10)
	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(__Compare___mdbcomp__prim_data__sym_name_0_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__member_2_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module50)
	MR_init_entry1(top_level__mercury_compile__IntroducedFrom__pred__process_module_2__1281__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__IntroducedFrom__pred__process_module_2__1281__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__process_module_2__1281__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(top_level__mercury_compile__IntroducedFrom__pred__process_module_2__1281__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(mdbcomp__prim_data, sym_name);
	MR_r2 = MR_tfield(0, MR_r2, 0);
	MR_r3 = MR_tempr1;
	MR_np_tailcall_ent(list__member_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(top_level__mercury_compile_module51)
	MR_init_entry1(top_level__mercury_compile__IntroducedFrom__pred__compile_with_module_options__1404__1_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__IntroducedFrom__pred__compile_with_module_options__1404__1_8_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__compile_with_module_options__1404__1'/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(top_level__mercury_compile__IntroducedFrom__pred__compile_with_module_options__1404__1_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_73_110_116_114_111_100_117_99_101_100_70_114_111_109_95_95_112_114_101_100_95_95_99_111_109_112_105_108_101_95_119_105_116_104_95_109_111_100_117_108_101_95_111_112_116_105_111_110_115_95_95_49_52_48_52_95_95_49_95_95_91_51_93_95_48_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

extern const MR_TypeCtorInfo_Struct mercury_data_unit__type_ctor_info_unit_0;

MR_BEGIN_MODULE(top_level__mercury_compile_module52)
	MR_init_entry1(top_level__mercury_compile__compile_with_module_options__ho1_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__compile_with_module_options__ho1_8_0);
	MR_init_label2(top_level__mercury_compile__compile_with_module_options__ho1_8_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compile_with_module_options__ho1'/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(top_level__mercury_compile__compile_with_module_options__ho1_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r5;
	MR_sv(3) = MR_r6;
	MR_sv(4) = MR_r7;
	MR_sv(5) = MR_r8;
	MR_sv(6) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_sv(8) = MR_r3;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 594;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__compile_with_module_options__ho1_8_0_i2);
MR_def_label(top_level__mercury_compile__compile_with_module_options__ho1_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_with_module_options__ho1_8_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r8 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(11,16);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__IntroducedFrom__pred__compile_with_module_options__1404__1_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(unit, unit);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(make__util__build_with_module_options_args_11_0);
	}
MR_def_label(top_level__mercury_compile__compile_with_module_options__ho1_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(backend_libs__compile_target_code__assemble_7_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(top_level__mercury_compile_module53)
	MR_init_entry1(top_level__mercury_compile__compile_with_module_options__ho2_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__top_level__mercury_compile__compile_with_module_options__ho2_8_0);
	MR_init_label2(top_level__mercury_compile__compile_with_module_options__ho2_8_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'compile_with_module_options__ho2'/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(top_level__mercury_compile__compile_with_module_options__ho2_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r4;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 594;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		top_level__mercury_compile__compile_with_module_options__ho2_8_0_i2);
MR_def_label(top_level__mercury_compile__compile_with_module_options__ho2_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(top_level__mercury_compile__compile_with_module_options__ho2_8_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r8 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(11,17);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(top_level__mercury_compile__IntroducedFrom__pred__compile_with_module_options__1404__1_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(unit, unit);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(make__util__build_with_module_options_args_11_0);
	}
MR_def_label(top_level__mercury_compile__compile_with_module_options__ho2_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(1);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(backend_libs__compile_target_code__link_module_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(top_level__mercury_compile_module54)
	MR_init_entry1(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0);
	MR_init_label8(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,2,5,8,7,11,4,17,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__process_arg_build__[5, 7]_0'/10 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_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_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_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 90;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i2);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i4);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Integer) 89;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i5);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i7);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(top_level__mercury_compile__process_module_8_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i8);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_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_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(5);
	}
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i11);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tfield(0, MR_sv(1), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_file_dependency_file_4_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i20);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_module_dependency_file_4_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i20);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i17);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tfield(0, MR_sv(1), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_file_dependencies_4_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i20);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_np_call_localret_ent(parse_tree__modules__generate_module_dependencies_4_0,
		f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0_i20);
MR_def_label(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_112_114_111_99_101_115_115_95_97_114_103_95_98_117_105_108_100_95_95_91_53_44_32_55_93_95_48_10_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,21);
	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(parse_tree__modules__make_short_interface_6_0);

MR_BEGIN_MODULE(top_level__mercury_compile_module55)
	MR_init_entry1(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_97_108_108_95_109_97_107_101_95_115_104_111_114_116_95_105_110_116_101_114_102_97_99_101_95_95_91_51_44_32_52_93_95_48_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_97_108_108_95_109_97_107_101_95_115_104_111_114_116_95_105_110_116_101_114_102_97_99_101_95_95_91_51_44_32_52_93_95_48_7_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__call_make_short_interface__[3, 4]_0'/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(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_97_108_108_95_109_97_107_101_95_115_104_111_114_116_95_105_110_116_101_114_102_97_99_101_95_95_91_51_44_32_52_93_95_48_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_r3 = MR_tfield(0, MR_r3, 0);
	MR_r4 = MR_tfield(0, MR_tempr1, 1);
	MR_np_tailcall_ent(parse_tree__modules__make_short_interface_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(top_level__mercury_compile_module56)
	MR_init_entry1(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_73_110_116_114_111_100_117_99_101_100_70_114_111_109_95_95_112_114_101_100_95_95_99_111_109_112_105_108_101_95_119_105_116_104_95_109_111_100_117_108_101_95_111_112_116_105_111_110_115_95_95_49_52_48_52_95_95_49_95_95_91_51_93_95_48_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_73_110_116_114_111_100_117_99_101_100_70_114_111_109_95_95_112_114_101_100_95_95_99_111_109_112_105_108_101_95_119_105_116_104_95_109_111_100_117_108_101_95_111_112_116_105_111_110_115_95_95_49_52_48_52_95_95_49_95_95_91_51_93_95_48_8_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__IntroducedFrom__pred__compile_with_module_options__1404__1__[3]_0'/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(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_73_110_116_114_111_100_117_99_101_100_70_114_111_109_95_95_112_114_101_100_95_95_99_111_109_112_105_108_101_95_119_105_116_104_95_109_111_100_117_108_101_95_111_112_116_105_111_110_115_95_95_49_52_48_52_95_95_49_95_95_91_51_93_95_48_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_set_prof_ho_caller_proc(MR_ENTRY_AP(f_116_111_112_95_108_101_118_101_108_95_95_109_101_114_99_117_114_121_95_99_111_109_112_105_108_101_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_73_110_116_114_111_100_117_99_101_100_70_114_111_109_95_95_112_114_101_100_95_95_99_111_109_112_105_108_101_95_119_105_116_104_95_109_111_100_117_108_101_95_111_112_116_105_111_110_115_95_95_49_52_48_52_95_95_49_95_95_91_51_93_95_48_8_0));
	MR_np_tailcall_ent(do_call_closure_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__top_level__mercury_compile_maybe_bunch_0(void)
{
	top_level__mercury_compile_module0();
	top_level__mercury_compile_module1();
	top_level__mercury_compile_module2();
	top_level__mercury_compile_module3();
	top_level__mercury_compile_module4();
	top_level__mercury_compile_module5();
	top_level__mercury_compile_module6();
	top_level__mercury_compile_module7();
	top_level__mercury_compile_module8();
	top_level__mercury_compile_module9();
	top_level__mercury_compile_module10();
	top_level__mercury_compile_module11();
	top_level__mercury_compile_module12();
	top_level__mercury_compile_module13();
	top_level__mercury_compile_module14();
	top_level__mercury_compile_module15();
	top_level__mercury_compile_module16();
	top_level__mercury_compile_module17();
	top_level__mercury_compile_module18();
	top_level__mercury_compile_module19();
	top_level__mercury_compile_module20();
	top_level__mercury_compile_module21();
	top_level__mercury_compile_module22();
	top_level__mercury_compile_module23();
	top_level__mercury_compile_module24();
	top_level__mercury_compile_module25();
	top_level__mercury_compile_module26();
	top_level__mercury_compile_module27();
	top_level__mercury_compile_module28();
	top_level__mercury_compile_module29();
	top_level__mercury_compile_module30();
	top_level__mercury_compile_module31();
	top_level__mercury_compile_module32();
	top_level__mercury_compile_module33();
	top_level__mercury_compile_module34();
	top_level__mercury_compile_module35();
	top_level__mercury_compile_module36();
	top_level__mercury_compile_module37();
	top_level__mercury_compile_module38();
	top_level__mercury_compile_module39();
}

static void mercury__top_level__mercury_compile_maybe_bunch_1(void)
{
	top_level__mercury_compile_module40();
	top_level__mercury_compile_module41();
	top_level__mercury_compile_module42();
	top_level__mercury_compile_module43();
	top_level__mercury_compile_module44();
	top_level__mercury_compile_module45();
	top_level__mercury_compile_module46();
	top_level__mercury_compile_module47();
	top_level__mercury_compile_module48();
	top_level__mercury_compile_module49();
	top_level__mercury_compile_module50();
	top_level__mercury_compile_module51();
	top_level__mercury_compile_module52();
	top_level__mercury_compile_module53();
	top_level__mercury_compile_module54();
	top_level__mercury_compile_module55();
	top_level__mercury_compile_module56();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__top_level__mercury_compile__init(void);
void mercury__top_level__mercury_compile__init_type_tables(void);
void mercury__top_level__mercury_compile__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__top_level__mercury_compile__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__top_level__mercury_compile__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__top_level__mercury_compile__init_threadscope_string_table(void);
#endif

void mercury__top_level__mercury_compile__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__top_level__mercury_compile_maybe_bunch_0();
	mercury__top_level__mercury_compile_maybe_bunch_1();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_top_level__mercury_compile__type_ctor_info_compile_0,
		top_level__mercury_compile__compile_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_top_level__mercury_compile__type_ctor_info_file_or_module_0,
		top_level__mercury_compile__file_or_module_0_0);
	mercury__top_level__mercury_compile__init_debugger();
}

void mercury__top_level__mercury_compile__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_top_level__mercury_compile__type_ctor_info_compile_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_top_level__mercury_compile__type_ctor_info_file_or_module_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__top_level__mercury_compile__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__top_level__mercury_compile);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__top_level__mercury_compile__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__top_level__mercury_compile__init_threadscope_string_table(void)
{
}

#endif

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