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

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

#line 28 "ll_backend.proc_gen.c"
#line 536 "../library/io.int"
#include "time.mh"

#line 32 "ll_backend.proc_gen.c"
#line 537 "../library/io.int"
#include "string.mh"

#line 36 "ll_backend.proc_gen.c"
#line 202 "../mdbcomp/mdbcomp.program_representation.int"
#include "mdbcomp.program_representation.mh"

#line 40 "ll_backend.proc_gen.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 44 "ll_backend.proc_gen.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 48 "ll_backend.proc_gen.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 52 "ll_backend.proc_gen.c"
#line 53 "ll_backend.proc_gen.c"
#include "ll_backend.proc_gen.mh"

#line 56 "ll_backend.proc_gen.c"
#line 57 "ll_backend.proc_gen.c"
#ifndef LL_BACKEND__PROC_GEN_DECL_GUARD
#define LL_BACKEND__PROC_GEN_DECL_GUARD

#line 61 "ll_backend.proc_gen.c"
#line 62 "ll_backend.proc_gen.c"

#endif
#line 65 "ll_backend.proc_gen.c"

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

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

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

struct mercury_type_2 {
	MR_Word * f1[2];
	MR_Integer f2;
	MR_Word * f3[5];
};
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[3];
};
MR_STATIC_LINKAGE const struct mercury_type_3 mercury_common_3[];

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

struct mercury_type_5 {
	MR_String f1;
};
MR_STATIC_LINKAGE const struct mercury_type_5 mercury_common_5[];

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

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

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

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

struct mercury_type_10 {
	MR_Integer f1[2];
};
MR_STATIC_LINKAGE const struct mercury_type_10 mercury_common_10[];

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

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

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

struct mercury_type_14 {
	MR_String f1;
	MR_Word * f2;
};
MR_STATIC_LINKAGE const struct mercury_type_14 mercury_common_14[];

struct mercury_type_15 {
	MR_Word * f1;
	MR_Code * f2;
	MR_Integer f3;
};
MR_STATIC_LINKAGE const struct mercury_type_15 mercury_common_15[];

extern const MR_TypeCtorInfo_Struct
	mercury_data_ll_backend__proc_gen__type_ctor_info_frame_info_0,
	mercury_data_ll_backend__proc_gen__type_ctor_info_type_giving_arg_0;
MR_decl_label2(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0, 2,3)
MR_decl_label3(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0, 5,6,2)
MR_decl_label2(ll_backend__proc_gen__add_all_tabling_info_structs_3_0, 2,3)
MR_decl_label7(ll_backend__proc_gen__add_saved_succip_3_0, 64,6,12,5,19,15,28)
MR_decl_label5(ll_backend__proc_gen__add_tabling_info_struct_3_0, 2,3,4,6,7)
MR_decl_label10(ll_backend__proc_gen__bytecode_stub_4_0, 2,3,4,5,6,7,8,9,10,11)
MR_decl_label6(ll_backend__proc_gen__bytecode_stub_4_0, 12,55,64,65,68,72)
MR_decl_label3(ll_backend__proc_gen__generate_call_event_6_0, 2,5,4)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 4,5,9,7,12,15,16,14,17,18)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 20,24,13,25,26,27,28,29,30,3)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 34,37,38,39,40,36,42,43,45,46)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 47,48,49,50,52,53,54,56,55,61)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 66,67,58,82,86,87,88,89,90,91)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 92,33,95,106,107,110,111,112,113,114)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 115,116,117,118,109,119,120,122,126,127)
MR_decl_label10(ll_backend__proc_gen__generate_category_code_10_0, 128,129,130,131,133,134,135,138,137,139)
MR_decl_label7(ll_backend__proc_gen__generate_category_code_10_0, 140,141,142,143,144,145,146)
MR_decl_label2(ll_backend__proc_gen__generate_code_sequential_7_0, 4,5)
MR_decl_label10(ll_backend__proc_gen__generate_entry_6_0, 2,3,4,11,12,13,14,15,16,19)
MR_decl_label10(ll_backend__proc_gen__generate_entry_6_0, 20,29,21,31,32,33,35,37,38,41)
MR_decl_label10(ll_backend__proc_gen__generate_entry_6_0, 40,50,52,51,53,60,65,66,67,68)
MR_decl_label2(ll_backend__proc_gen__generate_entry_6_0, 69,70)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 4,7,10,11,12,14,17,19,15,21)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 22,24,30,33,32,40,49,47,50,51)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 52,53,65,42,75,76,77,78,79,80)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 81,82,85,84,86,91,92,88,95,97)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 98,83,99,100,104,111,112,102,116,115)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 120,129,130,131,132,133,134,143,144,114)
MR_decl_label10(ll_backend__proc_gen__generate_exit_8_0, 147,149,160,161,162,163,164,9,166,172)
MR_decl_label3(ll_backend__proc_gen__generate_exit_8_0, 173,174,175)
MR_decl_label10(ll_backend__proc_gen__generate_maybe_pred_code_7_0, 2,3,4,6,7,8,22,10,11,12)
MR_decl_label7(ll_backend__proc_gen__generate_maybe_pred_code_7_0, 13,14,9,16,17,18,20)
MR_decl_label10(ll_backend__proc_gen__generate_module_code_7_0, 2,3,4,5,6,11,13,14,15,16)
MR_decl_label10(ll_backend__proc_gen__generate_module_code_7_0, 19,20,21,22,23,24,25,27,28,7)
MR_decl_label1(ll_backend__proc_gen__generate_module_code_7_0, 29)
MR_decl_label4(ll_backend__proc_gen__generate_pred_code_par_5_0, 2,3,4,5)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 2,3,4,5,6,7,12,11,10,16)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 9,18,19,20,21,22,26,24,23,28)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 29,30,31,32,33,36,35,34,37,38)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 39,40,41,42,43,44,45,47,48,46)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 49,53,52,56,57,58,59,60,61,62)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 63,64,65,67,66,69,70,71,73,74)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 72,75,76,81,80,79,89,88,78,96)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 51,97,98,99,100,101,102,103,104,105)
MR_decl_label10(ll_backend__proc_gen__generate_proc_code_8_0, 111,113,106,115,117,123,125,127,128,119)
MR_decl_label1(ll_backend__proc_gen__generate_proc_code_8_0, 130)
MR_decl_label5(ll_backend__proc_gen__generate_proc_list_code_8_0, 13,3,4,5,6)
MR_decl_label10(ll_backend__proc_gen__maybe_set_trace_level_3_0, 2,4,5,6,7,3,12,14,15,16)
MR_decl_label1(ll_backend__proc_gen__maybe_set_trace_level_3_0, 11)
MR_decl_label10(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0, 50,4,7,9,10,11,13,17,18,5)
MR_decl_label10(fn__ll_backend__proc_gen__push_msg_3_0, 2,3,4,5,6,7,10,11,15,16)
MR_decl_label10(fn__ll_backend__proc_gen__push_msg_3_0, 17,18,8,20,21,22,23,24,25,26)
MR_decl_label5(fn__ll_backend__proc_gen__push_msg_3_0, 27,28,29,30,31)
MR_decl_label3(__Unify___ll_backend__proc_gen__frame_info_0_0, 4,6,1)
MR_decl_label5(__Compare___ll_backend__proc_gen__frame_info_0_0, 3,2,5,9,29)
MR_decl_static(ll_backend__proc_gen__generate_code_sequential_7_0)
MR_def_extern_entry(ll_backend__proc_gen__generate_module_code_7_0)
MR_decl_static(ll_backend__proc_gen__maybe_set_trace_level_3_0)
MR_decl_static(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0)
MR_decl_static(ll_backend__proc_gen__generate_call_event_6_0)
MR_def_extern_entry(fn__ll_backend__proc_gen__push_msg_3_0)
MR_decl_static(ll_backend__proc_gen__generate_entry_6_0)
MR_decl_static(ll_backend__proc_gen__generate_exit_8_0)
MR_decl_static(ll_backend__proc_gen__generate_category_code_10_0)
MR_decl_static(ll_backend__proc_gen__add_saved_succip_3_0)
MR_decl_static(ll_backend__proc_gen__bytecode_stub_4_0)
MR_def_extern_entry(ll_backend__proc_gen__generate_proc_code_8_0)
MR_def_extern_entry(ll_backend__proc_gen__add_all_tabling_info_structs_3_0)
MR_decl_static(ll_backend__proc_gen__generate_proc_list_code_8_0)
MR_decl_static(ll_backend__proc_gen__generate_maybe_pred_code_7_0)
MR_decl_static(ll_backend__proc_gen__generate_pred_code_par_5_0)
MR_decl_static(ll_backend__proc_gen__add_tabling_info_struct_3_0)
MR_decl_static(__Unify___ll_backend__proc_gen__frame_info_0_0)
MR_decl_static(__Compare___ll_backend__proc_gen__frame_info_0_0)
MR_decl_static(__Unify___ll_backend__proc_gen__type_giving_arg_0_0)
MR_decl_static(__Compare___ll_backend__proc_gen__type_giving_arg_0_0)
MR_decl_static(ll_backend__proc_gen__IntroducedFrom__pred__generate_proc_code__400__1_2_0)
MR_decl_static(ll_backend__proc_gen__IntroducedFrom__pred__generate_category_code__764__1_2_0)
MR_decl_static(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0)
MR_decl_static(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1133__1_2_0)
MR_decl_static(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1143__1_2_0)
MR_decl_static(ll_backend__proc_gen__IntroducedFrom__pred__add_tabling_info_struct__1343__1_2_0)
MR_decl_static(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0)

extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_c_procedure_0;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_c_procedure_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_var_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_set_ordlist__type_ctor_info_set_ordlist_1;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_layout_locn_0;
extern const MR_TypeCtorInfo_Struct mercury_data_set_ordlist__type_ctor_info_set_ordlist_1;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_layout_locn_0;
extern const MR_TypeCtorInfo_Struct mercury_data_maybe__type_ctor_info_maybe_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_special_proc_return_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_tvar_type_0;
static const struct mercury_type_0 mercury_common_0[12] =
{
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(ll_backend__llds, c_procedure)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(ll_backend__llds, c_procedure)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(hlds__hlds_pred, pred_id)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(ll_backend__llds, layout_locn)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(ll_backend__llds, layout_locn)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(0,5)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_CTOR0_ADDR(hlds__hlds_pred, special_proc_return)
}
},
{
{
MR_TAG_COMMON(0,6,5),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(0,6,6),
MR_tbmkword(0, 0)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_COMMON(13,0)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_code_sequential_7_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_module_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__global_data__type_ctor_info_global_data_0;
extern const MR_TypeCtorInfo_Struct mercury_data_io__type_ctor_info_state_0;
static const struct mercury_type_1 mercury_common_1[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_code_sequential_7_0_1,
(MR_Word *) (MR_Integer) 0
},
7,
{
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_INT_CTOR_ADDR,
MR_COMMON(0,0),
MR_CTOR0_ADDR(ll_backend__global_data, global_data),
MR_CTOR0_ADDR(ll_backend__global_data, global_data),
MR_IO_CTOR_ADDR,
MR_IO_CTOR_ADDR
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_module_code_7_0_1;
static const struct mercury_type_2 mercury_common_2[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_module_code_7_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_INT_CTOR_ADDR,
MR_COMMON(0,0),
MR_CTOR0_ADDR(ll_backend__global_data, global_data),
MR_CTOR0_ADDR(ll_backend__global_data, global_data)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_module_code_7_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__global_data__type_ctor_info_global_data_remapping_0;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_c_procedure_0;
static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__add_all_tabling_info_structs_3_0_1;
static const struct mercury_type_3 mercury_common_3[2] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_module_code_7_0_2,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(ll_backend__global_data, global_data_remapping),
MR_CTOR0_ADDR(ll_backend__llds, c_procedure),
MR_CTOR0_ADDR(ll_backend__llds, c_procedure)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__add_all_tabling_info_structs_3_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_COMMON(13,2),
MR_CTOR0_ADDR(ll_backend__global_data, global_data),
MR_CTOR0_ADDR(ll_backend__global_data, global_data)
}
},
};

static const struct mercury_type_4 mercury_common_4[1] =
{
{
{
-1,
-1,
-1
}
},
};

static const struct mercury_type_5 mercury_common_5[4] =
{
{
MR_string_const("Start of procedure prologue", 27)
},
{
MR_string_const("End of procedure prologue", 25)
},
{
MR_string_const("Start of procedure epilogue", 27)
},
{
MR_string_const("End of procedure epilogue", 25)
},
};

static const struct mercury_type_6 mercury_common_6[11] =
{
{
MR_TAG_COMMON(1,5,0),
MR_string_const("", 0)
},
{
MR_TAG_COMMON(1,5,1),
MR_string_const("", 0)
},
{
MR_TAG_COMMON(1,5,2),
MR_string_const("", 0)
},
{
MR_TAG_COMMON(1,5,3),
MR_string_const("", 0)
},
{
MR_tbmkword(0, 0),
MR_string_const("prune retry ticket", 18)
},
{
MR_TAG_COMMON(3,9,0),
MR_string_const("Return from procedure call", 26)
},
{
MR_TAG_COMMON(3,9,1),
MR_string_const("Return from procedure call", 26)
},
{
MR_TAG_COMMON(3,11,0),
MR_string_const("Succeed", 7)
},
{
MR_tbmkword(0, 1),
MR_string_const("discard retry ticket", 20)
},
{
MR_TAG_COMMON(3,9,3),
MR_string_const("fail after fail trace port", 26)
},
{
MR_TAG_COMMON(3,11,1),
MR_string_const("Fail", 4)
},
};

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

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_lval_0;
static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_category_code_10_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_proc_code_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__add_tabling_info_struct_3_0_1;
static const struct mercury_type_8 mercury_common_8[6] =
{
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(0,6),
MR_CTOR0_ADDR(ll_backend__llds, lval)
},
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(0,7),
MR_COMMON(0,7)
},
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(0,7),
MR_COMMON(0,7)
},
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_category_code_10_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(0,10),
MR_COMMON(0,10)
},
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__generate_proc_code_8_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_BOOL_CTOR_ADDR,
MR_BOOL_CTOR_ADDR
},
{
(MR_Word *) &mercury_data__closure_layout__ll_backend__proc_gen__add_tabling_info_struct_3_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_INT_CTOR_ADDR,
MR_INT_CTOR_ADDR
},
};

static const struct mercury_type_9 mercury_common_9[5] =
{
{
6,
MR_tbmkword(0, 0)
},
{
6,
MR_TAG_COMMON(3,10,0)
},
{
0,
MR_tbmkword(0, 0)
},
{
6,
MR_tbmkword(0, 2)
},
{
0,
MR_tbmkword(0, 1)
},
};

static const struct mercury_type_10 mercury_common_10[2] =
{
{
{
0,
0
}
},
{
{
0,
1
}
},
};

static const struct mercury_type_11 mercury_common_11[2] =
{
{
1,
MR_TAG_COMMON(1,10,1),
MR_TAG_COMMON(3,9,2)
},
{
1,
MR_TAG_COMMON(1,10,1),
MR_TAG_COMMON(3,9,4)
},
};

static const struct mercury_type_12 mercury_common_12[1] =
{
{
0,
MR_tbmkword(0, 0),
0
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_lval_0;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_label_0;
extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_table_struct_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_table_struct_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_lval_0;
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_label_0;
static const struct mercury_type_13 mercury_common_13[4] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(ll_backend__llds, lval),
MR_CTOR0_ADDR(ll_backend__llds, label)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(ll_backend__llds, lval),
MR_CTOR0_ADDR(ll_backend__llds, label)
}
},
};

static const struct mercury_type_14 mercury_common_14[16] =
{
{
MR_string_const("\t\t};\n", 5),
MR_tbmkword(0, 0)
},
{
MR_string_const("\n", 1),
MR_TAG_COMMON(1,14,0)
},
{
MR_string_const("MR_TRUE", 7),
MR_TAG_COMMON(1,14,1)
},
{
MR_string_const("\t\t\t", 3),
MR_TAG_COMMON(1,14,2)
},
{
MR_string_const(",\n", 2),
MR_TAG_COMMON(1,14,3)
},
{
MR_string_const("MR_FALSE", 8),
MR_TAG_COMMON(1,14,1)
},
{
MR_string_const("\t\t\t", 3),
MR_TAG_COMMON(1,14,5)
},
{
MR_string_const(",\n", 2),
MR_TAG_COMMON(1,14,6)
},
{
MR_string_const("\t\tMR_GOTO(return_addr);\n", 24),
MR_tbmkword(0, 0)
},
{
MR_string_const("\t\tMR_restore_registers();\n", 26),
MR_TAG_COMMON(1,14,8)
},
{
MR_string_const(");\n", 3),
MR_TAG_COMMON(1,14,9)
},
{
MR_string_const("bytecode_call_info", 18),
MR_TAG_COMMON(1,14,10)
},
{
MR_string_const("&", 1),
MR_TAG_COMMON(1,14,11)
},
{
MR_string_const("\t\treturn_addr = MB_bytecode_call_entry(", 39),
MR_TAG_COMMON(1,14,12)
},
{
MR_string_const("\t\tMR_save_registers();\n", 23),
MR_TAG_COMMON(1,14,13)
},
{
MR_string_const("\t\tMB_Native_Addr return_addr;\n", 30),
MR_TAG_COMMON(1,14,14)
},
};

static const struct mercury_type_15 mercury_common_15[1] =
{
{
MR_COMMON(3,1),
MR_ENTRY_AP(ll_backend__proc_gen__add_tabling_info_struct_3_0),
0
},
};
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1builtin__type_ctor_info_int_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;

const MR_PseudoTypeInfo mercury_data_ll_backend__proc_gen__field_types_frame_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_bool__type_ctor_info_bool_0
};

static const MR_DuFunctorDesc mercury_data_ll_backend__proc_gen__du_functor_desc_frame_info_0_0 = {
	"frame",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_ll_backend__proc_gen__field_types_frame_info_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_ll_backend__proc_gen__du_stag_ordered_frame_info_0_0[] = {
	&mercury_data_ll_backend__proc_gen__du_functor_desc_frame_info_0_0

};

const MR_DuPtagLayout mercury_data_ll_backend__proc_gen__du_ptag_ordered_frame_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_ll_backend__proc_gen__du_stag_ordered_frame_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_ll_backend__proc_gen__du_name_ordered_frame_info_0[] = {
	&mercury_data_ll_backend__proc_gen__du_functor_desc_frame_info_0_0
};

const MR_Integer mercury_data_ll_backend__proc_gen__functor_number_map_frame_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_ll_backend__proc_gen__type_ctor_info_frame_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___ll_backend__proc_gen__frame_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___ll_backend__proc_gen__frame_info_0_0)),
	"ll_backend.proc_gen",
	"frame_info",
	{ (void *)mercury_data_ll_backend__proc_gen__du_name_ordered_frame_info_0 },
	{ (void *)mercury_data_ll_backend__proc_gen__du_ptag_ordered_frame_info_0 },
	1,
	4,
	mercury_data_ll_backend__proc_gen__functor_number_map_frame_info_0
};

static const MR_EnumFunctorDesc mercury_data_ll_backend__proc_gen__enum_functor_desc_type_giving_arg_0_0 = {
	"last_arg",
	0
};

static const MR_EnumFunctorDesc mercury_data_ll_backend__proc_gen__enum_functor_desc_type_giving_arg_0_1 = {
	"last_but_one_arg",
	1
};

const MR_EnumFunctorDescPtr mercury_data_ll_backend__proc_gen__enum_value_ordered_type_giving_arg_0[] = {
	&mercury_data_ll_backend__proc_gen__enum_functor_desc_type_giving_arg_0_0,
	&mercury_data_ll_backend__proc_gen__enum_functor_desc_type_giving_arg_0_1
};

const MR_EnumFunctorDescPtr mercury_data_ll_backend__proc_gen__enum_name_ordered_type_giving_arg_0[] = {
	&mercury_data_ll_backend__proc_gen__enum_functor_desc_type_giving_arg_0_0,
	&mercury_data_ll_backend__proc_gen__enum_functor_desc_type_giving_arg_0_1
};

const MR_Integer mercury_data_ll_backend__proc_gen__functor_number_map_type_giving_arg_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_ll_backend__proc_gen__type_ctor_info_type_giving_arg_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___ll_backend__proc_gen__type_giving_arg_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___ll_backend__proc_gen__type_giving_arg_0_0)),
	"ll_backend.proc_gen",
	"type_giving_arg",
	{ (void *)mercury_data_ll_backend__proc_gen__enum_name_ordered_type_giving_arg_0 },
	{ (void *)mercury_data_ll_backend__proc_gen__enum_value_ordered_type_giving_arg_0 },
	2,
	4,
	mercury_data_ll_backend__proc_gen__functor_number_map_type_giving_arg_0
};


static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__add_tabling_info_struct_3_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"lambda_proc_gen_m_1343",
2,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
1343,
"11"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__add_all_tabling_info_structs_3_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"add_tabling_info_struct",
3,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
1327,
"7"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_proc_code_8_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"lambda_proc_gen_m_400",
2,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
400,
"74"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_category_code_10_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"lambda_proc_gen_m_764",
2,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
764,
"172"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_3 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"lambda_proc_gen_m_1143",
2,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
1143,
"209"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_2 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"lambda_proc_gen_m_1133",
2,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
1133,
"188"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_exit_8_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"lambda_proc_gen_m_1112",
2,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
1112,
"167"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_module_code_7_0_2 = {
{
MR_PREDICATE,
"ll_backend.global_data",
"ll_backend.global_data",
"remap_references_to_global_data",
3,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
184,
"22"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_module_code_7_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"generate_pred_code_par",
5,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
171,
"12"
};

static const MR_UserClosureId
mercury_data__closure_layout__ll_backend__proc_gen__generate_code_sequential_7_0_1 = {
{
MR_PREDICATE,
"ll_backend.proc_gen",
"ll_backend.proc_gen",
"generate_maybe_pred_code",
7,
0
},
"ll_backend.proc_gen",
"proc_gen.m",
145,
"9"
};


extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__global_data__type_ctor_info_global_data_0;
extern const MR_TypeCtorInfo_Struct mercury_data_io__type_ctor_info_state_0;
MR_decl_entry(list__map_foldl2_7_2);
MR_decl_entry(list__condense_2_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module0)
	MR_init_entry1(ll_backend__proc_gen__generate_code_sequential_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_code_sequential_7_0);
	MR_init_label2(ll_backend__proc_gen__generate_code_sequential_7_0,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_code_sequential'/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(ll_backend__proc_gen__generate_code_sequential_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(1,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__generate_maybe_pred_code_7_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_sv(1) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, c_procedure);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(ll_backend__global_data, global_data);
	MR_r4 = (MR_Word) MR_IO_CTOR_ADDR;
	MR_r6 = MR_tempr2;
	MR_r7 = MR_tempr3;
	}
	MR_np_call_localret_ent(list__map_foldl2_7_2,
		ll_backend__proc_gen__generate_code_sequential_7_0_i4);
MR_def_label(ll_backend__proc_gen__generate_code_sequential_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, c_procedure);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__condense_2_0,
		ll_backend__proc_gen__generate_code_sequential_7_0_i5);
MR_def_label(ll_backend__proc_gen__generate_code_sequential_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_get_valid_predids_3_0);
MR_decl_entry(hlds__hlds_module__module_info_get_globals_2_0);
MR_decl_entry(libs__globals__lookup_bool_option_3_0);
MR_decl_entry(list__chunk_3_0);
MR_decl_entry(fn__list__reverse_1_0);
MR_decl_entry(list__map_foldl_5_1);
MR_decl_entry(ll_backend__global_data__bump_type_num_counter_3_0);
MR_decl_entry(ll_backend__global_data__merge_global_datas_4_0);
MR_decl_entry(ll_backend__global_data__remap_references_to_global_data_3_0);
MR_decl_entry(list__map_3_0);
MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module1)
	MR_init_entry1(ll_backend__proc_gen__generate_module_code_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_module_code_7_0);
	MR_init_label10(ll_backend__proc_gen__generate_module_code_7_0,2,3,4,5,6,11,13,14,15,16)
	MR_init_label10(ll_backend__proc_gen__generate_module_code_7_0,19,20,21,22,23,24,25,27,28,7)
	MR_init_label1(ll_backend__proc_gen__generate_module_code_7_0,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_module_code'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__ll_backend__proc_gen__generate_module_code_7_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(5) = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_valid_predids_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i2);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		ll_backend__proc_gen__generate_module_code_7_0_i3);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r2 = (MR_Integer) 290;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i4);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Integer) 45;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i5);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 55;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i6);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(3),1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_module_code_7_0_i7);
	}
	if (MR_INT_NE(MR_sv(2),0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_module_code_7_0_i7);
	}
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_module_code_7_0_i7);
	}
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 50;
	MR_np_call_localret_ent(list__chunk_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i11);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = (MR_Word) MR_LIST_CTOR_ADDR;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0,
		ll_backend__proc_gen__generate_module_code_7_0_i13);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__reverse_1_0,
		ll_backend__proc_gen__generate_module_code_7_0_i14);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(fn__list__reverse_1_0,
		ll_backend__proc_gen__generate_module_code_7_0_i15);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__condense_2_0,
		ll_backend__proc_gen__generate_module_code_7_0_i16);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__generate_pred_code_par_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_sv(6) = MR_tempr1;
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, c_procedure);
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(ll_backend__global_data, global_data);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(10);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_sv(5);
	}
	MR_np_call_localret_ent(list__map_foldl_5_1,
		ll_backend__proc_gen__generate_module_code_7_0_i19);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__condense_2_0,
		ll_backend__proc_gen__generate_module_code_7_0_i20);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(list__condense_2_0,
		ll_backend__proc_gen__generate_module_code_7_0_i21);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 10000;
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__global_data__bump_type_num_counter_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i22);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__map_foldl_5_1,
		ll_backend__proc_gen__generate_module_code_7_0_i23);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__condense_2_0,
		ll_backend__proc_gen__generate_module_code_7_0_i24);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,24)
	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(ll_backend__global_data__merge_global_datas_4_0,
		ll_backend__proc_gen__generate_module_code_7_0_i25);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,25)
	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(3,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__global_data__remap_references_to_global_data_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_r2;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_r1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(list__map_3_0,
		ll_backend__proc_gen__generate_module_code_7_0_i27);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_module_code_7_0_i28);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_decr_sp_and_return(11);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_code_sequential_7_0,
		ll_backend__proc_gen__generate_module_code_7_0_i29);
MR_def_label(ll_backend__proc_gen__generate_module_code_7_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_pred__pred_info_module_1_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_name_1_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_orig_arity_1_0);
MR_decl_entry(mdbcomp__program_representation__no_type_info_builtin_3_0);
MR_decl_entry(libs__globals__set_trace_level_none_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_origin_2_0);
MR_decl_entry(libs__globals__get_trace_level_2_0);
MR_decl_entry(fn__libs__trace_params__trace_level_for_unify_compare_1_0);
MR_decl_entry(libs__globals__set_trace_level_3_0);
MR_decl_entry(hlds__hlds_module__module_info_set_globals_3_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module2)
	MR_init_entry1(ll_backend__proc_gen__maybe_set_trace_level_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__maybe_set_trace_level_3_0);
	MR_init_label10(ll_backend__proc_gen__maybe_set_trace_level_3_0,2,4,5,6,7,3,12,14,15,16)
	MR_init_label1(ll_backend__proc_gen__maybe_set_trace_level_3_0,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_set_trace_level'/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(ll_backend__proc_gen__maybe_set_trace_level_3_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(5) = MR_r2;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i2);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_module_1_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i4);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i5);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_orig_arity_1_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i6);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_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_sv(4);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(mdbcomp__program_representation__no_type_info_builtin_3_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i7);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__maybe_set_trace_level_3_0_i3);
	}
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(libs__globals__set_trace_level_none_2_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i16);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_origin_2_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i12);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__maybe_set_trace_level_3_0_i11);
	}
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(libs__globals__get_trace_level_2_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i14);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__libs__trace_params__trace_level_for_unify_compare_1_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i15);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(libs__globals__set_trace_level_3_0,
		ll_backend__proc_gen__maybe_set_trace_level_3_0_i16);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(hlds__hlds_module__module_info_set_globals_3_0);
MR_def_label(ll_backend__proc_gen__maybe_set_trace_level_3_0,11)
	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(hlds__hlds_pred__proc_info_get_stack_slots_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_llds__type_ctor_info_stack_slot_0;
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_101_97_114_99_104_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);
MR_decl_entry(fn__hlds__hlds_llds__stack_slot_num_1_0);
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module3)
	MR_init_entry1(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0);
	MR_init_label10(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,50,4,7,9,10,11,13,17,18,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_generate_deep_prof_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(0, MR_r2, 1);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i50);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r3, 0);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 0);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 2);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_stack_slots_2_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i4);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,0,3);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_llds, stack_slot);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_101_97_114_99_104_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i7);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i5);
	}
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_llds__stack_slot_num_1_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i9);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_llds, stack_slot);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i10);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__hlds__hlds_llds__stack_slot_num_1_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i11);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i13);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = (MR_Integer) -1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(5);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_decr_sp_and_return(9);
	}
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tfield(1, MR_sv(4), 0);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i17);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__hlds__hlds_llds__stack_slot_num_1_0,
		fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0_i18);
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(5);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_decr_sp_and_return(9);
	}
MR_def_label(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_tfield(0, MR_r2, 2) = MR_sv(5);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(ll_backend__trace_gen__generate_external_event_code_6_0);
extern const MR_TypeCtorInfo_Struct mercury_data_ll_backend__llds__type_ctor_info_instruction_0;
MR_decl_entry(fn__cord__empty_0_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module4)
	MR_init_entry1(ll_backend__proc_gen__generate_call_event_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_call_event_6_0);
	MR_init_label3(ll_backend__proc_gen__generate_call_event_6_0,2,5,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_call_event'/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(ll_backend__proc_gen__generate_call_event_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	}
	MR_np_call_localret_ent(ll_backend__trace_gen__generate_external_event_code_6_0,
		ll_backend__proc_gen__generate_call_event_6_0_i2);
MR_def_label(ll_backend__proc_gen__generate_call_event_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_call_event_6_0_i4);
	}
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_call_event_6_0_i5);
MR_def_label(ll_backend__proc_gen__generate_call_event_6_0,5)
	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(1);
	MR_decr_sp_and_return(2);
	}
MR_def_label(ll_backend__proc_gen__generate_call_event_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tempr2 = MR_tfield(1, MR_r1, 0);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_tfield(0, MR_tempr2, 2);
	MR_r3 = MR_tempr3;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_pred_info_3_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0);
MR_decl_entry(fn__mdbcomp__prim_data__sym_name_to_string_1_0);
MR_decl_entry(string__int_to_string_2_0);
MR_decl_entry(string__append_list_2_0);
MR_decl_entry(fn__mdbcomp__prim_data__get_special_pred_id_generic_name_1_0);
MR_decl_entry(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
MR_decl_entry(fn__parse_tree__prog_out__pred_or_func_to_str_1_0);
MR_decl_entry(fn__string__int_to_string_1_0);
MR_decl_entry(fn__hlds__hlds_pred__proc_id_to_int_1_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module5)
	MR_init_entry1(fn__ll_backend__proc_gen__push_msg_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__ll_backend__proc_gen__push_msg_3_0);
	MR_init_label10(fn__ll_backend__proc_gen__push_msg_3_0,2,3,4,5,6,7,10,11,15,16)
	MR_init_label10(fn__ll_backend__proc_gen__push_msg_3_0,17,18,8,20,21,22,23,24,25,26)
	MR_init_label5(fn__ll_backend__proc_gen__push_msg_3_0,27,28,29,30,31)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'push_msg'/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__fn__ll_backend__proc_gen__push_msg_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r3;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_info_3_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i2);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i3);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_module_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i4);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i5);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_orig_arity_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i6);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_origin_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i7);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(fn__ll_backend__proc_gen__push_msg_3_0_i8);
	}
	MR_r2 = MR_tfield(0, MR_r1, 0);
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__sym_name_to_string_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i10);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(string__int_to_string_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i11);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,11)
	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("_", 1);
	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_sv(6);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	}
	MR_np_call_localret_ent(string__append_list_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i15);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__get_special_pred_id_generic_name_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i16);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("_for_", 5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i17);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,17)
	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__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i18);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_sv(3) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_out__pred_or_func_to_str_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i20);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_sv(3) = MR_sv(5);
	MR_np_call_localret_ent(fn__parse_tree__prog_out__pred_or_func_to_str_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i20);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__sym_name_to_string_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i21);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i22);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__proc_id_to_int_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i23);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i24);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("-", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i25);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i26);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("/", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i27);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,27)
	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__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i28);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(".", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i29);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,29)
	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(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i30);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" ", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__ll_backend__proc_gen__push_msg_3_0_i31);
MR_def_label(fn__ll_backend__proc_gen__push_msg_3_0,31)
	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_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(fn__f_115_116_114_105_110_103_95_95_43_43_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(ll_backend__code_info__get_stack_slots_2_0);
MR_decl_entry(ll_backend__code_info__get_varset_2_0);
MR_decl_entry(fn__hlds__hlds_llds__explain_stack_slots_2_0);
MR_decl_entry(fn__cord__from_list_1_0);
MR_decl_entry(ll_backend__code_info__get_total_stackslot_count_2_0);
MR_decl_entry(ll_backend__code_info__get_pred_id_2_0);
MR_decl_entry(ll_backend__code_info__get_proc_id_2_0);
MR_decl_entry(ll_backend__code_info__get_module_info_2_0);
MR_decl_entry(fn__ll_backend__code_util__make_local_entry_label_4_0);
MR_decl_entry(fn__cord__singleton_1_0);
MR_decl_entry(ll_backend__code_info__get_succip_used_2_0);
MR_decl_entry(ll_backend__code_info__get_maybe_trace_info_2_0);
MR_decl_entry(ll_backend__trace_gen__generate_slot_fill_code_3_0);
MR_decl_entry(ll_backend__code_info__resume_point_stack_addr_2_0);
MR_decl_entry(fn__hlds__goal_util__proc_body_is_leaf_1_0);
MR_decl_entry(fn__f_99_111_114_100_95_95_43_43_2_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module6)
	MR_init_entry1(ll_backend__proc_gen__generate_entry_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_entry_6_0);
	MR_init_label10(ll_backend__proc_gen__generate_entry_6_0,2,3,4,11,12,13,14,15,16,19)
	MR_init_label10(ll_backend__proc_gen__generate_entry_6_0,20,29,21,31,32,33,35,37,38,41)
	MR_init_label10(ll_backend__proc_gen__generate_entry_6_0,40,50,52,51,53,60,65,66,67,68)
	MR_init_label2(ll_backend__proc_gen__generate_entry_6_0,69,70)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_entry'/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(ll_backend__proc_gen__generate_entry_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(13);
	MR_sv(13) = (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(ll_backend__code_info__get_stack_slots_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i2);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(ll_backend__code_info__get_varset_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i3);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,3)
	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__hlds__hlds_llds__explain_stack_slots_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i4);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(0,6,0);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i11);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(ll_backend__code_info__get_total_stackslot_count_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i12);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(ll_backend__code_info__get_pred_id_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i13);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(ll_backend__code_info__get_proc_id_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i14);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(ll_backend__code_info__get_module_info_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i15);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(fn__ll_backend__code_util__make_local_entry_label_4_0,
		ll_backend__proc_gen__generate_entry_6_0_i16);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("Procedure entry point", 21);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i19);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(ll_backend__code_info__get_succip_used_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i20);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i21);
	}
	if (MR_INT_EQ(MR_sv(2),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i21);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = ((MR_Integer) MR_sv(6) + (MR_Integer) 1);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tfield(3, MR_tempr2, 2) = (MR_Word) MR_TAG_COMMON(0,7,0);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr2;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("Save the success ip", 19);
	MR_sv(11) = MR_tfield(3, MR_tempr1, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i29);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(12), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(12), 0) = MR_sv(11);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i32);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_entry_6_0_i31);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_sv(11) = MR_sv(6);
	MR_sv(6) = MR_r2;
	MR_sv(12) = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(ll_backend__code_info__get_maybe_trace_info_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i33);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i35);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_entry_6_0_i37);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,35)
	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_np_call_localret_ent(ll_backend__trace_gen__generate_slot_fill_code_3_0,
		ll_backend__proc_gen__generate_entry_6_0_i37);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_sv(7) = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__ll_backend__proc_gen__push_msg_3_0,
		ll_backend__proc_gen__generate_entry_6_0_i38);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(2),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i40);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(ll_backend__code_info__resume_point_stack_addr_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i41);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(11);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr3, 1) = MR_tempr1;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr3;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("Allocate stack frame", 20);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i60);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__hlds__goal_util__proc_body_is_leaf_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i50);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i52);
	}
	MR_r1 = (MR_Integer) 0;
	MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i51);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_LE(MR_sv(11),0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_entry_6_0_i53);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 24;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(11);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("Allocate stack frame", 20);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i60);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_entry_6_0_i60);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_sv(1) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(11);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_sv(2) = MR_r1;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,6,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_entry_6_0_i65);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i66);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_entry_6_0_i67);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i68);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_entry_6_0_i69);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_entry_6_0_i70);
MR_def_label(ll_backend__proc_gen__generate_entry_6_0,70)
	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(13);
	}
#ifdef MR_maybe_local_thread_engine_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(ll_backend__code_info__get_instmap_2_0);
MR_decl_entry(fn__ll_backend__code_info__get_arginfo_1_0);
MR_decl_entry(fn__ll_backend__code_info__get_headvars_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_arg_info_0;
MR_decl_entry(assoc_list__from_corresponding_lists_3_0);
MR_decl_entry(hlds__instmap__instmap_is_unreachable_1_0);
MR_decl_entry(fn__set__init_0_0);
MR_decl_entry(ll_backend__code_info__setup_return_5_0);
MR_decl_entry(fn__ll_backend__llds__code_model_to_main_stack_1_0);
MR_decl_entry(fn__ll_backend__llds__stack_slot_num_to_lval_2_0);
MR_decl_entry(ll_backend__code_info__get_next_label_3_0);
MR_decl_entry(fn__map__init_0_0);
MR_decl_entry(map__values_2_0);
MR_decl_entry(solutions__solutions_2_1);
MR_decl_entry(set__insert_list_3_0);
MR_decl_entry(ll_backend__code_info__get_proc_info_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_maybe_special_return_2_0);
MR_decl_entry(require__expect_4_0);
MR_decl_entry(ll_backend__trace_gen__maybe_setup_redo_event_2_0);
MR_decl_entry(set__insert_3_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module7)
	MR_init_entry1(ll_backend__proc_gen__generate_exit_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_exit_8_0);
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,4,7,10,11,12,14,17,19,15,21)
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,22,24,30,33,32,40,49,47,50,51)
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,52,53,65,42,75,76,77,78,79,80)
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,81,82,85,84,86,91,92,88,95,97)
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,98,83,99,100,104,111,112,102,116,115)
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,120,129,130,131,132,133,134,143,144,114)
	MR_init_label10(ll_backend__proc_gen__generate_exit_8_0,147,149,160,161,162,163,164,9,166,172)
	MR_init_label3(ll_backend__proc_gen__generate_exit_8_0,173,174,175)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_exit'/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(ll_backend__proc_gen__generate_exit_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(10) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,6,2);
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i4);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,6,3);
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i7);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_r2 = MR_tfield(0, MR_tempr1, 2);
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i9);
	}
	MR_sv(6) = MR_r1;
	MR_r2 = MR_tempr1;
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(7) = MR_tfield(0, MR_r2, 1);
	MR_r1 = MR_sv(10);
	}
	MR_np_call_localret_ent(ll_backend__code_info__get_instmap_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i10);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__ll_backend__code_info__get_arginfo_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i11);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__ll_backend__code_info__get_headvars_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i12);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = (MR_Word) MR_CTOR1_ADDR(term, var);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,3);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, arg_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(9);
	}
	MR_np_call_localret_ent(assoc_list__from_corresponding_lists_3_0,
		ll_backend__proc_gen__generate_exit_8_0_i14);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__instmap__instmap_is_unreachable_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i17);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i15);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_np_call_localret_ent(fn__set__init_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i19);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i22);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(ll_backend__code_info__setup_return_5_0,
		ll_backend__proc_gen__generate_exit_8_0_i21);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_r2;
	MR_sv(10) = MR_r3;
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(7),0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i24);
	}
	MR_sv(7) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i30);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_tfield(1, MR_sv(7), 0);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("restore the success ip", 22);
	MR_sv(7) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i30);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	if (MR_INT_EQ(MR_sv(2),0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i33);
	}
	if (MR_INT_NE(MR_sv(1),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i32);
	}
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i40);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 25;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(2);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("Deallocate stack frame", 22);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i40);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	if (MR_INT_EQ(MR_sv(1),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i42);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_r3 = MR_tfield(0, MR_tempr1, 2);
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i42);
	}
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i47);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,6,4);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i49);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r2 = MR_r1;
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i77);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_tfield(1, MR_r3, 0);
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__ll_backend__llds__code_model_to_main_stack_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i50);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(fn__ll_backend__llds__stack_slot_num_to_lval_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i51);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(ll_backend__code_info__get_next_label_3_0,
		ll_backend__proc_gen__generate_exit_8_0_i52);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(ll_backend__code_info__get_next_label_3_0,
		ll_backend__proc_gen__generate_exit_8_0_i53);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(11) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tempr6 = MR_sv(10);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr6;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 9;
	MR_tfield(3, MR_tempr3, 1) = MR_tempr2;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr4, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr4, 0) = MR_tempr3;
	MR_tfield(0, MR_tempr4, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr5, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr5, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr5, 1) = MR_tempr6;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr5;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr5, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr5, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr5, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(0,6,4);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr5;
	MR_tag_alloc_heap(MR_tempr5, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr5, 0) = MR_tempr4;
	MR_tfield(1, MR_tempr5, 1) = MR_tempr1;
	MR_sv(3) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_sv(12) = (MR_Word) MR_TAG_COMMON(0,6,4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_tempr5;
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i65);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,65)
	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_tempr4 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr4;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 9;
	MR_tfield(3, MR_tempr2, 1) = MR_sv(11);
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr3, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr3;
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i76);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i75);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i76);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i78);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i79);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i80);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i81);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(ll_backend__code_info__get_maybe_trace_info_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i82);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i84);
	}
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i85);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i83);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tfield(1, MR_sv(4), 0);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(10);
	}
	MR_np_call_localret_ent(ll_backend__trace_gen__generate_external_event_code_6_0,
		ll_backend__proc_gen__generate_exit_8_0_i86);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i88);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(13);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_sv(10) = MR_r2;
	MR_sv(11) = MR_r1;
	MR_sv(12) = (MR_Word) MR_TAG_COMMON(0,0,4);
	MR_r2 = MR_sv(12);
	MR_np_call_localret_ent(fn__map__init_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i91);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i92);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,92)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(12);
	MR_np_call_localret_ent(map__values_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i95);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(13);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_tempr2 = MR_tempr1;
	MR_tempr3 = MR_tfield(1, MR_r1, 0);
	MR_r3 = MR_tfield(0, MR_tempr3, 1);
	MR_sv(9) = MR_tfield(0, MR_tempr3, 2);
	MR_sv(10) = MR_r2;
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,4);
	}
	MR_np_call_localret_ent(map__values_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i95);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(8,0);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_r1;
	MR_sv(11) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(solutions__solutions_2_1,
		ll_backend__proc_gen__generate_exit_8_0_i97);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,97)
	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(8);
	}
	MR_np_call_localret_ent(set__insert_list_3_0,
		ll_backend__proc_gen__generate_exit_8_0_i98);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(10);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_np_call_localret_ent(ll_backend__code_info__get_proc_info_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i99);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_maybe_special_return_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i100);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,100)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i102);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1133__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("ll_backend.proc_gen", 19);
	MR_r3 = (MR_Word) MR_string_const("predicate \140ll_backend.proc_gen.generate_exit\'/8", 47);
	MR_r4 = (MR_Word) MR_string_const("det special_return", 18);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		ll_backend__proc_gen__generate_exit_8_0_i104);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr2;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_TAG_COMMON(1,0,8);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i111);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i112);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i162);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,102)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i114);
	}
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i116);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i115);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tfield(1, MR_sv(4), 0);
	MR_np_call_localret_ent(ll_backend__trace_gen__maybe_setup_redo_event_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i115);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,115)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_exit_8_0_i120);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr2;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_TAG_COMMON(1,0,9);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i143);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_tfield(1, MR_tempr1, 0);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr2, 0);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i129);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,129)
	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,
		ll_backend__proc_gen__generate_exit_8_0_i130);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,130)
	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__f_115_116_114_105_110_103_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i131);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,131)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i132);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,132)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mmos_return_answer", 25);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i133);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,133)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i134);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,134)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr2, 0) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr3, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_string_const("", 0);
	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, 3, (MR_Integer) 11);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 27;
	MR_tfield(3, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 2) = MR_tempr2;
	MR_tfield(3, MR_tempr1, 3) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 7) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 8) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 9) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 10) = (MR_Integer) 1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr3;
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i143);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,143)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(9);
	MR_r3 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i144);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,144)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i162);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,114)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1143__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("ll_backend.proc_gen", 19);
	MR_r3 = (MR_Word) MR_string_const("predicate \140ll_backend.proc_gen.generate_exit\'/8", 47);
	MR_r4 = (MR_Word) MR_string_const("semi special_return", 19);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		ll_backend__proc_gen__generate_exit_8_0_i147);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,147)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(1,10,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(8);
	MR_np_call_localret_ent(set__insert_3_0,
		ll_backend__proc_gen__generate_exit_8_0_i149);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,149)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_TAG_COMMON(1,0,8);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(0,6,7);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i160);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,160)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i161);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,161)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i162);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,162)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(6);
	MR_r2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i163);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,163)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i164);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,164)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_exit_8_0_i175);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_np_call_localret_ent(fn__set__init_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i166);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,166)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 3) = MR_tempr1;
	MR_tfield(3, MR_tempr2, 4) = (MR_Word) MR_string_const("#undef\tMR_ORDINARY_SLOTS\n", 25);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 11);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 27;
	MR_tfield(3, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tfield(3, MR_tempr2, 3) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr2, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr2, 7) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr2, 8) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr2, 9) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 10) = (MR_Integer) 1;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr2;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("", 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_exit_8_0_i172);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,172)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_exit_8_0_i173);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,173)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_exit_8_0_i174);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,174)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_exit_8_0_i175);
MR_def_label(ll_backend__proc_gen__generate_exit_8_0,175)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(10);
	MR_decr_sp_and_return(14);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(ll_backend__code_info__get_globals_2_0);
MR_decl_entry(ll_backend__middle_rec__match_and_generate_4_0);
MR_decl_entry(ll_backend__trace_gen__get_trace_maybe_tail_rec_info_2_0);
MR_decl_entry(ll_backend__code_gen__generate_goal_5_0);
MR_decl_entry(ll_backend__code_info__generate_resume_point_4_0);
MR_decl_entry(ll_backend__code_info__resume_point_vars_2_0);
MR_decl_entry(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0);
MR_decl_entry(ll_backend__code_info__set_forward_live_vars_3_0);
MR_decl_entry(set__singleton_set_2_1);

MR_BEGIN_MODULE(ll_backend__proc_gen_module8)
	MR_init_entry1(ll_backend__proc_gen__generate_category_code_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_category_code_10_0);
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,4,5,9,7,12,15,16,14,17,18)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,20,24,13,25,26,27,28,29,30,3)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,34,37,38,39,40,36,42,43,45,46)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,47,48,49,50,52,53,54,56,55,61)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,66,67,58,82,86,87,88,89,90,91)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,92,33,95,106,107,110,111,112,113,114)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,115,116,117,118,109,119,120,122,126,127)
	MR_init_label10(ll_backend__proc_gen__generate_category_code_10_0,128,129,130,131,133,134,135,138,137,139)
	MR_init_label7(ll_backend__proc_gen__generate_category_code_10_0,140,141,142,143,144,145,146)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_category_code'/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(ll_backend__proc_gen__generate_category_code_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i3);
	}
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__code_info__get_globals_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i4);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 435;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_category_code_10_0_i5);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i7);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__middle_rec__match_and_generate_4_0,
		ll_backend__proc_gen__generate_category_code_10_0_i9);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i7);
	}
	MR_r1 = MR_r2;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,12,0);
	MR_r4 = MR_tempr1;
	MR_decr_sp_and_return(14);
	}
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__code_info__get_maybe_trace_info_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i12);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i14);
	}
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i15);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i16);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r4 = MR_sv(5);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = MR_r1;
	MR_r3 = MR_r4;
	MR_r1 = (MR_Integer) 0;
	MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i13);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_call_event_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i17);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(7) = MR_r3;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__trace_gen__get_trace_maybe_tail_rec_info_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i18);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i20);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i24);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_tfield(0, MR_tfield(1, MR_r1, 0), 1);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("tail recursion label, nofulljump", 32);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_category_code_10_0_i24);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r3 = MR_tempr1;
	MR_r1 = (MR_Integer) 0;
	}
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(ll_backend__code_gen__generate_goal_5_0,
		ll_backend__proc_gen__generate_category_code_10_0_i25);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_entry_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i26);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r2;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_exit_8_0,
		ll_backend__proc_gen__generate_category_code_10_0_i27);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r1 = MR_sv(3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i28);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i29);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i30);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,30)
	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_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i146);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i33);
	}
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(5) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__code_info__get_maybe_trace_info_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i34);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i36);
	}
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__code_gen__generate_goal_5_0,
		ll_backend__proc_gen__generate_category_code_10_0_i37);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 2;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_entry_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i38);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r2;
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_exit_8_0,
		ll_backend__proc_gen__generate_category_code_10_0_i39);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r1 = MR_sv(3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i40);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,40)
	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_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i118);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_call_event_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i42);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_sv(8) = MR_r3;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(ll_backend__trace_gen__get_trace_maybe_tail_rec_info_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i43);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__IntroducedFrom__pred__generate_category_code__764__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("ll_backend.proc_gen", 19);
	MR_r3 = (MR_Word) MR_string_const("predicate \140ll_backend.proc_gen.generate_category_code\'/10", 57);
	MR_r4 = (MR_Word) MR_string_const("tail recursive call in model_non code", 37);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		ll_backend__proc_gen__generate_category_code_10_0_i45);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(8);
	MR_np_call_localret_ent(ll_backend__code_gen__generate_goal_5_0,
		ll_backend__proc_gen__generate_category_code_10_0_i46);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 2;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_entry_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i47);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(9) = MR_r2;
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_exit_8_0,
		ll_backend__proc_gen__generate_category_code_10_0_i48);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_r3;
	MR_np_call_localret_ent(ll_backend__code_info__generate_resume_point_4_0,
		ll_backend__proc_gen__generate_category_code_10_0_i49);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__code_info__resume_point_vars_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i50);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i52);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(11);
	MR_np_call_localret_ent(ll_backend__code_info__set_forward_live_vars_3_0,
		ll_backend__proc_gen__generate_category_code_10_0_i53);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__trace_gen__generate_external_event_code_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i54);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i56);
	}
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i55);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r1, 0), 2);
	MR_sv(1) = MR_r2;
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_r3 = MR_tfield(0, MR_tempr1, 2);
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i58);
	}
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i61);
	}
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,6,8);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_category_code_10_0_i82);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tfield(1, MR_r3, 0);
	MR_np_call_localret_ent(fn__ll_backend__llds__stack_slot_num_to_lval_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i66);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(ll_backend__code_info__get_next_label_3_0,
		ll_backend__proc_gen__generate_category_code_10_0_i67);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 9;
	MR_tfield(3, MR_tempr3, 1) = MR_tempr2;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr3;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr3, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(0,6,8);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr3;
	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_tempr1;
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_tempr3;
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_category_code_10_0_i82);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i82);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,6,9);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_category_code_10_0_i86);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i87);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i88);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i89);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i90);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i91);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i92);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,92)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i146);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(1,10,1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(set__singleton_set_2_1,
		ll_backend__proc_gen__generate_category_code_10_0_i95);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("", 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_TAG_COMMON(1,0,8);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_TAG_COMMON(0,6,10);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__from_list_1_0,
		ll_backend__proc_gen__generate_category_code_10_0_i106);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__code_info__get_maybe_trace_info_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i107);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,107)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i109);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__code_gen__generate_goal_5_0,
		ll_backend__proc_gen__generate_category_code_10_0_i110);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_sv(5) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_entry_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i111);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r2;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_exit_8_0,
		ll_backend__proc_gen__generate_category_code_10_0_i112);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r3;
	}
	MR_np_call_localret_ent(ll_backend__code_info__generate_resume_point_4_0,
		ll_backend__proc_gen__generate_category_code_10_0_i113);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i114);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,114)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i115);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,115)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i116);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i117);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i118);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,118)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(1);
	MR_decr_sp_and_return(14);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,109)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_call_event_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i119);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_sv(9) = MR_r3;
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(ll_backend__trace_gen__get_trace_maybe_tail_rec_info_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i120);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i122);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i126);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,122)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_tfield(0, MR_tfield(1, MR_r1, 0), 1);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_string_const("tail recursion label", 20);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	}
	MR_np_call_localret_ent(fn__cord__singleton_1_0,
		ll_backend__proc_gen__generate_category_code_10_0_i126);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,126)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r3 = MR_tempr1;
	MR_r1 = (MR_Integer) 1;
	}
	MR_np_call_localret_ent(ll_backend__code_gen__generate_goal_5_0,
		ll_backend__proc_gen__generate_category_code_10_0_i127);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_entry_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i128);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,128)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r2;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_exit_8_0,
		ll_backend__proc_gen__generate_category_code_10_0_i129);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,129)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_r3;
	MR_np_call_localret_ent(ll_backend__code_info__generate_resume_point_4_0,
		ll_backend__proc_gen__generate_category_code_10_0_i130);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,130)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_sv(13) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__code_info__resume_point_vars_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i131);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,131)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i133);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,133)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(13);
	MR_np_call_localret_ent(ll_backend__code_info__set_forward_live_vars_3_0,
		ll_backend__proc_gen__generate_category_code_10_0_i134);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,134)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__trace_gen__generate_external_event_code_6_0,
		ll_backend__proc_gen__generate_category_code_10_0_i135);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,135)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_category_code_10_0_i137);
	}
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__cord__empty_0_0,
		ll_backend__proc_gen__generate_category_code_10_0_i138);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,138)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(6);
	MR_r2 = MR_sv(11);
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i139);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,137)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_r3 = MR_sv(6);
	MR_r2 = MR_sv(11);
	MR_sv(6) = MR_tfield(0, MR_tfield(1, MR_r1, 0), 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i139);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,139)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i140);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,140)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i141);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,141)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(12);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i142);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,142)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i143);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,143)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i144);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,144)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_99_111_114_100_95_95_43_43_2_0,
		ll_backend__proc_gen__generate_category_code_10_0_i145);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,145)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	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,
		ll_backend__proc_gen__generate_category_code_10_0_i146);
MR_def_label(ll_backend__proc_gen__generate_category_code_10_0,146)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(1);
	MR_decr_sp_and_return(14);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__init_1_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module9)
	MR_init_entry1(ll_backend__proc_gen__add_saved_succip_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__add_saved_succip_3_0);
	MR_init_label7(ll_backend__proc_gen__add_saved_succip_3_0,64,6,12,5,19,15,28)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_saved_succip'/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(ll_backend__proc_gen__add_saved_succip_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__add_saved_succip_3_0_i64);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_r4 = MR_tempr1;
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 0);
	MR_tempr2 = MR_tfield(1, MR_r1, 1);
	MR_sv(3) = MR_tempr2;
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__add_saved_succip_3_0_i6);
	}
	MR_tempr3 = MR_tfield(0, MR_tfield(1, MR_tempr2, 0), 0);
	if (MR_RTAGS_TESTR(MR_tempr3,3,6)) {
		MR_GOTO_LAB(ll_backend__proc_gen__add_saved_succip_3_0_i6);
	}
	MR_tempr4 = MR_tfield(3, MR_tempr3, 1);
	if (MR_LTAGS_TEST(MR_tempr4,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__add_saved_succip_3_0_i5);
	}
	}
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(4),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__add_saved_succip_3_0_i5);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tfield(2, MR_sv(4), 0);
	}
	MR_np_call_localret_ent(set__insert_3_0,
		ll_backend__proc_gen__add_saved_succip_3_0_i12);
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(3);
	MR_sv(1) = MR_tempr2;
	}
	MR_np_localcall_lab(ll_backend__proc_gen__add_saved_succip_3_0,
		ll_backend__proc_gen__add_saved_succip_3_0_i28);
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(4),3,3)) {
		MR_GOTO_LAB(ll_backend__proc_gen__add_saved_succip_3_0_i15);
	}
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_sv(4);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 1);
	MR_tempr1 = MR_tempr2;
	MR_sv(4) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 4);
	MR_sv(7) = MR_tfield(3, MR_tempr1, 5);
	MR_sv(8) = MR_tfield(3, MR_tempr1, 6);
	MR_sv(9) = MR_tfield(3, MR_tempr1, 3);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,11);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,4);
	}
	MR_np_call_localret_ent(map__init_1_0,
		ll_backend__proc_gen__add_saved_succip_3_0_i19);
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tempr4 = MR_sv(1);
	MR_tfield(3, MR_tempr1, 1) = MR_tempr4;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr3, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr3, 2) = MR_r1;
	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_sv(9);
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 7);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr3, 1) = MR_sv(2);
	MR_tfield(3, MR_tempr3, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr3, 3) = MR_tempr2;
	MR_tfield(3, MR_tempr3, 4) = MR_sv(6);
	MR_tfield(3, MR_tempr3, 5) = MR_sv(7);
	MR_tfield(3, MR_tempr3, 6) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr3;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(5);
	MR_r2 = MR_tempr4;
	MR_r1 = MR_sv(3);
	MR_sv(1) = MR_tempr2;
	}
	MR_np_localcall_lab(ll_backend__proc_gen__add_saved_succip_3_0,
		ll_backend__proc_gen__add_saved_succip_3_0_i28);
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_sv(1) = MR_r4;
	MR_np_localcall_lab(ll_backend__proc_gen__add_saved_succip_3_0,
		ll_backend__proc_gen__add_saved_succip_3_0_i28);
MR_def_label(ll_backend__proc_gen__add_saved_succip_3_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(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(fn__mdbcomp__prim_data__sym_name_to_string_sep_2_0);
MR_decl_entry(hlds__hlds_pred__proc_id_to_int_2_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module10)
	MR_init_entry1(ll_backend__proc_gen__bytecode_stub_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__bytecode_stub_4_0);
	MR_init_label10(ll_backend__proc_gen__bytecode_stub_4_0,2,3,4,5,6,7,8,9,10,11)
	MR_init_label6(ll_backend__proc_gen__bytecode_stub_4_0,12,55,64,65,68,72)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'bytecode_stub'/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(ll_backend__proc_gen__bytecode_stub_4_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_np_call_localret_ent(hlds__hlds_module__module_info_pred_info_3_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i2);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_module_1_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i3);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("__", 2);
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__sym_name_to_string_sep_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i4);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__ll_backend__code_util__make_local_entry_label_4_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i5);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i6);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_id_to_int_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i7);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(string__int_to_string_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i8);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_orig_arity_1_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i9);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(string__int_to_string_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i10);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i11);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__bytecode_stub_4_0_i12);
	}
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(4);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_TAG_COMMON(1,14,4);
	{
	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("\t\t\t", 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_Word) MR_string_const(",\n", 2);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_string_const("\t\t\t", 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("\",\n", 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("\t\t\t\"", 4);
	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_Word) MR_string_const("\",\n", 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_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_string_const("\t\t\t\"", 4);
	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("\t\t\t(MB_Word)NULL,\n", 18);
	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_Word) MR_string_const(" = {\n", 5);
	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("bytecode_call_info", 18);
	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("\t\tstatic MB_Call ", 17);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	}
	MR_np_call_localret_ent(string__append_list_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i55);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(4);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_TAG_COMMON(1,14,7);
	{
	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("\t\t\t", 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_Word) MR_string_const(",\n", 2);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_string_const("\t\t\t", 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("\",\n", 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("\t\t\t\"", 4);
	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_Word) MR_string_const("\",\n", 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_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = (MR_Word) MR_string_const("\t\t\t\"", 4);
	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("\t\t\t(MB_Word)NULL,\n", 18);
	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_Word) MR_string_const(" = {\n", 5);
	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("bytecode_call_info", 18);
	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("\t\tstatic MB_Call ", 17);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	}
	MR_np_call_localret_ent(string__append_list_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i55);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,14,15);
	MR_np_call_localret_ent(string__append_list_2_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i64);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, lval);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(fn__set__init_0_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i65);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_sv(4) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 3) = MR_r2;
	MR_tfield(3, MR_tempr1, 4) = (MR_Word) MR_string_const("\t{\n", 3);
	MR_r1 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__set__init_0_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i68);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 3) = MR_r2;
	MR_tfield(3, MR_tempr1, 4) = MR_sv(1);
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 5);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 4) = MR_sv(3);
	MR_sv(1) = MR_tempr1;
	MR_sv(3) = MR_r2;
	MR_r1 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__set__init_0_0,
		ll_backend__proc_gen__bytecode_stub_4_0_i72);
MR_def_label(ll_backend__proc_gen__bytecode_stub_4_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 3) = MR_r2;
	MR_tfield(3, MR_tempr1, 4) = (MR_Word) MR_string_const("\t}\n", 3);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	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_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_r2, 1) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_r2;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_string_const("Procedure entry point", 21);
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 11);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 27;
	MR_tfield(3, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 2) = MR_tempr1;
	MR_tfield(3, MR_r2, 3) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 7) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 8) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r2, 9) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 10) = (MR_Integer) 1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_string_const("Entry stub", 10);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr2;
	MR_tfield(1, MR_r1, 1) = MR_r2;
	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_pred__ensure_all_headvars_are_named_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_has_parallel_conj_2_0);
MR_decl_entry(fn__libs__trace_params__given_trace_level_is_none_1_0);
MR_decl_entry(hlds__goal_path__fill_goal_id_slots_in_proc_4_0);
MR_decl_entry(hlds__hlds_pred__proc_info_interface_determinism_2_0);
MR_decl_entry(fn__hlds__code_model__proc_info_interface_code_model_1_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_goal_2_0);
MR_decl_entry(hlds__hlds_llds__goal_info_get_follow_vars_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_llds__type_ctor_info_abs_locn_0;
MR_decl_entry(ll_backend__continuation_info__basic_stack_layout_for_proc_4_0);
MR_decl_entry(ll_backend__global_data__global_data_get_static_cell_info_2_0);
MR_decl_entry(ll_backend__global_data__global_data_get_threadscope_rev_string_table_3_0);
MR_decl_entry(ll_backend__code_info__code_info_init_15_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_clauses_info_2_0);
MR_decl_entry(hlds__hlds_clauses__get_clause_list_2_0);
MR_decl_entry(fn__hlds__hlds_goal__goal_info_get_context_1_0);
MR_decl_entry(ll_backend__code_info__get_max_reg_in_use_at_trace_2_0);
MR_decl_entry(ll_backend__code_info__get_static_cell_info_2_0);
MR_decl_entry(ll_backend__global_data__global_data_set_static_cell_info_3_0);
MR_decl_entry(ll_backend__code_info__get_threadscope_rev_string_table_3_0);
MR_decl_entry(ll_backend__global_data__global_data_set_threadscope_rev_string_table_4_0);
MR_decl_entry(ll_backend__code_info__get_created_temp_frame_2_0);
MR_decl_entry(ll_backend__code_info__get_proc_trace_events_2_0);
MR_decl_entry(fn__cord__list_1_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_maybe_proc_table_io_info_2_0);
MR_decl_entry(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0);
MR_decl_entry(ll_backend__code_info__get_layout_info_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_eval_method_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_initial_instmap_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_headvars_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_varset_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_argmodes_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_vartypes_2_0);
MR_decl_entry(libs__globals__get_trace_suppress_2_0);
MR_decl_entry(fn__libs__trace_params__eff_trace_needs_proc_body_reps_5_0);
MR_decl_entry(fn__libs__trace_params__eff_trace_needs_all_var_names_5_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_maybe_deep_profile_info_2_0);
MR_decl_entry(fn__libs__trace_params__eff_trace_level_4_0);
MR_decl_entry(hlds__hlds_module__module_info_get_table_struct_map_2_0);
MR_decl_entry(map__search_3_0);
MR_decl_entry(ll_backend__global_data__global_data_add_new_proc_layout_4_0);
MR_decl_entry(require__unexpected_3_0);
MR_decl_entry(ll_backend__code_info__get_closure_layouts_2_0);
MR_decl_entry(ll_backend__global_data__global_data_add_new_closure_layouts_3_0);
MR_decl_entry(fn__backend_libs__proc_label__make_proc_label_3_0);
MR_decl_entry(ll_backend__code_info__get_alloc_sites_2_0);
MR_decl_entry(ll_backend__global_data__global_data_add_new_alloc_sites_3_0);
MR_decl_entry(ll_backend__code_info__get_label_counter_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_need_maxfr_slot_2_0);
MR_decl_entry(hlds__hlds_pred__is_unify_or_compare_pred_1_0);
MR_decl_entry(fn__hlds__hlds_goal__goal_has_foreign_1_0);
MR_decl_entry(fn__counter__init_1_0);
MR_decl_entry(ll_backend__code_info__get_used_env_vars_2_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module11)
	MR_init_entry1(ll_backend__proc_gen__generate_proc_code_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_proc_code_8_0);
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,2,3,4,5,6,7,12,11,10,16)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,9,18,19,20,21,22,26,24,23,28)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,29,30,31,32,33,36,35,34,37,38)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,39,40,41,42,43,44,45,47,48,46)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,49,53,52,56,57,58,59,60,61,62)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,63,64,65,67,66,69,70,71,73,74)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,72,75,76,81,80,79,89,88,78,96)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,51,97,98,99,100,101,102,103,104,105)
	MR_init_label10(ll_backend__proc_gen__generate_proc_code_8_0,111,113,106,115,117,123,125,127,128,119)
	MR_init_label1(ll_backend__proc_gen__generate_proc_code_8_0,130)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_proc_code'/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_define_entry(mercury__ll_backend__proc_gen__generate_proc_code_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(36);
	MR_sv(36) = (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(19) = MR_r6;
	MR_r2 = MR_r5;
	MR_np_call_localret_ent(ll_backend__proc_gen__maybe_set_trace_level_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i2);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__ensure_all_headvars_are_named_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i3);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i4);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(libs__globals__get_trace_level_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i5);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_has_parallel_conj_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i6);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 206;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i7);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(fn__libs__trace_params__given_trace_level_is_none_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i12);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i11);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i10);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i9);
	}
	if (MR_INT_NE(MR_sv(9),1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i9);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(hlds__goal_path__fill_goal_id_slots_in_proc_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i16);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(8), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(8), 0) = MR_r1;
	MR_r1 = MR_r2;
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i18);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_sv(8) = (MR_Word) MR_tbmkword(0, 0);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_interface_determinism_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i19);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(fn__hlds__code_model__proc_info_interface_code_model_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i20);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i21);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_sv(12);
	MR_np_call_localret_ent(hlds__hlds_llds__goal_info_get_follow_vars_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i22);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i24);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,3);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_llds, abs_locn);
	MR_np_call_localret_ent(map__init_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i26);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(13) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(6);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i23);
	}
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_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_sv(6);
	MR_sv(13) = MR_tfield(1, MR_tempr1, 0);
	}
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(ll_backend__continuation_info__basic_stack_layout_for_proc_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i28);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r2;
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(19);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_get_static_cell_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i29);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_r1 = MR_sv(19);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_get_threadscope_rev_string_table_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i30);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(15);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(13);
	MR_r8 = MR_sv(2);
	MR_r9 = MR_sv(16);
	MR_r10 = MR_sv(8);
	MR_r11 = MR_tempr1;
	MR_r12 = MR_tempr2;
	}
	MR_np_call_localret_ent(ll_backend__code_info__code_info_init_15_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i31);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_sv(13) = MR_r2;
	MR_sv(16) = MR_r3;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_clauses_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i32);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 5);
	MR_np_call_localret_ent(hlds__hlds_clauses__get_clause_list_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i33);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i35);
	}
	MR_r1 = MR_sv(12);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i36);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r7 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r3 = MR_sv(11);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(13);
	MR_r6 = MR_sv(16);
	MR_r2 = MR_r7;
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i34);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r3 = MR_sv(11);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(13);
	MR_r6 = MR_sv(16);
	MR_r2 = MR_tfield(0, MR_tfield(1, MR_tempr1, 0), 3);
	}
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_sv(11) = MR_r3;
	MR_sv(13) = MR_r5;
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_category_code_10_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i37);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_sv(16) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(17) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__code_info__get_max_reg_in_use_at_trace_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i38);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_static_cell_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i39);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(19);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_set_static_cell_info_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i40);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(19) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_threadscope_rev_string_table_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i41);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(19);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_set_threadscope_rev_string_table_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i42);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(35) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_created_temp_frame_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i43);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(19) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_proc_trace_events_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i44);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, instruction);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__cord__list_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i45);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_sv(16), 1);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i47);
	}
	MR_sv(21) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_sv(16) = MR_tfield(0, MR_sv(16), 0);
	MR_sv(20) = MR_r2;
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i46);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_tfield(0, MR_sv(16), 0);
	MR_sv(20) = MR_r2;
	MR_r2 = MR_tfield(1, MR_r2, 0);
	MR_np_call_localret_ent(ll_backend__proc_gen__add_saved_succip_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i48);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(21) = MR_r1;
	MR_r1 = MR_sv(5);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_maybe_proc_table_io_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i49);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(15),1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i53);
	}
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i52);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i51);
	}
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(2);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i56);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(22) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_layout_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i57);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(23) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(fn__ll_backend__code_util__make_local_entry_label_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i58);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(24) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_eval_method_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i59);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(25) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_initial_instmap_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i60);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(26) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_headvars_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i61);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(27) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_varset_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i62);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(28) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_argmodes_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i63);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(29) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_vartypes_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i64);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(30) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(libs__globals__get_trace_suppress_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i65);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(31) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(31);
	MR_np_call_localret_ent(fn__libs__trace_params__eff_trace_needs_proc_body_reps_5_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i67);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i66);
	}
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_r3 = MR_sv(5);
	MR_r5 = MR_sv(31);
	MR_sv(31) = (MR_Integer) 0;
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i69);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_r3 = MR_sv(5);
	MR_r5 = MR_sv(31);
	MR_sv(31) = (MR_Integer) 1;
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r1;
	MR_sv(7) = MR_r4;
	MR_sv(5) = MR_r3;
	MR_np_call_localret_ent(fn__libs__trace_params__eff_trace_needs_all_var_names_5_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i70);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(32) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_maybe_deep_profile_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i71);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i73);
	}
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_r3 = MR_sv(5);
	MR_sv(7) = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i72);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__ll_backend__proc_gen__maybe_generate_deep_prof_info_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i74);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_r3 = MR_sv(5);
	MR_sv(7) = MR_tempr1;
	}
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r1;
	MR_sv(5) = MR_r3;
	MR_np_call_localret_ent(fn__libs__trace_params__eff_trace_level_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i75);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(33) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_table_struct_map_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i76);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,76)
	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(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(4);
	if (MR_LTAGS_TESTR(MR_sv(15),0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i79);
	}
	MR_sv(15) = MR_tempr1;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info);
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(map__search_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i81);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i80);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 22);
	MR_tfield(0, MR_r2, 0) = MR_sv(22);
	MR_tfield(0, MR_r2, 1) = MR_sv(24);
	MR_tfield(0, MR_r2, 2) = MR_sv(9);
	MR_tfield(0, MR_r2, 3) = MR_sv(16);
	MR_tfield(0, MR_r2, 4) = MR_sv(20);
	MR_tfield(0, MR_r2, 5) = MR_sv(25);
	MR_tfield(0, MR_r2, 6) = MR_sv(33);
	MR_tfield(0, MR_r2, 7) = MR_sv(12);
	MR_tfield(0, MR_r2, 8) = MR_sv(18);
	MR_tfield(0, MR_r2, 9) = MR_sv(27);
	MR_tfield(0, MR_r2, 10) = MR_sv(29);
	MR_tfield(0, MR_r2, 11) = MR_sv(11);
	MR_tfield(0, MR_r2, 12) = MR_sv(31);
	MR_tfield(0, MR_r2, 13) = MR_sv(26);
	MR_tfield(0, MR_r2, 14) = MR_sv(13);
	MR_tfield(0, MR_r2, 15) = MR_sv(14);
	MR_tfield(0, MR_r2, 16) = MR_sv(28);
	MR_tfield(0, MR_r2, 17) = MR_sv(30);
	MR_tfield(0, MR_r2, 18) = MR_sv(23);
	MR_tfield(0, MR_r2, 19) = MR_tempr2;
	MR_tfield(0, MR_r2, 20) = MR_sv(32);
	MR_tfield(0, MR_r2, 21) = MR_sv(7);
	MR_r1 = MR_sv(15);
	MR_r3 = MR_sv(35);
	}
	MR_np_call_localret_ent(ll_backend__global_data__global_data_add_new_proc_layout_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i96);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 22);
	MR_tfield(0, MR_r2, 0) = MR_sv(22);
	MR_tfield(0, MR_r2, 1) = MR_sv(24);
	MR_tfield(0, MR_r2, 2) = MR_sv(9);
	MR_tfield(0, MR_r2, 3) = MR_sv(16);
	MR_tfield(0, MR_r2, 4) = MR_sv(20);
	MR_tfield(0, MR_r2, 5) = MR_sv(25);
	MR_tfield(0, MR_r2, 6) = MR_sv(33);
	MR_tfield(0, MR_r2, 7) = MR_sv(12);
	MR_tfield(0, MR_r2, 8) = MR_sv(18);
	MR_tfield(0, MR_r2, 9) = MR_sv(27);
	MR_tfield(0, MR_r2, 10) = MR_sv(29);
	MR_tfield(0, MR_r2, 11) = MR_sv(11);
	MR_tfield(0, MR_r2, 12) = MR_sv(31);
	MR_tfield(0, MR_r2, 13) = MR_sv(26);
	MR_tfield(0, MR_r2, 14) = MR_sv(13);
	MR_tfield(0, MR_r2, 15) = MR_sv(14);
	MR_tfield(0, MR_r2, 16) = MR_sv(28);
	MR_tfield(0, MR_r2, 17) = MR_sv(30);
	MR_tfield(0, MR_r2, 18) = MR_sv(23);
	MR_tfield(0, MR_r2, 19) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 20) = MR_sv(32);
	MR_tfield(0, MR_r2, 21) = MR_sv(7);
	MR_r1 = MR_sv(15);
	MR_r3 = MR_sv(35);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_add_new_proc_layout_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i96);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(34) = MR_tfield(1, MR_sv(15), 0);
	MR_sv(15) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__search_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i89);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i88);
	}
	MR_r1 = (MR_Word) MR_string_const("ll_backend.proc_gen", 19);
	MR_r2 = (MR_Word) MR_string_const("predicate \140ll_backend.proc_gen.generate_proc_code\'/8", 52);
	MR_r3 = (MR_Word) MR_string_const("conflicting kinds of tabling", 28);
	MR_np_call_localret_ent(require__unexpected_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i78);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(34);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 22);
	MR_tfield(0, MR_r2, 0) = MR_sv(22);
	MR_tfield(0, MR_r2, 1) = MR_sv(24);
	MR_tfield(0, MR_r2, 2) = MR_sv(9);
	MR_tfield(0, MR_r2, 3) = MR_sv(16);
	MR_tfield(0, MR_r2, 4) = MR_sv(20);
	MR_tfield(0, MR_r2, 5) = MR_sv(25);
	MR_tfield(0, MR_r2, 6) = MR_sv(33);
	MR_tfield(0, MR_r2, 7) = MR_sv(12);
	MR_tfield(0, MR_r2, 8) = MR_sv(18);
	MR_tfield(0, MR_r2, 9) = MR_sv(27);
	MR_tfield(0, MR_r2, 10) = MR_sv(29);
	MR_tfield(0, MR_r2, 11) = MR_sv(11);
	MR_tfield(0, MR_r2, 12) = MR_sv(31);
	MR_tfield(0, MR_r2, 13) = MR_sv(26);
	MR_tfield(0, MR_r2, 14) = MR_sv(13);
	MR_tfield(0, MR_r2, 15) = MR_sv(14);
	MR_tfield(0, MR_r2, 16) = MR_sv(28);
	MR_tfield(0, MR_r2, 17) = MR_sv(30);
	MR_tfield(0, MR_r2, 18) = MR_sv(23);
	MR_tfield(0, MR_r2, 19) = MR_tempr2;
	MR_tfield(0, MR_r2, 20) = MR_sv(32);
	MR_tfield(0, MR_r2, 21) = MR_sv(7);
	MR_r1 = MR_sv(15);
	MR_r3 = MR_sv(35);
	}
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(ll_backend__global_data__global_data_add_new_proc_layout_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i96);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i97);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(17);
	MR_sv(7) = MR_sv(35);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_np_call_localret_ent(ll_backend__code_info__get_closure_layouts_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i98);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_add_new_closure_layouts_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i99);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(fn__backend_libs__proc_label__make_proc_label_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i100);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,100)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_alloc_sites_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i101);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(9);
	MR_np_call_localret_ent(ll_backend__global_data__global_data_add_new_alloc_sites_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i102);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,102)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i103);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_orig_arity_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i104);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_label_counter_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i105);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i106);
	}
	if (MR_INT_NE(MR_sv(19),1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i106);
	}
	if (MR_INT_EQ(MR_sv(10),2)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i106);
	}
	MR_r2 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_need_maxfr_slot_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i111);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,4);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__IntroducedFrom__pred__generate_proc_code__400__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("ll_backend.proc_gen", 19);
	MR_r3 = (MR_Word) MR_string_const("predicate \140ll_backend.proc_gen.generate_proc_code\'/8", 52);
	MR_r4 = (MR_Word) MR_string_const("should have reserved a slot for maxfr, but didn\'t", 49);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i113);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(6);
	MR_sv(6) = (MR_Integer) 1;
	MR_r2 = (MR_Integer) 127;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i117);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i115);
	}
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_sv(6) = (MR_Integer) 0;
	MR_r2 = (MR_Integer) 127;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i117);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,115)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_sv(6) = (MR_Integer) 1;
	MR_r2 = (MR_Integer) 127;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i117);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i119);
	}
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__is_unify_or_compare_pred_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i123);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,123)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i119);
	}
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i125);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,125)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_code_8_0_i119);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(ll_backend__proc_gen__bytecode_stub_4_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i127);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__counter__init_1_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i128);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,128)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(ll_backend__code_info__get_used_env_vars_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i130);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(17);
	MR_sv(1) = MR_sv(21);
	MR_sv(2) = MR_sv(5);
	MR_np_call_localret_ent(ll_backend__code_info__get_used_env_vars_2_0,
		ll_backend__proc_gen__generate_proc_code_8_0_i130);
MR_def_label(ll_backend__proc_gen__generate_proc_code_8_0,130)
	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(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(4);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 9);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_sv(12);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tfield(0, MR_r2, 3) = MR_sv(10);
	MR_tfield(0, MR_r2, 4) = MR_sv(1);
	MR_tfield(0, MR_r2, 5) = MR_sv(7);
	MR_tfield(0, MR_r2, 6) = MR_sv(2);
	MR_tfield(0, MR_r2, 7) = MR_sv(6);
	MR_tfield(0, MR_r2, 8) = MR_r1;
	MR_r1 = MR_sv(13);
	MR_decr_sp_and_return(36);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__to_assoc_list_2_0);
MR_decl_entry(list__foldl_4_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module12)
	MR_init_entry1(ll_backend__proc_gen__add_all_tabling_info_structs_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__add_all_tabling_info_structs_3_0);
	MR_init_label2(ll_backend__proc_gen__add_all_tabling_info_structs_3_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_all_tabling_info_structs'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__ll_backend__proc_gen__add_all_tabling_info_structs_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_table_struct_map_2_0,
		ll_backend__proc_gen__add_all_tabling_info_structs_3_0_i2);
MR_def_label(ll_backend__proc_gen__add_all_tabling_info_structs_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__to_assoc_list_2_0,
		ll_backend__proc_gen__add_all_tabling_info_structs_3_0_i3);
MR_def_label(ll_backend__proc_gen__add_all_tabling_info_structs_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,13,1);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(ll_backend__global_data, global_data);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,15,0);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(1);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_pred__pred_info_get_procedures_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_proc_info_0;
MR_decl_entry(map__lookup_3_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module13)
	MR_init_entry1(ll_backend__proc_gen__generate_proc_list_code_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_proc_list_code_8_0);
	MR_init_label5(ll_backend__proc_gen__generate_proc_list_code_8_0,13,3,4,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_proc_list_code'/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(ll_backend__proc_gen__generate_proc_list_code_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
MR_def_label(ll_backend__proc_gen__generate_proc_list_code_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_list_code_8_0_i3);
	}
	MR_r1 = MR_r5;
	MR_r2 = MR_r6;
	MR_decr_sp_and_return(8);
MR_def_label(ll_backend__proc_gen__generate_proc_list_code_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(2) = MR_tempr1;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_tfield(1, MR_r1, 0);
	MR_sv(7) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_procedures_2_0,
		ll_backend__proc_gen__generate_proc_list_code_8_0_i4);
MR_def_label(ll_backend__proc_gen__generate_proc_list_code_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(6);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		ll_backend__proc_gen__generate_proc_list_code_8_0_i5);
MR_def_label(ll_backend__proc_gen__generate_proc_list_code_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(4);
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_proc_code_8_0,
		ll_backend__proc_gen__generate_proc_list_code_8_0_i6);
MR_def_label(ll_backend__proc_gen__generate_proc_list_code_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(5);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr2;
	MR_succip_word = MR_sv(8);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_proc_list_code_8_0_i13);
	}
#ifdef MR_maybe_local_thread_engine_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_preds_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_info_0;
MR_decl_entry(fn__hlds__hlds_pred__pred_info_non_imported_procids_1_0);
MR_decl_entry(io__write_string_3_0);
MR_decl_entry(hlds__hlds_out__hlds_out_util__write_pred_id_4_0);
MR_decl_entry(libs__file_util__maybe_report_stats_3_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module14)
	MR_init_entry1(ll_backend__proc_gen__generate_maybe_pred_code_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_maybe_pred_code_7_0);
	MR_init_label10(ll_backend__proc_gen__generate_maybe_pred_code_7_0,2,3,4,6,7,8,22,10,11,12)
	MR_init_label7(ll_backend__proc_gen__generate_maybe_pred_code_7_0,13,14,9,16,17,18,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_maybe_pred_code'/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(ll_backend__proc_gen__generate_maybe_pred_code_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(6) = MR_r3;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_preds_2_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i2);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i3);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_non_imported_procids_1_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i4);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_maybe_pred_code_7_0_i6);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(6);
	MR_decr_sp_and_return(7);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i7);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r2 = (MR_Integer) 45;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i8);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(ll_backend__proc_gen__generate_maybe_pred_code_7_0_i10);
	}
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_tfield(1, MR_r2, 0);
	MR_sv(5) = MR_tfield(1, MR_r2, 1);
	MR_GOTO_LAB(ll_backend__proc_gen__generate_maybe_pred_code_7_0_i9);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("% Generating code for ", 22);
	MR_np_call_localret_ent(io__write_string_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i11);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_out__hlds_out_util__write_pred_id_4_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i12);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("\n", 1);
	MR_np_call_localret_ent(io__write_string_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i13);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 55;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i14);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__file_util__maybe_report_stats_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i22);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_procedures_2_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i16);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(4);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i17);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(6);
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_proc_code_8_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i18);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr2;
	}
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_proc_list_code_8_0,
		ll_backend__proc_gen__generate_maybe_pred_code_7_0_i20);
MR_def_label(ll_backend__proc_gen__generate_maybe_pred_code_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	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(ll_backend__proc_gen_module15)
	MR_init_entry1(ll_backend__proc_gen__generate_pred_code_par_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__generate_pred_code_par_5_0);
	MR_init_label4(ll_backend__proc_gen__generate_pred_code_par_5_0,2,3,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_pred_code_par'/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(ll_backend__proc_gen__generate_pred_code_par_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_preds_2_0,
		ll_backend__proc_gen__generate_pred_code_par_5_0_i2);
MR_def_label(ll_backend__proc_gen__generate_pred_code_par_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		ll_backend__proc_gen__generate_pred_code_par_5_0_i3);
MR_def_label(ll_backend__proc_gen__generate_pred_code_par_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_non_imported_procids_1_0,
		ll_backend__proc_gen__generate_pred_code_par_5_0_i4);
MR_def_label(ll_backend__proc_gen__generate_pred_code_par_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(4);
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(ll_backend__proc_gen__generate_proc_list_code_8_0,
		ll_backend__proc_gen__generate_pred_code_par_5_0_i5);
MR_def_label(ll_backend__proc_gen__generate_pred_code_par_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	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_decl_entry(ll_backend__stack_layout__convert_table_arg_info_6_0);
MR_decl_entry(fn__backend_libs__proc_label__make_proc_label_from_rtti_1_0);
MR_decl_entry(ll_backend__global_data__global_data_add_new_proc_var_4_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module16)
	MR_init_entry1(ll_backend__proc_gen__add_tabling_info_struct_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__add_tabling_info_struct_3_0);
	MR_init_label5(ll_backend__proc_gen__add_tabling_info_struct_3_0,2,3,4,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_tabling_info_struct'/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(ll_backend__proc_gen__add_tabling_info_struct_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 5);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 6);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 7);
	MR_sv(9) = MR_tfield(0, MR_tempr2, 8);
	MR_sv(10) = MR_r2;
	MR_r1 = MR_r2;
	}
	MR_np_call_localret_ent(ll_backend__global_data__global_data_get_static_cell_info_2_0,
		ll_backend__proc_gen__add_tabling_info_struct_3_0_i2);
MR_def_label(ll_backend__proc_gen__add_tabling_info_struct_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__stack_layout__convert_table_arg_info_6_0,
		ll_backend__proc_gen__add_tabling_info_struct_3_0_i3);
MR_def_label(ll_backend__proc_gen__add_tabling_info_struct_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(10);
	MR_sv(10) = MR_r2;
	MR_sv(11) = MR_r3;
	MR_r1 = MR_r4;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(ll_backend__global_data__global_data_set_static_cell_info_3_0,
		ll_backend__proc_gen__add_tabling_info_struct_3_0_i4);
MR_def_label(ll_backend__proc_gen__add_tabling_info_struct_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,5);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(ll_backend__proc_gen__IntroducedFrom__pred__add_tabling_info_struct__1343__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 4) = ((MR_Integer) MR_sv(4) + (MR_Integer) MR_sv(5));
	MR_sv(8) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("ll_backend.proc_gen", 19);
	MR_r3 = (MR_Word) MR_string_const("predicate \140ll_backend.proc_gen.add_tabling_info_struct\'/3", 57);
	MR_r4 = (MR_Word) MR_string_const("args mismatch", 13);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		ll_backend__proc_gen__add_tabling_info_struct_3_0_i6);
MR_def_label(ll_backend__proc_gen__add_tabling_info_struct_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_r2, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_tfield(0, MR_r2, 2);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__backend_libs__proc_label__make_proc_label_from_rtti_1_0,
		ll_backend__proc_gen__add_tabling_info_struct_3_0_i7);
MR_def_label(ll_backend__proc_gen__add_tabling_info_struct_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 10);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(9);
	MR_tfield(0, MR_r2, 2) = MR_sv(4);
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_tfield(0, MR_r2, 4) = MR_sv(6);
	MR_tfield(0, MR_r2, 5) = MR_sv(7);
	MR_tfield(0, MR_r2, 6) = MR_sv(10);
	MR_tfield(0, MR_r2, 7) = MR_sv(11);
	MR_tfield(0, MR_r2, 8) = MR_sv(2);
	MR_tfield(0, MR_r2, 9) = MR_sv(3);
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(8);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(ll_backend__global_data__global_data_add_new_proc_var_4_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
MR_decl_entry(__Unify___maybe__maybe_1_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module17)
	MR_init_entry1(__Unify___ll_backend__proc_gen__frame_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___ll_backend__proc_gen__frame_info_0_0);
	MR_init_label3(__Unify___ll_backend__proc_gen__frame_info_0_0,4,6,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___ll_backend__proc_gen__frame_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___ll_backend__proc_gen__frame_info_0_0_i6);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_tempr3 = MR_tfield(0, MR_tempr1, 0);
	MR_tempr4 = MR_tfield(0, MR_tempr2, 0);
	if ((MR_tempr3 != MR_tempr4)) {
		MR_GOTO_LAB(__Unify___ll_backend__proc_gen__frame_info_0_0_i1);
	}
	MR_tempr3 = MR_tempr1;
	MR_sv(1) = MR_tfield(0, MR_tempr3, 2);
	MR_tempr4 = MR_tempr2;
	MR_sv(2) = MR_tfield(0, MR_tempr4, 2);
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = MR_tfield(0, MR_tempr3, 1);
	MR_r3 = MR_tfield(0, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___ll_backend__proc_gen__frame_info_0_0_i4);
MR_def_label(__Unify___ll_backend__proc_gen__frame_info_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___ll_backend__proc_gen__frame_info_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___ll_backend__proc_gen__frame_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___ll_backend__proc_gen__frame_info_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_int_3_0);
MR_decl_entry(__Compare___maybe__maybe_1_0);

MR_BEGIN_MODULE(ll_backend__proc_gen_module18)
	MR_init_entry1(__Compare___ll_backend__proc_gen__frame_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___ll_backend__proc_gen__frame_info_0_0);
	MR_init_label5(__Compare___ll_backend__proc_gen__frame_info_0_0,3,2,5,9,29)
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___ll_backend__proc_gen__frame_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___ll_backend__proc_gen__frame_info_0_0_i3);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___ll_backend__proc_gen__frame_info_0_0_i2);
MR_def_label(__Compare___ll_backend__proc_gen__frame_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___ll_backend__proc_gen__frame_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___ll_backend__proc_gen__frame_info_0_0_i5);
MR_def_label(__Compare___ll_backend__proc_gen__frame_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___ll_backend__proc_gen__frame_info_0_0_i29);
	}
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___ll_backend__proc_gen__frame_info_0_0_i9);
MR_def_label(__Compare___ll_backend__proc_gen__frame_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___ll_backend__proc_gen__frame_info_0_0_i29);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___ll_backend__proc_gen__frame_info_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module19)
	MR_init_entry1(__Unify___ll_backend__proc_gen__type_giving_arg_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___ll_backend__proc_gen__type_giving_arg_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___ll_backend__proc_gen__type_giving_arg_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module20)
	MR_init_entry1(__Compare___ll_backend__proc_gen__type_giving_arg_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___ll_backend__proc_gen__type_giving_arg_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___ll_backend__proc_gen__type_giving_arg_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module21)
	MR_init_entry1(ll_backend__proc_gen__IntroducedFrom__pred__generate_proc_code__400__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__IntroducedFrom__pred__generate_proc_code__400__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_proc_code__400__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(ll_backend__proc_gen__IntroducedFrom__pred__generate_proc_code__400__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module22)
	MR_init_entry1(ll_backend__proc_gen__IntroducedFrom__pred__generate_category_code__764__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__IntroducedFrom__pred__generate_category_code__764__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_category_code__764__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(ll_backend__proc_gen__IntroducedFrom__pred__generate_category_code__764__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,13,3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_declare_entry(MR_do_fail);
MR_decl_entry(list__member_2_1);
MR_decl_entry(set__member_2_1);

MR_BEGIN_MODULE(ll_backend__proc_gen_module23)
	MR_init_entry1(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0);
	MR_init_label2(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_exit__1112__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(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_mkframe("pred ll_backend.proc_gen.IntroducedFrom__pred__generate_exit__1112__1/2-0", 1,
		MR_ENTRY(MR_do_fail));
	MR_fv(1) = (MR_Word) MR_CTOR0_ADDR(ll_backend__llds, layout_locn);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__member_2_1,
		ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0_i2);
MR_def_label(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_fv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__member_2_1,
		ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0_i3);
MR_def_label(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1112__1_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_mask_field(MR_r1, 0);
	MR_succeed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_special_proc_return_0;

MR_BEGIN_MODULE(ll_backend__proc_gen_module24)
	MR_init_entry1(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1133__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1133__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_exit__1133__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(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1133__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, special_proc_return);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module25)
	MR_init_entry1(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1143__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1143__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__generate_exit__1143__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(ll_backend__proc_gen__IntroducedFrom__pred__generate_exit__1143__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, special_proc_return);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module26)
	MR_init_entry1(ll_backend__proc_gen__IntroducedFrom__pred__add_tabling_info_struct__1343__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__ll_backend__proc_gen__IntroducedFrom__pred__add_tabling_info_struct__1343__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__add_tabling_info_struct__1343__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(ll_backend__proc_gen__IntroducedFrom__pred__add_tabling_info_struct__1343__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r2 == MR_r1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(ll_backend__proc_gen_module27)
	MR_init_entry1(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0);
	MR_init_label3(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0,5,6,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__interleave_2__[1]_0'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0_i2);
	}
	MR_r5 = (MR_Integer) 0;
MR_def_label(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_r5 = ((MR_Integer) MR_r5 + (MR_Integer) 1);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(1, MR_r1, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = MR_r3;
	MR_r3 = MR_tempr1;
	if (MR_LTAGS_TESTR(MR_r1,0,0))
		continue;
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	}
	break; } /* end while */
MR_def_label(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r5 = ((MR_Integer) MR_r5 - (MR_Integer) 1);
	if (MR_INT_GT(MR_r5,0))
		continue;
	MR_proceed();
	}
	break; } /* end while */
MR_def_label(f_108_108_95_98_97_99_107_101_110_100_95_95_112_114_111_99_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_105_110_116_101_114_108_101_97_118_101_95_50_95_95_91_49_93_95_48_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

static void mercury__ll_backend__proc_gen_maybe_bunch_0(void)
{
	ll_backend__proc_gen_module0();
	ll_backend__proc_gen_module1();
	ll_backend__proc_gen_module2();
	ll_backend__proc_gen_module3();
	ll_backend__proc_gen_module4();
	ll_backend__proc_gen_module5();
	ll_backend__proc_gen_module6();
	ll_backend__proc_gen_module7();
	ll_backend__proc_gen_module8();
	ll_backend__proc_gen_module9();
	ll_backend__proc_gen_module10();
	ll_backend__proc_gen_module11();
	ll_backend__proc_gen_module12();
	ll_backend__proc_gen_module13();
	ll_backend__proc_gen_module14();
	ll_backend__proc_gen_module15();
	ll_backend__proc_gen_module16();
	ll_backend__proc_gen_module17();
	ll_backend__proc_gen_module18();
	ll_backend__proc_gen_module19();
	ll_backend__proc_gen_module20();
	ll_backend__proc_gen_module21();
	ll_backend__proc_gen_module22();
	ll_backend__proc_gen_module23();
	ll_backend__proc_gen_module24();
	ll_backend__proc_gen_module25();
	ll_backend__proc_gen_module26();
	ll_backend__proc_gen_module27();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__ll_backend__proc_gen__init(void);
void mercury__ll_backend__proc_gen__init_type_tables(void);
void mercury__ll_backend__proc_gen__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__ll_backend__proc_gen__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__ll_backend__proc_gen__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__ll_backend__proc_gen__init_threadscope_string_table(void);
#endif

void mercury__ll_backend__proc_gen__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__ll_backend__proc_gen_maybe_bunch_0();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_ll_backend__proc_gen__type_ctor_info_frame_info_0,
		ll_backend__proc_gen__frame_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_ll_backend__proc_gen__type_ctor_info_type_giving_arg_0,
		ll_backend__proc_gen__type_giving_arg_0_0);
	mercury__ll_backend__proc_gen__init_debugger();
}

void mercury__ll_backend__proc_gen__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_ll_backend__proc_gen__type_ctor_info_frame_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_ll_backend__proc_gen__type_ctor_info_type_giving_arg_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__ll_backend__proc_gen__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__ll_backend__proc_gen);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__ll_backend__proc_gen__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__ll_backend__proc_gen__init_threadscope_string_table(void)
{
}

#endif

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