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

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

#line 28 "hlds.make_hlds.superhomogeneous.c"
#line 536 "../library/io.int"
#include "time.mh"

#line 32 "hlds.make_hlds.superhomogeneous.c"
#line 537 "../library/io.int"
#include "string.mh"

#line 36 "hlds.make_hlds.superhomogeneous.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 40 "hlds.make_hlds.superhomogeneous.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 44 "hlds.make_hlds.superhomogeneous.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 48 "hlds.make_hlds.superhomogeneous.c"
#line 49 "hlds.make_hlds.superhomogeneous.c"
#include "hlds.make_hlds.superhomogeneous.mh"

#line 52 "hlds.make_hlds.superhomogeneous.c"
#line 53 "hlds.make_hlds.superhomogeneous.c"
#ifndef HLDS__MAKE_HLDS__SUPERHOMOGENEOUS_DECL_GUARD
#define HLDS__MAKE_HLDS__SUPERHOMOGENEOUS_DECL_GUARD

#line 57 "hlds.make_hlds.superhomogeneous.c"
#line 58 "hlds.make_hlds.superhomogeneous.c"

#endif
#line 61 "hlds.make_hlds.superhomogeneous.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_Integer f1;
	MR_String f2;
};
MR_STATIC_LINKAGE const struct mercury_type_1 mercury_common_1[];

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_arg_context_0,
	mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_num_added_goals_0;
MR_decl_label4(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0, 22,5,2,1)
MR_decl_label1(hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0, 2)
MR_decl_label10(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0, 4,6,7,2,10,12,13,8,14,16)
MR_decl_label10(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0, 17,20,18,24,25,27,28,29,30,31)
MR_decl_label10(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0, 35,38,37,36,39,40,41,45,46,47)
MR_decl_label2(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0, 48,50)
MR_decl_label10(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0, 6,8,9,10,11,12,13,14,5,3)
MR_decl_label2(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0, 17,20)
MR_decl_label5(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0, 15,4,5,6,7)
MR_decl_label5(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0, 29,3,9,10,8)
MR_decl_label8(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0, 5,2,3,8,11,15,21,22)
MR_decl_label6(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0, 16,4,5,6,7,8)
MR_decl_label7(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0, 37,3,9,11,13,14,8)
MR_decl_label6(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0, 16,4,5,6,7,8)
MR_decl_label5(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0, 2,10,11,12,6)
MR_decl_label10(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0, 2,3,4,10,13,14,18,15,5,25)
MR_decl_label1(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0, 2)
MR_decl_label1(hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0, 2)
MR_decl_label5(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0, 2,8,3,4,10)
MR_decl_label2(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0, 2,4)
MR_decl_label3(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0, 11,3,4)
MR_decl_label6(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0, 38,9,10,4,13,14)
MR_decl_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 13,16,18,21,23,24,26,27,28,29)
MR_decl_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 30,32,6,36,37,38,39,40,41,42)
MR_decl_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 34,44,46,47,51,43,59,61,63,64)
MR_decl_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 75,52,77,78,79,81,82,85,88,89)
MR_decl_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 87,95,96,97,76,111,114,117,118,116)
MR_decl_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 119,121,122,124,125,126,127,128,130,99)
MR_decl_label9(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0, 133,136,137,140,139,142,143,145,1)
MR_decl_label8(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0, 81,8,12,10,18,16,82,1)
MR_decl_label5(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0, 2,6,7,8,3)
MR_decl_label1(hlds__make_hlds__superhomogeneous__unravel_unification_20_0, 2)
MR_decl_label10(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0, 2,6,3,4,10,11,12,15,13,17)
MR_decl_label10(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0, 19,20,21,24,27,28,26,29,8,32)
MR_decl_label10(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0, 35,36,31,39,40,41,45,46,43,48)
MR_decl_label4(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0, 50,53,55,57)
MR_decl_label6(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0, 5,11,13,27,9,1)
MR_decl_label10(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0, 3,2,7,5,52,12,15,19,10,26)
MR_decl_label3(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0, 27,29,102)
MR_decl_static(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0)
MR_def_extern_entry(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0)
MR_def_extern_entry(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0)
MR_def_extern_entry(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0)
MR_decl_static(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0)
MR_def_extern_entry(hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0)
MR_def_extern_entry(hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0)
MR_def_extern_entry(hlds__make_hlds__superhomogeneous__unravel_unification_20_0)
MR_def_extern_entry(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0)
MR_def_extern_entry(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0)
MR_def_extern_entry(__Unify___hlds__make_hlds__superhomogeneous__num_added_goals_0_0)
MR_def_extern_entry(__Compare___hlds__make_hlds__superhomogeneous__num_added_goals_0_0)
MR_decl_static(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_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_term__type_ctor_info_term_1;
static const struct mercury_type_0 mercury_common_0[4] =
{
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_TAG_COMMON(3,1,0),
MR_tbmkword(0, 0)
}
},
{
{
MR_CTOR1_ADDR(term, term),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_TAG_COMMON(3,1,1),
MR_tbmkword(0, 0)
}
},
};

static const struct mercury_type_1 mercury_common_1[2] =
{
{
4,
MR_string_const("Error:", 6)
},
{
4,
MR_string_const("In explicit type qualification:", 31)
},
};
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;

const MR_PseudoTypeInfo mercury_data_hlds__make_hlds__superhomogeneous__field_types_arg_context_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_0 = {
	"ac_head",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__make_hlds__superhomogeneous__field_types_arg_context_0_0,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_call_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_call_id_0;

const MR_PseudoTypeInfo mercury_data_hlds__make_hlds__superhomogeneous__field_types_arg_context_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_call_id_0
};

static const MR_DuFunctorDesc mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_1 = {
	"ac_call",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__make_hlds__superhomogeneous__field_types_arg_context_0_1,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_unify_sub_context_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0;

const MR_PseudoTypeInfo mercury_data_hlds__make_hlds__superhomogeneous__field_types_arg_context_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_unify_sub_context_0
};

static const MR_DuFunctorDesc mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_2 = {
	"ac_functor",
	3,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__make_hlds__superhomogeneous__field_types_arg_context_0_2,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__make_hlds__superhomogeneous__du_stag_ordered_arg_context_0_0[] = {
	&mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__make_hlds__superhomogeneous__du_stag_ordered_arg_context_0_1[] = {
	&mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__make_hlds__superhomogeneous__du_stag_ordered_arg_context_0_2[] = {
	&mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_2

};

const MR_DuPtagLayout mercury_data_hlds__make_hlds__superhomogeneous__du_ptag_ordered_arg_context_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__make_hlds__superhomogeneous__du_stag_ordered_arg_context_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__make_hlds__superhomogeneous__du_stag_ordered_arg_context_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__make_hlds__superhomogeneous__du_stag_ordered_arg_context_0_2 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__make_hlds__superhomogeneous__du_name_ordered_arg_context_0[] = {
	&mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_1,
	&mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_2,
	&mercury_data_hlds__make_hlds__superhomogeneous__du_functor_desc_arg_context_0_0
};

const MR_Integer mercury_data_hlds__make_hlds__superhomogeneous__functor_number_map_arg_context_0[] = {
	2,
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_arg_context_0 = {
	0,
	14,
	3,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0)),
	"hlds.make_hlds.superhomogeneous",
	"arg_context",
	{ (void *)mercury_data_hlds__make_hlds__superhomogeneous__du_name_ordered_arg_context_0 },
	{ (void *)mercury_data_hlds__make_hlds__superhomogeneous__du_ptag_ordered_arg_context_0 },
	3,
	4,
	mercury_data_hlds__make_hlds__superhomogeneous__functor_number_map_arg_context_0
};

const MR_TypeCtorInfo_Struct mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_num_added_goals_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__make_hlds__superhomogeneous__num_added_goals_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__make_hlds__superhomogeneous__num_added_goals_0_0)),
	"hlds.make_hlds.superhomogeneous",
	"num_added_goals",
	{ 0 },
	{ (void *)&mercury_data_builtin__type_ctor_info_int_0 },
	-1,
	0,
	NULL
};



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(hlds__hlds_goal__goal_info_set_nonlocals_3_0);
MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module0)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0);
	MR_init_label6(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,38,9,10,4,13,14)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mark_nonlocals_in_ground_term_construct'/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(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i38);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i4);
	}
	MR_tempr3 = MR_tfield(0, MR_tempr2, 1);
	if (MR_PTAG_TESTR(MR_tempr3,1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i4);
	}
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(1, MR_tempr4, 1) = MR_tfield(1, MR_tempr3, 2);
	MR_sv(2) = MR_tempr2;
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	}
	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,
		hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i9);
MR_def_label(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_nonlocals_3_0,
		hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_np_localcall_lab(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,
		hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i14);
MR_def_label(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.make_hlds.superhomogeneous", 31);
	MR_r2 = (MR_Word) MR_string_const("predicate \140hlds.make_hlds.superhomogeneous.mark_nonlocals_in_ground_term_construct\'/2", 85);
	MR_r3 = (MR_Word) MR_string_const("wrong shape goal", 16);
	MR_np_call_localret_ent(require__unexpected_3_0,
		hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i13);
MR_def_label(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_localcall_lab(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,
		hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0_i14);
MR_def_label(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,14)
	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(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__make_hlds__state_var__substitute_state_var_mapping_8_0);
MR_decl_entry(f_108_105_115_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_109_101_109_98_101_114_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(varset__new_var_3_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module1)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0);
	MR_init_label5(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,2,8,3,4,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_fresh_arg_var'/9 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_r4 = MR_r5;
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mapping_8_0,
		hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0_i4);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_108_105_115_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0_i8);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0_i3);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_decr_sp_and_return(5);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r2 = MR_sv(4);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_np_call_localret_ent(varset__new_var_3_0,
		hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	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(hlds__make_hlds__superhomogeneous_module2)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0);
	MR_init_label3(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0,11,3,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_fresh_arg_vars_loop'/9 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0_i3);
	}
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_r4 = MR_r5;
	MR_decr_sp_and_return(3);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,
		hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0,4)
	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) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(1);
	MR_r1 = MR_sv(2);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr3;
	MR_r5 = MR_tempr4;
	MR_succip_word = MR_sv(3);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0_i11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__reverse_2_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module3)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0);
	MR_init_label2(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_fresh_arg_vars'/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__hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_tempr3 = MR_r4;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_tempr3;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_loop_9_0,
		hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__reverse_2_0,
		hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__make_hlds__qual_info__qual_info_get_import_status_2_0);
MR_decl_entry(hlds__make_hlds__qual_info__qual_info_get_mq_info_2_0);
MR_decl_entry(parse_tree__module_qual__qualify_lambda_mode_list_7_0);
MR_decl_entry(hlds__make_hlds__qual_info__qual_info_set_mq_info_3_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module4)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0);
	MR_init_label5(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,2,6,7,8,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'qualify_lambda_mode_list_if_not_opt_imported'/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(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__qual_info_get_import_status_2_0,
		hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0_i3);
	}
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__qual_info_get_mq_info_2_0,
		hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(4);
	}
	MR_np_call_localret_ent(parse_tree__module_qual__qualify_lambda_mode_list_7_0,
		hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0_i7);
MR_def_label(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_r1 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__qual_info_set_mq_info_3_0,
		hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0_i8);
MR_def_label(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(5);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	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(check_hlds__mode_util__mode_is_undefined_2_0);
MR_decl_entry(check_hlds__mode_util__mode_is_output_2_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module5)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0);
	MR_init_label8(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,81,8,12,10,18,16,82,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'partition_args_and_lambda_vars'/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(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i81);
	}
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i82);
	}
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i82);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i1);
	}
	if (MR_LTAGS_TEST(MR_r4,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i1);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(1, MR_r2, 0);
	MR_sv(3) = MR_tfield(1, MR_r3, 0);
	MR_sv(4) = MR_tfield(1, MR_r4, 0);
	MR_r2 = MR_tfield(1, MR_r2, 1);
	MR_r3 = MR_tfield(1, MR_r3, 1);
	MR_r4 = MR_tfield(1, MR_r4, 1);
	MR_np_localcall_lab(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,
		hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i8);
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i1);
	}
	MR_sv(5) = MR_r2;
	MR_sv(6) = MR_r3;
	MR_sv(7) = MR_r4;
	MR_sv(8) = MR_r5;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(check_hlds__mode_util__mode_is_undefined_2_0,
		hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i12);
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i10);
	}
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(2);
	MR_tfield(1, MR_r2, 1) = MR_sv(5);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(7);
	MR_r3 = MR_sv(6);
	MR_r5 = MR_sv(8);
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(6);
	MR_tempr2 = MR_sv(7);
	MR_tempr3 = MR_sv(8);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(check_hlds__mode_util__mode_is_output_2_0,
		hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i18);
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0_i16);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(6);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r5 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr2, 1) = MR_sv(8);
	MR_r2 = MR_sv(5);
	MR_r4 = MR_sv(7);
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr2, 1) = MR_r4;
	MR_r2 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
MR_def_label(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	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(fn__libs__globals__get_maybe_from_ground_term_threshold_0_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module6)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0);
	MR_init_label1(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'insert_arg_unifications'/19 mode 0 */
#ifdef MR_maybe_local_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__hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(11) = MR_r11;
	MR_np_call_localret_ent(fn__libs__globals__get_maybe_from_ground_term_threshold_0_0,
		hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(10);
	MR_r12 = MR_sv(11);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_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__make_hlds__state_var__svar_goal_to_conj_list_4_0);
MR_decl_entry(hlds__make_hlds__state_var__substitute_state_var_mappings_8_0);
MR_decl_entry(hlds__hlds_goal__goal_info_set_context_3_0);
MR_decl_entry(hlds__hlds_goal__conj_list_to_goal_3_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module7)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0);
	MR_init_label6(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,16,4,5,6,7,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_insert_arg_unifications'/20 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0_i16);
	}
	MR_r2 = (MR_Integer) 0;
	MR_r1 = MR_r5;
	MR_r3 = MR_r7;
	MR_r4 = MR_r8;
	MR_r5 = MR_r9;
	MR_r6 = MR_r10;
	MR_r7 = MR_r11;
	MR_r8 = MR_r12;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(6) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_sv(10) = MR_r11;
	MR_sv(11) = MR_r12;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,4)
	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(7);
	MR_sv(7) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(11);
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mappings_8_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0_i5);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_r5 = (MR_Integer) 1;
	MR_r6 = MR_sv(2);
	MR_r7 = MR_sv(5);
	MR_r8 = (MR_Integer) 0;
	MR_r9 = MR_tempr3;
	MR_r10 = MR_sv(7);
	MR_r11 = MR_tempr2;
	MR_r12 = MR_sv(9);
	MR_r13 = MR_sv(10);
	MR_r14 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_context_3_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0_i7);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,7)
	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(hlds__hlds_goal__conj_list_to_goal_3_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0_i8);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
	MR_decr_sp_and_return(12);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0;
MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module8)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0);
	MR_init_label7(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,37,3,9,11,13,14,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_insert_arg_unifications_loop'/22 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i3);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i8);
	}
	MR_r1 = MR_r6;
	MR_r2 = MR_r8;
	MR_r3 = MR_r9;
	MR_r4 = MR_r10;
	MR_r5 = MR_r11;
	MR_r6 = MR_r12;
	MR_r7 = MR_r13;
	MR_r8 = MR_r14;
	MR_decr_sp_and_return(9);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i8);
	}
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_r4;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r7;
	MR_sv(5) = MR_tempr1;
	MR_sv(6) = MR_r8;
	MR_sv(7) = MR_tfield(1, MR_r2, 1);
	MR_sv(8) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_r2 = MR_tfield(1, MR_r2, 0);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_r9;
	MR_r8 = MR_r10;
	MR_r9 = MR_r11;
	MR_r10 = MR_r12;
	MR_r11 = MR_r13;
	MR_r12 = MR_r14;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i9);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i11);
	}
	MR_r1 = MR_sv(8);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(7);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_sv(1);
	MR_tempr3 = MR_r4;
	MR_r4 = MR_sv(2);
	MR_tempr4 = MR_r5;
	MR_r5 = ((MR_Integer) MR_sv(3) + (MR_Integer) 1);
	MR_tempr5 = MR_r6;
	MR_r6 = MR_sv(4);
	MR_tempr6 = MR_r7;
	MR_r7 = MR_sv(5);
	MR_tempr7 = MR_r8;
	MR_r8 = ((MR_Integer) MR_sv(6) + (MR_Integer) MR_tempr1);
	MR_r9 = MR_tempr2;
	MR_r10 = MR_tempr3;
	MR_r11 = MR_tempr4;
	MR_r12 = MR_tempr5;
	MR_r13 = MR_tempr6;
	MR_r14 = MR_tempr7;
	MR_succip_word = MR_sv(9);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i37);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(7);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(2);
	MR_tempr5 = MR_r5;
	MR_r5 = ((MR_Integer) MR_sv(3) + (MR_Integer) 1);
	MR_tempr6 = MR_r6;
	MR_r6 = MR_sv(4);
	MR_tempr7 = MR_r7;
	MR_r7 = MR_sv(5);
	MR_tempr8 = MR_r8;
	MR_r8 = ((MR_Integer) MR_sv(6) + (MR_Integer) MR_tempr2);
	MR_r9 = MR_tempr3;
	MR_r10 = MR_tempr4;
	MR_r11 = MR_tempr5;
	MR_r12 = MR_tempr6;
	MR_r13 = MR_tempr7;
	MR_r14 = MR_tempr8;
	}
	MR_np_localcall_lab(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i13);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	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_r7;
	MR_sv(7) = MR_r8;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0_i14);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_decr_sp_and_return(9);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_loop_22_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.make_hlds.superhomogeneous", 31);
	MR_r2 = (MR_Word) MR_string_const("predicate \140hlds.make_hlds.superhomogeneous.do_insert_arg_unifications_loop\'/22", 78);
	MR_r3 = (MR_Word) MR_string_const("length mismatch", 15);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module9)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0);
	MR_init_label6(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,16,4,5,6,7,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_insert_arg_unifications_with_supplied_contexts'/20 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0_i16);
	}
	MR_r2 = (MR_Integer) 0;
	MR_r1 = MR_r5;
	MR_r3 = MR_r7;
	MR_r4 = MR_r8;
	MR_r5 = MR_r9;
	MR_r6 = MR_r10;
	MR_r7 = MR_r11;
	MR_r8 = MR_r12;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(6) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_sv(10) = MR_r11;
	MR_sv(11) = MR_r12;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,4)
	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(7);
	MR_sv(7) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(11);
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mappings_8_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0_i5);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(5);
	MR_r7 = (MR_Integer) 0;
	MR_r8 = MR_tempr3;
	MR_r9 = MR_sv(7);
	MR_r10 = MR_tempr2;
	MR_r11 = MR_sv(9);
	MR_r12 = MR_sv(10);
	MR_r13 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_context_3_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0_i7);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,7)
	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(hlds__hlds_goal__conj_list_to_goal_3_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0_i8);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
	MR_decr_sp_and_return(12);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module10)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0);
	MR_init_label5(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,2,10,11,12,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_insert_arg_unifications_with_supplied_contexts_loop'/21 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i2);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i2);
	}
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i2);
	}
	MR_r1 = MR_r5;
	MR_r2 = MR_r7;
	MR_r3 = MR_r8;
	MR_r4 = MR_r9;
	MR_r5 = MR_r10;
	MR_r6 = MR_r11;
	MR_r7 = MR_r12;
	MR_r8 = MR_r13;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i6);
	}
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i6);
	}
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i6);
	}
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_r4;
	MR_sv(1) = MR_tempr3;
	MR_sv(2) = MR_r6;
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	MR_sv(4) = MR_tfield(1, MR_r2, 1);
	MR_tempr4 = MR_r3;
	MR_sv(5) = MR_tfield(1, MR_tempr4, 1);
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r7;
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_r2 = MR_tfield(1, MR_r2, 0);
	MR_tempr1 = MR_tempr4;
	MR_r3 = MR_tempr3;
	MR_tempr2 = MR_tfield(1, MR_tempr1, 0);
	MR_r4 = MR_tfield(0, MR_tempr2, 1);
	MR_r5 = MR_tfield(0, MR_tempr2, 0);
	MR_r7 = MR_r8;
	MR_r8 = MR_r9;
	MR_r9 = MR_r10;
	MR_r10 = MR_r11;
	MR_r11 = MR_r12;
	MR_r12 = MR_r13;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(5);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_tempr5 = MR_r5;
	MR_r5 = MR_sv(6);
	MR_tempr6 = MR_r6;
	MR_r6 = MR_sv(2);
	MR_tempr7 = MR_r7;
	MR_r7 = ((MR_Integer) MR_sv(7) + (MR_Integer) MR_tempr2);
	MR_tempr2 = MR_r8;
	MR_r8 = MR_tempr3;
	MR_r9 = MR_tempr4;
	MR_r10 = MR_tempr5;
	MR_r11 = MR_tempr6;
	MR_r12 = MR_tempr7;
	MR_r13 = MR_tempr2;
	}
	MR_np_localcall_lab(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i11);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	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_r7;
	MR_sv(7) = MR_r8;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0_i12);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_decr_sp_and_return(8);
MR_def_label(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_loop_21_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.make_hlds.superhomogeneous", 31);
	MR_r2 = (MR_Word) MR_string_const("predicate \140hlds.make_hlds.superhomogeneous.do_insert_arg_unifications_with_supplied_contexts_loop\'/21", 101);
	MR_r3 = (MR_Word) MR_string_const("length mismatch", 15);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module11)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0);
	MR_init_label5(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,15,4,5,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_append_arg_unifications'/20 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0_i15);
	}
	MR_r2 = (MR_Integer) 0;
	MR_r1 = MR_r5;
	MR_r3 = MR_r7;
	MR_r4 = MR_r8;
	MR_r5 = MR_r9;
	MR_r6 = MR_r10;
	MR_r7 = MR_r11;
	MR_r8 = MR_r12;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(6) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_sv(10) = MR_r11;
	MR_sv(11) = MR_r12;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,4)
	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(7);
	MR_sv(7) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(11);
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mappings_8_0,
		hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0_i5);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_r5 = (MR_Integer) 1;
	MR_r6 = MR_sv(2);
	MR_r7 = MR_sv(5);
	MR_r8 = (MR_Integer) 0;
	MR_r9 = MR_tempr3;
	MR_r10 = MR_sv(7);
	MR_r11 = MR_tempr2;
	MR_r12 = MR_sv(9);
	MR_r13 = MR_sv(10);
	MR_r14 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,
		hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,6)
	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_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r7;
	MR_sv(7) = MR_r8;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__conj_list_to_goal_3_0,
		hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0_i7);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_decr_sp_and_return(12);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module12)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0);
	MR_init_label5(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,29,3,9,10,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_append_arg_unifications_loop'/22 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0_i3);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0_i8);
	}
	MR_r1 = MR_r6;
	MR_r2 = MR_r8;
	MR_r3 = MR_r9;
	MR_r4 = MR_r10;
	MR_r5 = MR_r11;
	MR_r6 = MR_r12;
	MR_r7 = MR_r13;
	MR_r8 = MR_r14;
	MR_decr_sp_and_return(14);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0_i8);
	}
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_r4;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r7;
	MR_sv(5) = MR_tempr1;
	MR_sv(6) = MR_r8;
	MR_sv(7) = MR_tfield(1, MR_r2, 1);
	MR_sv(13) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_r2 = MR_tfield(1, MR_r2, 0);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_r9;
	MR_r8 = MR_r10;
	MR_r9 = MR_r11;
	MR_r10 = MR_r12;
	MR_r11 = MR_r13;
	MR_r12 = MR_r14;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,
		hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0_i9);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r3;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_r4;
	MR_sv(8) = MR_r5;
	MR_sv(9) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_sv(11) = MR_r8;
	MR_sv(12) = ((MR_Integer) MR_tempr2 + (MR_Integer) MR_r2);
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = ((MR_Integer) MR_sv(3) + (MR_Integer) 1);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(5);
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(4);
	MR_r10 = MR_sv(6);
	MR_r11 = MR_sv(8);
	MR_r12 = MR_sv(9);
	MR_r13 = MR_sv(10);
	MR_r14 = MR_sv(11);
	MR_succip_word = MR_sv(14);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0_i29);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_loop_22_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.make_hlds.superhomogeneous", 31);
	MR_r2 = (MR_Word) MR_string_const("predicate \140hlds.make_hlds.superhomogeneous.do_append_arg_unifications_loop\'/22", 78);
	MR_r3 = (MR_Word) MR_string_const("length mismatch", 15);
	MR_succip_word = MR_sv(14);
	MR_decr_sp(14);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___term__var_1_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module13)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_arg_unification_20_0);
	MR_init_label8(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,5,2,3,8,11,15,21,22)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_arg_unification'/20 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(11) = MR_r11;
	MR_sv(12) = MR_r12;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(1, MR_sv(2), 0);
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i5);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i2);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(9);
	MR_r6 = MR_sv(10);
	MR_r7 = MR_sv(11);
	MR_r8 = MR_sv(12);
	MR_decr_sp_and_return(13);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
	MR_r9 = MR_sv(9);
	MR_r10 = MR_sv(10);
	MR_r11 = MR_sv(11);
	MR_r12 = MR_sv(12);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 2);
	MR_tfield(2, MR_tempr1, 0) = MR_tfield(1, MR_r4, 0);
	MR_tfield(2, MR_tempr1, 1) = MR_r5;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_r1;
	MR_tfield(1, MR_tempr2, 1) = MR_r3;
	MR_tempr3 = MR_r7;
	MR_r7 = MR_r6;
	MR_r4 = MR_tempr1;
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr4 = MR_r8;
	MR_r8 = MR_tempr3;
	MR_tempr5 = MR_r9;
	MR_r9 = MR_tempr4;
	MR_tempr6 = MR_r10;
	MR_r10 = MR_tempr5;
	MR_tempr7 = MR_r11;
	MR_r11 = MR_tempr6;
	MR_tempr8 = MR_r12;
	MR_r12 = MR_tempr7;
	MR_r13 = MR_tempr8;
	MR_r1 = MR_tempr2;
	MR_r6 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i21);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,2)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i11);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8, MR_tempr9;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tempr9 = MR_r4;
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(2, MR_tempr9, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_r5;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r5 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_tfield(2, MR_tempr9, 2);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_r3;
	MR_tempr3 = MR_r7;
	MR_r7 = MR_r6;
	MR_r4 = MR_tfield(2, MR_r4, 1);
	MR_tempr4 = MR_r8;
	MR_r8 = MR_tempr3;
	MR_tempr5 = MR_r9;
	MR_r9 = MR_tempr4;
	MR_tempr6 = MR_r10;
	MR_r10 = MR_tempr5;
	MR_tempr7 = MR_r11;
	MR_r11 = MR_tempr6;
	MR_tempr8 = MR_r12;
	MR_r12 = MR_tempr7;
	MR_r13 = MR_tempr8;
	MR_r1 = MR_tempr1;
	MR_r6 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i21);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tempr8 = MR_r4;
	MR_tempr1 = MR_tfield(0, MR_tempr8, 0);
	if (MR_INT_NE(MR_tempr1,1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i15);
	}
	MR_tempr1 = MR_tfield(0, MR_tempr8, 1);
	if ((MR_r5 != MR_tempr1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i15);
	}
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_r3;
	MR_tempr2 = MR_r7;
	MR_r7 = MR_r6;
	MR_r4 = (MR_Word) MR_tbmkword(0, 1);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr3 = MR_r8;
	MR_r8 = MR_tempr2;
	MR_tempr4 = MR_r9;
	MR_r9 = MR_tempr3;
	MR_tempr5 = MR_r10;
	MR_r10 = MR_tempr4;
	MR_tempr6 = MR_r11;
	MR_r11 = MR_tempr5;
	MR_tempr7 = MR_r12;
	MR_r12 = MR_tempr6;
	MR_r13 = MR_tempr7;
	MR_r1 = MR_tempr1;
	MR_r6 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i21);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r4, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r4, 0) = MR_r5;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_r3;
	MR_tempr2 = MR_r7;
	MR_r7 = MR_r6;
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr3 = MR_r8;
	MR_r8 = MR_tempr2;
	MR_tempr4 = MR_r9;
	MR_r9 = MR_tempr3;
	MR_tempr5 = MR_r10;
	MR_r10 = MR_tempr4;
	MR_tempr6 = MR_r11;
	MR_r11 = MR_tempr5;
	MR_tempr7 = MR_r12;
	MR_r12 = MR_tempr6;
	MR_r13 = MR_tempr7;
	MR_r1 = MR_tempr1;
	MR_r6 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i21);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_r2 = MR_r4;
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__do_arg_unification_20_0_i22);
MR_def_label(hlds__make_hlds__superhomogeneous__do_arg_unification_20_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = MR_sv(5);
	MR_r8 = MR_sv(6);
	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(fn__set__make_singleton_set_1_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module14)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0);
	MR_init_label10(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,2,3,4,10,13,14,18,15,5,25)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_unravel_unification'/21 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	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_r7;
	MR_sv(7) = MR_r9;
	MR_sv(8) = MR_r11;
	MR_sv(9) = MR_r12;
	MR_r2 = MR_r10;
	MR_r3 = MR_r8;
	MR_r4 = MR_r13;
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mapping_8_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mapping_8_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i3);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(2);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_tempr3;
	MR_r8 = MR_sv(7);
	MR_r9 = MR_tempr2;
	MR_r10 = MR_sv(8);
	MR_r11 = MR_sv(9);
	MR_r12 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(6),0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i25);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_sv(6), 0);
	if (((MR_Integer) MR_r2 <= (MR_Integer) MR_tempr1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i25);
	}
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i25);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i25);
	}
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(6) = MR_r3;
	MR_sv(7) = MR_r4;
	MR_sv(8) = MR_r5;
	MR_sv(9) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_sv(11) = MR_r8;
	MR_r1 = MR_tfield(0, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i5);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(fn__set__make_singleton_set_1_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i13);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_nonlocals_3_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i14);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(4),3,1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i15);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i15);
	}
	MR_sv(2) = MR_r1;
	MR_r1 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__mark_nonlocals_in_ground_term_construct_2_0,
		hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0_i18);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,18)
	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) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tempr4 = MR_sv(2);
	MR_tfield(0, MR_tempr2, 1) = MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr3, 1) = MR_tempr1;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr3;
	MR_tfield(0, MR_r1, 1) = MR_tempr4;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(11);
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(11);
	MR_decr_sp_and_return(12);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r1 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(11);
MR_def_label(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(12);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_goal__goal_info_init_1_0);
MR_decl_entry(hlds__make_hlds__qual_info__make_atomic_unification_9_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module15)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0);
	MR_init_label10(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,6,8,9,10,11,12,13,14,5,3)
	MR_init_label2(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,17,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'classify_unravel_unification'/20 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i3);
	}
	if (MR_PTAG_TESTR(MR_r2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i5);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r10;
	MR_sv(10) = MR_r11;
	MR_sv(11) = MR_r12;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_r9;
	MR_np_call_localret_ent(varset__new_var_3_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tempr4 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr4;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr4;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_tempr3;
	MR_r11 = MR_sv(9);
	MR_r12 = MR_sv(10);
	MR_r13 = MR_sv(11);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i8);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_tempr5 = MR_r5;
	MR_r5 = MR_sv(5);
	MR_tempr6 = MR_r6;
	MR_r6 = MR_sv(6);
	MR_tempr7 = MR_r7;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr8 = MR_r8;
	MR_r8 = MR_tempr3;
	MR_r9 = MR_tempr4;
	MR_r10 = MR_tempr5;
	MR_r11 = MR_tempr6;
	MR_r12 = MR_tempr7;
	MR_r13 = MR_tempr8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i9);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_sv(4) = MR_r3;
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_sv(8) = MR_r7;
	MR_sv(9) = MR_r8;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i11);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i12);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_1_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i13);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__conj_list_to_goal_3_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i14);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = ((MR_Integer) MR_sv(2) + (MR_Integer) MR_sv(3));
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_r8 = MR_sv(9);
	MR_decr_sp_and_return(12);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8, MR_tempr9, MR_tempr10, MR_tempr11;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tfield(1, MR_r2, 0);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tfield(0, MR_tempr1, 1);
	MR_tempr3 = MR_r4;
	MR_r4 = MR_tfield(0, MR_tempr1, 2);
	MR_tempr4 = MR_r5;
	MR_r5 = MR_tempr2;
	MR_tempr5 = MR_r6;
	MR_r6 = MR_tempr3;
	MR_tempr6 = MR_r7;
	MR_r7 = MR_tempr4;
	MR_tempr7 = MR_r8;
	MR_r8 = MR_tempr5;
	MR_tempr8 = MR_r9;
	MR_r9 = MR_tempr6;
	MR_tempr9 = MR_r10;
	MR_r10 = MR_tempr7;
	MR_tempr10 = MR_r11;
	MR_r11 = MR_tempr8;
	MR_tempr11 = MR_r12;
	MR_r12 = MR_tempr9;
	MR_r13 = MR_tempr10;
	MR_r14 = MR_tempr11;
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i17);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8, MR_tempr9, MR_tempr10, MR_tempr11;
	MR_tempr1 = MR_r2;
	MR_sv(2) = MR_tempr1;
	MR_r2 = MR_tfield(0, MR_r2, 0);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tfield(0, MR_tempr1, 1);
	MR_tempr3 = MR_r4;
	MR_r4 = MR_tfield(0, MR_tempr1, 2);
	MR_tempr4 = MR_r5;
	MR_r5 = MR_tempr2;
	MR_tempr5 = MR_r6;
	MR_r6 = MR_tempr3;
	MR_tempr6 = MR_r7;
	MR_r7 = MR_tempr4;
	MR_tempr7 = MR_r8;
	MR_r8 = MR_tempr5;
	MR_tempr8 = MR_r9;
	MR_r9 = MR_tempr6;
	MR_tempr9 = MR_r10;
	MR_r10 = MR_tempr7;
	MR_tempr10 = MR_r11;
	MR_r11 = MR_tempr8;
	MR_tempr11 = MR_r12;
	MR_r12 = MR_tempr9;
	MR_r13 = MR_tempr10;
	MR_r14 = MR_tempr11;
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(1, MR_r2, 0);
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(1) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_sv(11) = MR_r12;
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_r2 = MR_tempr1;
	MR_r7 = MR_r11;
	}
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__make_atomic_unification_9_0,
		hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0_i20);
MR_def_label(hlds__make_hlds__superhomogeneous__classify_unravel_unification_20_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_sv(11);
	MR_decr_sp_and_return(12);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_util__parse_rule_term_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_generic_0;
MR_decl_entry(term__coerce_2_0);
MR_decl_entry(parse_tree__prog_io_util__parse_purity_annotation_3_0);
MR_decl_entry(parse_tree__prog_io_goal__parse_pred_expression_6_0);
MR_decl_entry(parse_tree__prog_io_goal__parse_func_expression_6_0);
MR_decl_entry(parse_tree__prog_io_goal__parse_goal_5_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_error_spec_0;
MR_decl_entry(fn__hlds__hlds_goal__true_goal_0_0);
MR_decl_entry(parse_tree__prog_io_sym_name__try_parse_sym_name_and_args_3_0);
MR_decl_entry(list__length_2_0);
MR_decl_entry(fn__parse_tree__prog_data__cons_id_dummy_type_ctor_0_0);
MR_decl_entry(fn__parse_tree__prog_util__make_functor_cons_id_2_0);
MR_decl_entry(hlds__hlds_goal__goal_info_set_purity_3_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module16)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0);
	MR_init_label10(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,2,6,3,4,10,11,12,15,13,17)
	MR_init_label10(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,19,20,21,24,27,28,26,29,8,32)
	MR_init_label10(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,35,36,31,39,40,41,45,46,43,48)
	MR_init_label4(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,50,53,55,57)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'unravel_var_functor_unification'/22 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(19);
	MR_sv(19) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(13) = MR_r10;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r11;
	MR_r3 = MR_r9;
	MR_r4 = MR_r14;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__substitute_state_var_mappings_8_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i4);
	}
	MR_sv(9) = MR_r1;
	MR_sv(16) = MR_r2;
	MR_sv(17) = MR_r3;
	MR_sv(18) = MR_r4;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_sv(2), 0);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
	MR_r9 = MR_sv(17);
	MR_r10 = MR_sv(13);
	MR_r11 = MR_sv(16);
	MR_r12 = MR_sv(14);
	MR_r13 = MR_sv(15);
	MR_r14 = MR_sv(18);
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i3);
	}
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_r4 = MR_r5;
	MR_r5 = MR_r6;
	MR_r6 = MR_r7;
	MR_r7 = MR_r8;
	MR_r8 = MR_r9;
	MR_decr_sp_and_return(19);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(16);
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(18);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_sv(9) = MR_r1;
	MR_sv(16) = MR_r2;
	MR_sv(17) = MR_r3;
	MR_sv(18) = MR_r4;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_util__parse_rule_term_4_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r2;
	MR_sv(11) = (MR_Word) MR_CTOR0_ADDR(term, generic);
	{
	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_sv(11);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i11);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,11)
	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_np_call_localret_ent(parse_tree__prog_io_util__parse_purity_annotation_3_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i12);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__prog_io_goal__parse_pred_expression_6_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i15);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i13);
	}
	MR_r9 = MR_r2;
	MR_r2 = MR_sv(5);
	MR_r10 = MR_r5;
	MR_r5 = (MR_Integer) 0;
	MR_r11 = MR_r6;
	MR_r6 = MR_r9;
	MR_r7 = MR_r4;
	MR_r1 = MR_r10;
	MR_r8 = MR_r11;
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(18);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i19);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(12);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__prog_io_goal__parse_func_expression_6_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i17);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i8);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(5);
	MR_tempr2 = MR_r5;
	MR_r5 = (MR_Integer) 1;
	MR_tempr3 = MR_r6;
	MR_r6 = MR_tempr1;
	MR_r7 = MR_r4;
	MR_r1 = MR_tempr2;
	MR_r8 = MR_tempr3;
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(18);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r2;
	MR_sv(2) = MR_r5;
	MR_sv(3) = MR_r6;
	MR_sv(4) = MR_r7;
	MR_sv(9) = MR_r8;
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i20);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(10);
	MR_sv(10) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_sv(15) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i21);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,0,1);
	MR_r3 = MR_sv(16);
	MR_np_call_localret_ent(parse_tree__prog_io_goal__parse_goal_5_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i24);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i26);
	}
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_sv(15);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i27);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i28);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(13);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(14);
	MR_r7 = MR_sv(12);
	MR_r8 = MR_sv(1);
	MR_decr_sp_and_return(19);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(11);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(2);
	MR_r7 = MR_sv(4);
	MR_r8 = MR_sv(10);
	MR_r9 = MR_sv(9);
	MR_r10 = MR_tfield(1, MR_tempr1, 0);
	MR_r11 = MR_sv(5);
	MR_r12 = MR_sv(6);
	MR_r13 = MR_sv(7);
	MR_r14 = MR_sv(17);
	MR_r15 = MR_sv(13);
	MR_r16 = MR_tempr2;
	MR_r17 = MR_sv(14);
	MR_r18 = MR_sv(12);
	MR_r19 = MR_sv(15);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i29);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tempr1 = MR_r3;
	MR_r3 = MR_sv(17);
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_tempr3 = MR_r5;
	MR_r5 = MR_tempr2;
	MR_tempr4 = MR_r6;
	MR_r6 = MR_tempr3;
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr4;
	MR_r8 = MR_tempr5;
	MR_decr_sp_and_return(19);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,8)
	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(2);
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_sv(4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_np_call_localret_ent(parse_tree__prog_io_sym_name__try_parse_sym_name_and_args_3_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i32);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i31);
	}
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__length_2_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i35);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_data__cons_id_dummy_type_ctor_0_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i36);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_r8 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(9);
	MR_tfield(1, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_sv(2) = MR_tempr1;
	MR_r7 = MR_sv(15);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i41);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r2 = MR_sv(9);
	MR_np_call_localret_ent(list__length_2_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i39);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,39)
	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__parse_tree__prog_util__make_functor_cons_id_2_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i40);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_sv(3) = MR_sv(9);
	MR_r7 = MR_sv(15);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(3),0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i43);
	}
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r2, 0) = MR_sv(2);
	MR_tfield(1, MR_r2, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r2, 2) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(8) = MR_r6;
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__make_atomic_unification_9_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i45);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_purity_3_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i46);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(13);
	MR_r5 = MR_sv(16);
	MR_r6 = MR_sv(14);
	MR_r7 = MR_sv(2);
	MR_r8 = MR_sv(18);
	MR_decr_sp_and_return(19);
	}
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_r3;
	MR_sv(6) = MR_r4;
	MR_sv(7) = MR_r5;
	MR_sv(8) = MR_r6;
	MR_sv(15) = MR_r7;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(16);
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(18);
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__make_fresh_arg_vars_8_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i48);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_tempr1, 2) = MR_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(9) = MR_r2;
	MR_sv(10) = MR_r3;
	MR_sv(11) = MR_r4;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_sv(15);
	}
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__make_atomic_unification_9_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i50);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_r3 = MR_tempr1;
	MR_tfield(2, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(2, MR_tempr1, 1) = MR_sv(6);
	MR_tfield(2, MR_tempr1, 2) = MR_sv(7);
	if (MR_INT_NE(MR_sv(8),0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i53);
	}
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_tempr4 = MR_tempr1;
	MR_r3 = MR_sv(4);
	MR_r4 = MR_tempr4;
	MR_r5 = MR_tempr2;
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(13);
	MR_r9 = MR_sv(9);
	MR_r10 = MR_sv(14);
	MR_r11 = MR_tempr3;
	MR_r12 = MR_sv(11);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i57);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	MR_sv(5) = MR_tfield(0, MR_r1, 0);
	MR_sv(6) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_purity_3_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i55);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(2);
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(13);
	MR_r9 = MR_sv(9);
	MR_r10 = MR_sv(14);
	MR_r11 = MR_sv(6);
	MR_r12 = MR_sv(11);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,
		hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0_i57);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_var_functor_unification_22_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = ((MR_Integer) 1 + (MR_Integer) MR_r2);
	MR_decr_sp_and_return(19);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_io_goal__parse_some_vars_goal_5_0);
MR_decl_entry(hlds__make_hlds__state_var__svar_prepare_for_local_state_vars_7_0);
MR_decl_entry(map__init_1_0);
MR_decl_entry(hlds__make_hlds__goal_expr_to_goal__transform_goal_expr_context_to_goal_17_0);
MR_decl_entry(hlds__make_hlds__state_var__svar_finish_local_state_vars_4_0);
MR_decl_entry(hlds__make_hlds__state_var__svar_finish_if_then_else_18_0);
MR_decl_entry(hlds__hlds_goal__goal_info_init_2_0);
MR_decl_entry(hlds__make_hlds__field_access__maybe_parse_field_list_3_0);
MR_decl_entry(hlds__make_hlds__field_access__expand_get_field_function_call_23_0);
MR_decl_entry(hlds__make_hlds__field_access__expand_set_field_function_call_23_0);
MR_decl_entry(parse_tree__prog_io_goal__parse_dcg_pred_expression_6_0);
MR_decl_entry(parse_tree__prog_io_dcg__parse_dcg_pred_goal_7_0);
MR_decl_entry(varset__coerce_2_0);
MR_decl_entry(parse_tree__prog_io_util__parse_type_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_tvar_type_0;
MR_decl_entry(hlds__make_hlds__qual_info__process_type_qualification_10_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module17)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0);
	MR_init_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,13,16,18,21,23,24,26,27,28,29)
	MR_init_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,30,32,6,36,37,38,39,40,41,42)
	MR_init_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,34,44,46,47,51,43,59,61,63,64)
	MR_init_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,75,52,77,78,79,81,82,85,88,89)
	MR_init_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,87,95,96,97,76,111,114,117,118,116)
	MR_init_label10(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,119,121,122,124,125,126,127,128,130,99)
	MR_init_label9(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,133,136,137,140,139,142,143,145,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_unravel_special_var_functor_unification'/22 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(21);
	MR_sv(21) = (MR_Word) MR_succip;
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tempr5 = MR_r3;
	MR_tempr1 = MR_tfield(1, MR_tempr5, 1);
	MR_r15 = MR_tempr1;
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(1, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_tempr2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const(";", 1)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i6);
	}
	MR_tempr3 = MR_tfield(1, MR_tempr5, 0);
	if (MR_PTAG_TESTR(MR_tempr3,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr3, 0);
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr4 = MR_tfield(0, MR_tempr2, 0);
	if ((strcmp((char *) (MR_Word *) MR_tempr4, MR_string_const("->", 2)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr3, 1);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr3 = MR_tfield(1, MR_tempr2, 1);
	if (MR_LTAGS_TEST(MR_tempr3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr4 = MR_tfield(1, MR_tempr3, 1);
	if (MR_LTAGS_TESTR(MR_tempr4,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_sv(2) = MR_tfield(1, MR_tempr3, 0);
	MR_sv(12) = MR_r9;
	MR_sv(11) = MR_r10;
	MR_sv(13) = MR_r11;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_sv(8) = MR_r14;
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(20) = MR_tfield(1, MR_tempr1, 0);
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i13);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,0,1);
	MR_r3 = MR_sv(13);
	MR_np_call_localret_ent(parse_tree__prog_io_goal__parse_some_vars_goal_5_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i16);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i18);
	}
	MR_sv(16) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_sv(8);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i117);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_tfield(1, MR_r1, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_tfield(1, MR_r1, 1);
	MR_sv(9) = MR_tfield(1, MR_r1, 2);
	MR_sv(16) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(12);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_prepare_for_local_state_vars_7_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i21);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_sv(13) = MR_r2;
	MR_sv(19) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(19);
	MR_r2 = MR_r1;
	MR_np_call_localret_ent(map__init_1_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i23);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(9);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(10);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(16);
	MR_r7 = MR_sv(14);
	MR_r8 = MR_sv(15);
	MR_r9 = MR_sv(13);
	}
	MR_np_call_localret_ent(hlds__make_hlds__goal_expr_to_goal__transform_goal_expr_context_to_goal_17_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i24);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tempr8 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr8;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(1) = MR_r2;
	MR_sv(9) = MR_r3;
	MR_sv(13) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr8;
	MR_tempr3 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_tempr4 = MR_r5;
	MR_r5 = MR_sv(5);
	MR_tempr5 = MR_r6;
	MR_r6 = MR_sv(6);
	MR_tempr6 = MR_r7;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr7 = MR_r8;
	MR_r8 = MR_sv(9);
	MR_r9 = MR_tempr3;
	MR_r10 = MR_tempr4;
	MR_r11 = MR_tempr5;
	MR_r12 = MR_tempr6;
	MR_r13 = MR_tempr7;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i26);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_sv(14) = MR_r4;
	MR_sv(15) = MR_r5;
	MR_sv(16) = MR_r6;
	MR_sv(17) = MR_r7;
	MR_sv(18) = MR_r8;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(12);
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_finish_local_state_vars_4_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i27);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(20);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(15);
	MR_r11 = MR_sv(16);
	MR_r12 = MR_sv(17);
	MR_r13 = MR_sv(18);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i28);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r2;
	MR_tempr2 = MR_sv(9);
	MR_sv(9) = MR_r6;
	MR_tempr3 = MR_sv(10);
	MR_sv(10) = MR_r7;
	MR_tempr4 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(3);
	MR_tempr5 = MR_r3;
	MR_r3 = MR_sv(8);
	MR_tempr6 = MR_r4;
	MR_r4 = MR_tempr3;
	MR_tempr7 = MR_r5;
	MR_r5 = MR_tempr4;
	MR_r6 = MR_sv(12);
	MR_r7 = MR_tempr2;
	MR_tempr8 = MR_r8;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_tempr5;
	MR_r10 = MR_tempr7;
	MR_r11 = MR_tempr6;
	MR_r12 = MR_tempr8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_finish_if_then_else_18_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i29);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (((MR_Integer) MR_sv(1) + (MR_Integer) MR_sv(11)) + (MR_Integer) MR_sv(4));
	MR_sv(4) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_sv(6) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r5;
	MR_tempr2 = MR_sv(8);
	MR_sv(8) = MR_r4;
	MR_sv(13) = MR_r6;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i30);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 5);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_r2, 1) = MR_r1;
	MR_tfield(3, MR_r2, 2) = MR_sv(2);
	MR_tfield(3, MR_r2, 3) = MR_sv(4);
	MR_tfield(3, MR_r2, 4) = MR_sv(5);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i32);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_sv(9);
	MR_r8 = MR_sv(10);
	MR_r9 = MR_sv(13);
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("\100", 1)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i34);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tempr2 = MR_r5;
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_sv(3) = MR_tempr2;
	MR_tempr3 = MR_r6;
	MR_sv(4) = MR_tempr3;
	MR_tempr4 = MR_r7;
	MR_sv(5) = MR_tempr4;
	MR_tempr5 = MR_r8;
	MR_sv(6) = MR_tempr5;
	MR_sv(1) = MR_tempr1;
	MR_sv(20) = MR_tfield(1, MR_r15, 0);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tfield(1, MR_r3, 0);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_r5 = MR_tempr4;
	MR_r6 = MR_tempr5;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r8 = MR_r9;
	MR_r9 = MR_r10;
	MR_r10 = MR_r11;
	MR_r11 = MR_r12;
	MR_r12 = MR_r13;
	MR_r13 = MR_r14;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i36);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(20);
	MR_tempr2 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_tempr3 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_tempr4 = MR_r5;
	MR_r5 = MR_sv(5);
	MR_tempr5 = MR_r6;
	MR_r6 = MR_sv(6);
	MR_tempr6 = MR_r7;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr7 = MR_r8;
	MR_r8 = MR_tempr2;
	MR_r9 = MR_tempr3;
	MR_r10 = MR_tempr4;
	MR_r11 = MR_tempr5;
	MR_r12 = MR_tempr6;
	MR_r13 = MR_tempr7;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i37);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = ((MR_Integer) MR_sv(1) + (MR_Integer) MR_r2);
	MR_sv(3) = MR_r1;
	MR_sv(6) = MR_r3;
	MR_sv(8) = MR_r5;
	MR_sv(9) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_sv(13) = MR_r8;
	MR_sv(4) = MR_r4;
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_1_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i38);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,38)
	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_sv(4);
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i39);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_goal_to_conj_list_4_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i40);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	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,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i41);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_goal__conj_list_to_goal_3_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i42);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_sv(9);
	MR_r8 = MR_sv(10);
	MR_r9 = MR_sv(13);
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("^", 1)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i43);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r4;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_sv(12) = MR_r9;
	MR_sv(11) = MR_r10;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r11;
	MR_sv(13) = MR_tempr1;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_sv(8) = MR_r14;
	MR_sv(10) = MR_tfield(1, MR_r3, 0);
	MR_r1 = MR_tfield(1, MR_r15, 0);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__field_access__maybe_parse_field_list_3_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i44);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(7) = MR_r2;
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(12);
	MR_r5 = MR_sv(8);
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i46);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(5);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(7);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(1);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_tempr3;
	MR_r9 = MR_sv(11);
	MR_r10 = MR_tempr2;
	MR_r11 = MR_sv(14);
	MR_r12 = MR_sv(15);
	MR_r13 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__field_access__expand_get_field_function_call_23_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i47);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tfield(2, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(2, MR_tempr1, 2) = MR_sv(5);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(10);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r4;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_tempr3 = MR_r5;
	MR_r5 = MR_tempr2;
	MR_tempr4 = MR_r6;
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr3;
	MR_tempr6 = MR_r8;
	MR_r8 = MR_tempr4;
	MR_tempr7 = MR_r9;
	MR_r9 = MR_tempr5;
	MR_tempr8 = MR_r10;
	MR_r10 = MR_tempr6;
	MR_r11 = MR_tempr7;
	MR_r12 = MR_tempr8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_20_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i51);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r3;
	MR_r3 = ((MR_Integer) MR_sv(1) + (MR_Integer) MR_tempr1);
	MR_tempr1 = MR_r4;
	MR_r4 = MR_tempr2;
	MR_tempr3 = MR_r5;
	MR_r5 = MR_tempr1;
	MR_tempr4 = MR_r6;
	MR_r6 = MR_tempr3;
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr4;
	MR_tempr6 = MR_r8;
	MR_r8 = MR_tempr5;
	MR_r9 = MR_tempr6;
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
	}
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const(":=", 2)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i52);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_tfield(1, MR_r3, 0);
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr3 = MR_tfield(0, MR_tempr2, 0);
	if ((strcmp((char *) (MR_Word *) MR_tempr3, MR_string_const("^", 1)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 1);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr1 = MR_tfield(1, MR_tempr2, 1);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr3 = MR_tfield(1, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_tempr3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(12) = MR_r9;
	MR_sv(11) = MR_r10;
	MR_tempr4 = MR_r11;
	MR_sv(13) = MR_tempr4;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_sv(8) = MR_r14;
	MR_sv(6) = MR_tfield(1, MR_tempr2, 0);
	MR_sv(20) = MR_tfield(1, MR_r15, 0);
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__field_access__maybe_parse_field_list_3_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i59);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(7) = MR_r2;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(12);
	MR_r5 = MR_sv(8);
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i61);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,61)
	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) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(20);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr3;
	MR_r5 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__make_fresh_arg_var_9_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i63);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(5);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(2);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_tempr3;
	MR_r9 = MR_sv(11);
	MR_r10 = MR_tempr2;
	MR_r11 = MR_sv(14);
	MR_r12 = MR_sv(15);
	MR_r13 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__field_access__expand_set_field_function_call_23_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i64);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8, MR_tempr9;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tempr9 = MR_sv(4);
	MR_tfield(2, MR_tempr1, 1) = MR_tempr9;
	MR_tfield(2, MR_tempr1, 2) = MR_sv(5);
	MR_tag_alloc_heap(MR_tempr2, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr2, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(2, MR_tempr2, 1) = MR_tempr9;
	MR_tfield(2, MR_tempr2, 2) = MR_tfield(0, MR_r2, 1);
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr3, 0) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr3, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(2);
	MR_tfield(1, MR_r1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(20);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(6);
	MR_tfield(1, MR_r2, 1) = MR_tempr2;
	MR_sv(1) = MR_r4;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	MR_tempr3 = MR_r5;
	MR_r5 = MR_tempr2;
	MR_tempr4 = MR_r6;
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr3;
	MR_tempr6 = MR_r8;
	MR_r8 = MR_tempr4;
	MR_tempr7 = MR_r9;
	MR_r9 = MR_tempr5;
	MR_tempr8 = MR_r10;
	MR_r10 = MR_tempr6;
	MR_r11 = MR_tempr7;
	MR_r12 = MR_tempr8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i75);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r3;
	MR_r3 = ((MR_Integer) MR_sv(1) + (MR_Integer) MR_tempr1);
	MR_tempr1 = MR_r4;
	MR_r4 = MR_tempr2;
	MR_tempr3 = MR_r5;
	MR_r5 = MR_tempr1;
	MR_tempr4 = MR_r6;
	MR_r6 = MR_tempr3;
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr4;
	MR_tempr6 = MR_r8;
	MR_r8 = MR_tempr5;
	MR_r9 = MR_tempr6;
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
	}
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("-->", 3)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i76);
	}
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_sv(12) = MR_r9;
	MR_sv(11) = MR_r10;
	MR_sv(13) = MR_r11;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_sv(8) = MR_r14;
	MR_sv(17) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_sv(20) = MR_tfield(1, MR_r15, 0);
	MR_r1 = MR_sv(17);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tfield(1, MR_r3, 0);
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i77);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_io_util__parse_purity_annotation_3_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i78);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__prog_io_goal__parse_dcg_pred_expression_6_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i79);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(7) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r4;
	MR_sv(9) = MR_r6;
	MR_r1 = MR_r5;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(15);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__qualify_lambda_mode_list_if_not_opt_imported_7_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i81);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_sv(15) = MR_r2;
	MR_sv(16) = MR_r3;
	MR_r1 = MR_sv(17);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_sv(20);
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i82);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,0,1);
	MR_r3 = MR_sv(13);
	MR_np_call_localret_ent(parse_tree__prog_io_dcg__parse_dcg_pred_goal_7_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i85);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i87);
	}
	MR_sv(17) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_sv(16);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i88);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i89);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_sv(12);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(17);
	MR_r7 = MR_sv(14);
	MR_r8 = MR_sv(15);
	MR_r9 = MR_sv(13);
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tempr5 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr5;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_r3;
	MR_tfield(1, MR_tempr2, 1) = MR_tempr5;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr3, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_tempr3 = MR_sv(8);
	MR_sv(8) = MR_tfield(1, MR_r1, 0);
	MR_sv(17) = MR_r4;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r2 = MR_tempr3;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i95);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,95)
	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_r3 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_r5 = (MR_Integer) 0;
	MR_r7 = MR_tempr1;
	MR_r8 = MR_sv(10);
	MR_r9 = MR_sv(9);
	MR_r10 = MR_sv(8);
	MR_r11 = MR_sv(3);
	MR_r12 = MR_sv(4);
	MR_r13 = MR_sv(5);
	MR_r14 = MR_sv(12);
	MR_r15 = MR_sv(11);
	MR_r16 = MR_sv(17);
	MR_r17 = MR_sv(14);
	MR_r18 = MR_sv(15);
	MR_r19 = MR_sv(16);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i96);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(7) = MR_r3;
	MR_sv(8) = MR_r4;
	MR_sv(9) = MR_r5;
	MR_sv(10) = MR_r6;
	MR_sv(13) = MR_r7;
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_purity_3_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i97);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(12);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_sv(9);
	MR_r8 = MR_sv(10);
	MR_r9 = MR_sv(13);
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((strcmp((char *) (MR_Word *) MR_r2, MR_string_const("else", 4)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i99);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(1, MR_r3, 0);
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr3 = MR_tfield(0, MR_tempr2, 0);
	if ((strcmp((char *) (MR_Word *) MR_tempr3, MR_string_const("if", 2)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 1);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr1 = MR_tfield(1, MR_tempr2, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr1 = MR_tfield(1, MR_tempr2, 0);
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr3 = MR_tfield(0, MR_tempr2, 0);
	if ((strcmp((char *) (MR_Word *) MR_tempr3, MR_string_const("then", 4)) != 0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr2 = MR_tfield(0, MR_tempr1, 1);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr1 = MR_tfield(1, MR_tempr2, 1);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_tempr3 = MR_tfield(1, MR_tempr1, 1);
	if (MR_LTAGS_TESTR(MR_tempr3,0,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_sv(12) = MR_r9;
	MR_sv(11) = MR_r10;
	MR_sv(13) = MR_r11;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_sv(8) = MR_r14;
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(17) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(20) = MR_tfield(1, MR_r15, 0);
	MR_r1 = MR_sv(9);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i111);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,0,1);
	MR_r3 = MR_sv(13);
	MR_np_call_localret_ent(parse_tree__prog_io_goal__parse_some_vars_goal_5_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i114);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,114)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i116);
	}
	MR_sv(16) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_sv(8);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i117);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i118);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,118)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = MR_sv(12);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(16);
	MR_r7 = MR_sv(14);
	MR_r8 = MR_sv(15);
	MR_r9 = MR_sv(13);
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(1, MR_r1, 0);
	MR_sv(7) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_tfield(1, MR_r1, 2);
	MR_sv(16) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(12);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_prepare_for_local_state_vars_7_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i119);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_sv(19) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(19);
	MR_r2 = MR_r1;
	MR_np_call_localret_ent(map__init_1_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i121);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,121)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(9);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(16);
	MR_r7 = MR_sv(14);
	MR_r8 = MR_sv(15);
	MR_r9 = MR_sv(10);
	}
	MR_np_call_localret_ent(hlds__make_hlds__goal_expr_to_goal__transform_goal_expr_context_to_goal_17_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i122);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,122)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tempr7 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr7;
	MR_sv(11) = MR_r1;
	MR_sv(1) = MR_r2;
	MR_sv(8) = MR_r3;
	MR_sv(10) = MR_tempr1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(17);
	MR_r3 = MR_tempr7;
	MR_tempr2 = MR_r4;
	MR_r4 = MR_sv(4);
	MR_tempr3 = MR_r5;
	MR_r5 = MR_sv(5);
	MR_tempr4 = MR_r6;
	MR_r6 = MR_sv(6);
	MR_tempr5 = MR_r7;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr6 = MR_r8;
	MR_r8 = MR_sv(8);
	MR_r9 = MR_tempr2;
	MR_r10 = MR_tempr3;
	MR_r11 = MR_tempr4;
	MR_r12 = MR_tempr5;
	MR_r13 = MR_tempr6;
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i124);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,124)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(13) = MR_r2;
	MR_sv(14) = MR_r4;
	MR_sv(15) = MR_r5;
	MR_sv(16) = MR_r6;
	MR_sv(17) = MR_r7;
	MR_sv(18) = MR_r8;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(12);
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_finish_local_state_vars_4_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i125);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,125)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(20);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(15);
	MR_r11 = MR_sv(16);
	MR_r12 = MR_sv(17);
	MR_r13 = MR_sv(18);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i126);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,126)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r2;
	MR_tempr3 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(3);
	MR_tempr4 = MR_r3;
	MR_r3 = MR_sv(7);
	MR_tempr5 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_tempr6 = MR_r5;
	MR_r5 = MR_tempr3;
	MR_r6 = MR_sv(12);
	MR_r7 = MR_sv(8);
	MR_tempr7 = MR_r8;
	MR_r8 = MR_tempr2;
	MR_r9 = MR_tempr4;
	MR_r10 = MR_tempr6;
	MR_r11 = MR_tempr5;
	MR_r12 = MR_tempr7;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_finish_if_then_else_18_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i127);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (((MR_Integer) MR_sv(1) + (MR_Integer) MR_sv(13)) + (MR_Integer) MR_sv(4));
	MR_sv(6) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r5;
	MR_sv(8) = MR_r4;
	MR_sv(13) = MR_r6;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i128);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,128)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 5);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_r2, 1) = MR_r1;
	MR_tfield(3, MR_r2, 2) = MR_sv(11);
	MR_tfield(3, MR_r2, 3) = MR_sv(2);
	MR_tfield(3, MR_r2, 4) = MR_sv(4);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i130);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,130)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_sv(9);
	MR_r8 = MR_sv(10);
	MR_r9 = MR_sv(13);
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(((strcmp((char *) (MR_Word *) MR_r2, MR_string_const(":", 1)) == 0) || (strcmp((char *) (MR_Word *) MR_r2, MR_string_const("with_type", 9)) == 0)))) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i1);
	}
	MR_sv(1) = MR_r1;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_sv(12) = MR_r9;
	MR_sv(11) = MR_r10;
	MR_sv(13) = MR_r11;
	MR_sv(14) = MR_r12;
	MR_sv(15) = MR_r13;
	MR_sv(8) = MR_r14;
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(2) = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_sv(10) = MR_tfield(1, MR_r3, 0);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tfield(1, MR_r15, 0);
	MR_np_call_localret_ent(term__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i133);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,133)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(1,0,3);
	MR_r1 = MR_sv(9);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(term, generic);
	MR_r3 = MR_sv(13);
	MR_np_call_localret_ent(varset__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i136);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,136)
	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(7);
	}
	MR_np_call_localret_ent(parse_tree__prog_io_util__parse_type_4_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i137);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,137)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i139);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, error_spec);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_sv(8);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i140);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,140)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tempr2 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(11);
	MR_r10 = MR_sv(13);
	MR_r11 = MR_sv(14);
	MR_r12 = MR_sv(15);
	MR_r13 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(10);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i145);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,139)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_sv(9);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_r3 = MR_sv(13);
	MR_np_call_localret_ent(varset__coerce_2_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i142);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,142)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(14);
	MR_r6 = MR_sv(15);
	MR_r7 = MR_sv(8);
	}
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__process_type_qualification_10_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i143);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,143)
	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) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tempr4 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr4;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr4;
	MR_tempr3 = MR_tempr1;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(11);
	MR_r10 = MR_sv(13);
	MR_r11 = MR_r1;
	MR_r12 = MR_r2;
	MR_r13 = MR_tempr2;
	MR_r1 = MR_tempr3;
	MR_r7 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(10);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0,
		hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0_i145);
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,145)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_tempr3 = MR_r4;
	MR_r4 = MR_tempr2;
	MR_tempr4 = MR_r5;
	MR_r5 = MR_tempr3;
	MR_tempr5 = MR_r6;
	MR_r6 = MR_tempr4;
	MR_tempr6 = MR_r7;
	MR_r7 = MR_tempr5;
	MR_tempr7 = MR_r8;
	MR_r8 = MR_tempr6;
	MR_r9 = MR_tempr7;
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_TRUE;
	MR_proceed();
	}
MR_def_label(hlds__make_hlds__superhomogeneous__maybe_unravel_special_var_functor_unification_22_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(21);
	MR_decr_sp(21);
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__make_hlds__state_var__illegal_state_var_func_result_3_0);
MR_decl_entry(hlds__make_hlds__state_var__report_illegal_func_svar_result_5_0);
MR_decl_entry(hlds__make_hlds__state_var__lambda_args_contain_bang_state_var_2_0);
MR_decl_entry(hlds__make_hlds__state_var__report_illegal_bang_svar_lambda_arg_5_0);
MR_decl_entry(hlds__make_hlds__state_var__svar_prepare_for_lambda_head_10_0);
MR_decl_entry(varset__new_vars_4_0);
MR_decl_entry(hlds__make_hlds__state_var__svar_finish_lambda_body_8_0);
MR_decl_entry(parse_tree__prog_util__pred_args_to_func_args_3_0);
MR_decl_entry(term__vars_list_2_0);
MR_decl_entry(f_108_105_115_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_115_111_114_116_95_97_110_100_95_114_101_109_111_118_101_95_100_117_112_115_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(hlds__goal_util__goal_vars_2_0);
MR_decl_entry(set__delete_list_3_0);
MR_decl_entry(fn__set__to_sorted_list_1_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module18)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0);
	MR_init_label10(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,4,6,7,2,10,12,13,8,14,16)
	MR_init_label10(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,17,20,18,24,25,27,28,29,30,31)
	MR_init_label10(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,35,38,37,36,39,40,41,45,46,47)
	MR_init_label2(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,48,50)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'build_lambda_expression'/26 mode 0 */
#ifdef MR_maybe_local_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(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(31);
	MR_sv(31) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r5;
	MR_sv(5) = MR_tempr1;
	MR_tempr2 = MR_r7;
	MR_sv(6) = MR_tempr2;
	MR_sv(7) = MR_r8;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_sv(10) = MR_r11;
	MR_sv(11) = MR_r12;
	MR_sv(12) = MR_r13;
	MR_sv(13) = MR_r14;
	MR_sv(22) = MR_r15;
	MR_sv(14) = MR_r16;
	MR_sv(23) = MR_r17;
	MR_sv(24) = MR_r18;
	MR_sv(15) = MR_r19;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__illegal_state_var_func_result_3_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i4);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i2);
	}
	MR_r1 = MR_sv(10);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(14);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(15);
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__report_illegal_func_svar_result_5_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i6);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i7);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(22);
	MR_r4 = MR_sv(14);
	MR_r5 = MR_sv(23);
	MR_r6 = MR_sv(24);
	MR_r7 = MR_sv(18);
	MR_decr_sp_and_return(31);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8, MR_tempr9, MR_tempr10, MR_tempr11, MR_tempr12, MR_tempr13, MR_tempr14, MR_tempr15, MR_tempr16;
	MR_tempr1 = MR_sv(3);
	MR_tempr2 = MR_sv(4);
	MR_tempr3 = MR_sv(5);
	MR_tempr4 = MR_sv(6);
	MR_tempr5 = MR_sv(7);
	MR_tempr6 = MR_sv(8);
	MR_tempr7 = MR_sv(9);
	MR_tempr8 = MR_sv(10);
	MR_tempr9 = MR_sv(11);
	MR_tempr10 = MR_sv(12);
	MR_tempr11 = MR_sv(13);
	MR_tempr12 = MR_sv(22);
	MR_tempr13 = MR_sv(14);
	MR_tempr14 = MR_sv(23);
	MR_tempr15 = MR_sv(24);
	MR_tempr16 = MR_sv(15);
	MR_r1 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__lambda_args_contain_bang_state_var_2_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i10);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i8);
	}
	MR_r1 = MR_sv(10);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(14);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(15);
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__report_illegal_bang_svar_lambda_arg_5_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i12);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i13);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(22);
	MR_r4 = MR_sv(14);
	MR_r5 = MR_sv(23);
	MR_r6 = MR_sv(24);
	MR_r7 = MR_sv(18);
	MR_decr_sp_and_return(31);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8, MR_tempr9, MR_tempr10, MR_tempr11, MR_tempr12, MR_tempr13;
	MR_tempr1 = MR_sv(6);
	MR_tempr2 = MR_sv(7);
	MR_tempr3 = MR_sv(8);
	MR_tempr4 = MR_sv(9);
	MR_tempr5 = MR_sv(10);
	MR_tempr6 = MR_sv(11);
	MR_tempr7 = MR_sv(12);
	MR_tempr8 = MR_sv(13);
	MR_tempr9 = MR_sv(22);
	MR_tempr10 = MR_sv(14);
	MR_tempr11 = MR_sv(23);
	MR_tempr12 = MR_sv(24);
	MR_tempr13 = MR_sv(15);
	MR_r1 = MR_tempr5;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr8;
	MR_r4 = MR_tempr10;
	MR_r5 = MR_tempr13;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_prepare_for_lambda_head_10_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i14);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(14) = MR_r3;
	MR_sv(15) = MR_r4;
	MR_sv(25) = MR_r5;
	MR_sv(28) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(29) = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r1 = MR_sv(29);
	MR_r2 = MR_sv(13);
	MR_np_call_localret_ent(list__length_2_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i16);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(15);
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(28);
	MR_r2 = MR_sv(15);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(varset__new_vars_4_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i17);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_sv(26) = MR_r2;
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(13);
	MR_r3 = MR_sv(16);
	MR_r4 = MR_sv(7);
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__partition_args_and_lambda_vars_8_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i20);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i18);
	}
	MR_sv(17) = MR_r2;
	MR_sv(18) = MR_r3;
	MR_sv(19) = MR_r4;
	MR_sv(20) = MR_r5;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i24);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(26);
	MR_r1 = (MR_Word) MR_string_const("hlds.make_hlds.superhomogeneous", 31);
	MR_r2 = (MR_Word) MR_string_const("predicate \140hlds.make_hlds.superhomogeneous.build_lambda_expression\'/26", 70);
	MR_r3 = (MR_Word) MR_string_const("mismatched lists", 16);
	MR_np_call_localret_ent(require__unexpected_3_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i24);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(30) = MR_r1;
	MR_r2 = MR_r1;
	MR_np_call_localret_ent(map__init_1_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i25);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(21) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(15);
	MR_sv(15) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i27);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_sv(17);
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(21);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(14);
	MR_r7 = MR_sv(22);
	MR_r8 = MR_sv(26);
	MR_r9 = MR_sv(23);
	MR_r10 = MR_sv(24);
	MR_r11 = MR_sv(25);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i28);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_tempr2 = MR_sv(15);
	MR_sv(15) = MR_r2;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr3;
	MR_tempr5 = MR_r5;
	MR_r5 = MR_tempr4;
	MR_tempr6 = MR_r6;
	MR_r6 = MR_tempr5;
	MR_tempr7 = MR_r7;
	MR_r7 = MR_tempr6;
	MR_tempr8 = MR_r8;
	MR_r8 = MR_tempr7;
	MR_r9 = MR_tempr8;
	}
	MR_np_call_localret_ent(hlds__make_hlds__goal_expr_to_goal__transform_goal_expr_context_to_goal_17_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i29);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_sv(19) = MR_r2;
	MR_sv(22) = MR_r3;
	MR_sv(23) = MR_r4;
	MR_sv(24) = MR_r5;
	MR_sv(25) = MR_r6;
	MR_sv(26) = MR_r7;
	MR_sv(27) = MR_r8;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i30);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(18);
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(21);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(22);
	MR_r7 = MR_sv(23);
	MR_r8 = MR_sv(24);
	MR_r9 = MR_sv(25);
	MR_r10 = MR_sv(26);
	MR_r11 = MR_sv(27);
	}
	MR_np_call_localret_ent(hlds__make_hlds__superhomogeneous__insert_arg_unifications_19_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i31);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(17);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = (((MR_Integer) MR_sv(15) + (MR_Integer) MR_sv(19)) + (MR_Integer) MR_r2);
	MR_sv(15) = MR_r5;
	MR_sv(17) = MR_r6;
	MR_sv(18) = MR_r8;
	MR_sv(19) = MR_r7;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr2;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_sv(14);
	MR_r5 = MR_tempr3;
	MR_r6 = MR_tempr4;
	}
	MR_np_call_localret_ent(hlds__make_hlds__state_var__svar_finish_lambda_body_8_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i35);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(5),1)) {
		MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i37);
	}
	MR_sv(9) = MR_r1;
	MR_sv(14) = MR_r2;
	MR_r1 = MR_sv(29);
	MR_r2 = MR_sv(13);
	MR_np_call_localret_ent(parse_tree__prog_util__pred_args_to_func_args_3_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i38);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = MR_sv(28);
	MR_GOTO_LAB(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i36);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(14) = MR_r2;
	MR_r2 = MR_sv(13);
	MR_r1 = MR_sv(28);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(28) = MR_r1;
	MR_np_call_localret_ent(term__vars_list_2_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i39);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(28);
	MR_r2 = MR_sv(30);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_108_105_115_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_115_111_114_116_95_97_110_100_95_114_101_109_111_118_101_95_100_117_112_115_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i40);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_2_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i41);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r2, 0) = MR_sv(13);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_tfield(3, MR_tempr1, 2) = MR_sv(9);
	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_r1;
	MR_sv(9) = MR_tempr2;
	MR_r1 = MR_tempr2;
	}
	MR_np_call_localret_ent(hlds__goal_util__goal_vars_2_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i45);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(30);
	MR_r2 = MR_sv(16);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__delete_list_3_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i46);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(30);
	MR_r2 = MR_sv(13);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__delete_list_3_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i47);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(30);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__set__to_sorted_list_1_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i48);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 9);
	MR_tfield(2, MR_r2, 0) = MR_sv(3);
	MR_tfield(2, MR_r2, 1) = MR_sv(4);
	MR_tfield(2, MR_r2, 2) = MR_sv(5);
	MR_tfield(2, MR_r2, 4) = MR_r1;
	MR_tfield(2, MR_r2, 5) = MR_sv(16);
	MR_tfield(2, MR_r2, 6) = MR_sv(7);
	MR_tfield(2, MR_r2, 7) = MR_sv(8);
	MR_tfield(2, MR_r2, 8) = MR_sv(9);
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(11);
	MR_r5 = MR_sv(12);
	MR_r6 = MR_sv(2);
	MR_r7 = MR_sv(19);
	MR_np_call_localret_ent(hlds__make_hlds__qual_info__make_atomic_unification_9_0,
		hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0_i50);
MR_def_label(hlds__make_hlds__superhomogeneous__build_lambda_expression_26_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(14);
	MR_r4 = MR_sv(15);
	MR_r5 = MR_sv(17);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(18);
	MR_decr_sp_and_return(31);
	}
#ifdef MR_maybe_local_thread_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(hlds__make_hlds__superhomogeneous_module19)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0);
	MR_init_label1(hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'insert_arg_unifications_with_supplied_contexts'/19 mode 0 */
#ifdef MR_maybe_local_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__hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(11) = MR_r11;
	MR_np_call_localret_ent(fn__libs__globals__get_maybe_from_ground_term_threshold_0_0,
		hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__insert_arg_unifications_with_supplied_contexts_19_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(10);
	MR_r12 = MR_sv(11);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(hlds__make_hlds__superhomogeneous__do_insert_arg_unifications_with_supplied_contexts_20_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(hlds__make_hlds__superhomogeneous_module20)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0);
	MR_init_label1(hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'append_arg_unifications'/19 mode 0 */
#ifdef MR_maybe_local_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__hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(11) = MR_r11;
	MR_np_call_localret_ent(fn__libs__globals__get_maybe_from_ground_term_threshold_0_0,
		hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__append_arg_unifications_19_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(10);
	MR_r12 = MR_sv(11);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(hlds__make_hlds__superhomogeneous__do_append_arg_unifications_20_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(hlds__make_hlds__superhomogeneous_module21)
	MR_init_entry1(hlds__make_hlds__superhomogeneous__unravel_unification_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__make_hlds__superhomogeneous__unravel_unification_20_0);
	MR_init_label1(hlds__make_hlds__superhomogeneous__unravel_unification_20_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'unravel_unification'/20 mode 0 */
#ifdef MR_maybe_local_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__hlds__make_hlds__superhomogeneous__unravel_unification_20_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_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(11) = MR_r11;
	MR_sv(12) = MR_r12;
	MR_np_call_localret_ent(fn__libs__globals__get_maybe_from_ground_term_threshold_0_0,
		hlds__make_hlds__superhomogeneous__unravel_unification_20_0_i2);
MR_def_label(hlds__make_hlds__superhomogeneous__unravel_unification_20_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(10);
	MR_r12 = MR_sv(11);
	MR_r13 = MR_sv(12);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(hlds__make_hlds__superhomogeneous__do_unravel_unification_21_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___hlds__hlds_pred__call_id_0_0);
MR_decl_entry(__Unify___parse_tree__prog_data__cons_id_0_0);
MR_decl_entry(__Unify___hlds__hlds_goal__unify_main_context_0_0);
MR_decl_entry(__Unify___list__list_1_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module22)
	MR_init_entry1(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_init_label6(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,5,11,13,27,9,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i27);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,1)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i1);
	}
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_r2 = MR_tfield(1, MR_tempr2, 0);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__call_id_0_0);
	}
MR_def_label(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i9);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(2, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(2, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(2, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(2, MR_tempr2, 2);
	MR_r1 = MR_tfield(2, MR_tempr1, 0);
	MR_r2 = MR_tfield(2, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__cons_id_0_0,
		__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i11);
MR_def_label(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__unify_main_context_0_0,
		__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i13);
MR_def_label(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, unify_sub_context);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr3, 0);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(0, MR_tempr4, 0);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0_i1);
	}
	MR_tempr1 = MR_tfield(0, MR_tempr3, 1);
	MR_tempr2 = MR_tfield(0, MR_tempr4, 1);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(5);
	}
MR_def_label(__Unify___hlds__make_hlds__superhomogeneous__arg_context_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___hlds__hlds_pred__call_id_0_0);
MR_decl_entry(__Compare___parse_tree__prog_data__cons_id_0_0);
MR_decl_entry(__Compare___hlds__hlds_goal__unify_main_context_0_0);
MR_decl_entry(__Compare___list__list_1_0);
MR_decl_entry(private_builtin__builtin_compare_int_3_0);

MR_BEGIN_MODULE(hlds__make_hlds__superhomogeneous_module23)
	MR_init_entry1(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_init_label10(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,3,2,7,5,52,12,15,19,10,26)
	MR_init_label3(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,27,29,102)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_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___hlds__make_hlds__superhomogeneous__arg_context_0_0_i2);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i7);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__call_id_0_0);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i52);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i10);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i12);
	}
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i52);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(4) = MR_tfield(2, MR_tempr5, 1);
	MR_sv(3) = MR_tfield(2, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr1 = MR_tfield(2, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(2, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(2, MR_tempr3, 0);
	MR_r2 = MR_tfield(2, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__cons_id_0_0,
		__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i15);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i102);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__unify_main_context_0_0,
		__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i19);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i102);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, unify_sub_context);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i26);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i27);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(5);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(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___hlds__make_hlds__superhomogeneous__arg_context_0_0_i29);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0_i102);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__make_hlds__superhomogeneous__arg_context_0_0,102)
	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(hlds__make_hlds__superhomogeneous_module24)
	MR_init_entry1(__Unify___hlds__make_hlds__superhomogeneous__num_added_goals_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__make_hlds__superhomogeneous__num_added_goals_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__make_hlds__superhomogeneous__num_added_goals_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(hlds__make_hlds__superhomogeneous_module25)
	MR_init_entry1(__Compare___hlds__make_hlds__superhomogeneous__num_added_goals_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__make_hlds__superhomogeneous__num_added_goals_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__make_hlds__superhomogeneous__num_added_goals_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(hlds__make_hlds__superhomogeneous_module26)
	MR_init_entry1(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0);
	MR_init_label4(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,22,5,2,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__ground_terms__[1]_0'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
MR_def_label(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0_i2);
	}
	MR_r2 = MR_tfield(1, MR_r1, 0);
	if (MR_PTAG_TESTR(MR_r2,0)) {
		MR_GOTO_LAB(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0_i1);
	}
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_r2, 1);
	MR_np_localcall_lab(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,
		f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0_i5);
MR_def_label(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_succip_word = MR_sv(2);
	MR_GOTO_LAB(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0_i22);
MR_def_label(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(2);
MR_def_label(f_104_108_100_115_95_95_109_97_107_101_95_104_108_100_115_95_95_115_117_112_101_114_104_111_109_111_103_101_110_101_111_117_115_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_114_111_117_110_100_95_116_101_114_109_115_95_95_91_49_93_95_48_1_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

static void mercury__hlds__make_hlds__superhomogeneous_maybe_bunch_0(void)
{
	hlds__make_hlds__superhomogeneous_module0();
	hlds__make_hlds__superhomogeneous_module1();
	hlds__make_hlds__superhomogeneous_module2();
	hlds__make_hlds__superhomogeneous_module3();
	hlds__make_hlds__superhomogeneous_module4();
	hlds__make_hlds__superhomogeneous_module5();
	hlds__make_hlds__superhomogeneous_module6();
	hlds__make_hlds__superhomogeneous_module7();
	hlds__make_hlds__superhomogeneous_module8();
	hlds__make_hlds__superhomogeneous_module9();
	hlds__make_hlds__superhomogeneous_module10();
	hlds__make_hlds__superhomogeneous_module11();
	hlds__make_hlds__superhomogeneous_module12();
	hlds__make_hlds__superhomogeneous_module13();
	hlds__make_hlds__superhomogeneous_module14();
	hlds__make_hlds__superhomogeneous_module15();
	hlds__make_hlds__superhomogeneous_module16();
	hlds__make_hlds__superhomogeneous_module17();
	hlds__make_hlds__superhomogeneous_module18();
	hlds__make_hlds__superhomogeneous_module19();
	hlds__make_hlds__superhomogeneous_module20();
	hlds__make_hlds__superhomogeneous_module21();
	hlds__make_hlds__superhomogeneous_module22();
	hlds__make_hlds__superhomogeneous_module23();
	hlds__make_hlds__superhomogeneous_module24();
	hlds__make_hlds__superhomogeneous_module25();
	hlds__make_hlds__superhomogeneous_module26();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__hlds__make_hlds__superhomogeneous__init(void);
void mercury__hlds__make_hlds__superhomogeneous__init_type_tables(void);
void mercury__hlds__make_hlds__superhomogeneous__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__hlds__make_hlds__superhomogeneous__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__hlds__make_hlds__superhomogeneous__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__hlds__make_hlds__superhomogeneous__init_threadscope_string_table(void);
#endif

void mercury__hlds__make_hlds__superhomogeneous__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__hlds__make_hlds__superhomogeneous_maybe_bunch_0();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_arg_context_0,
		hlds__make_hlds__superhomogeneous__arg_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_num_added_goals_0,
		hlds__make_hlds__superhomogeneous__num_added_goals_0_0);
	mercury__hlds__make_hlds__superhomogeneous__init_debugger();
}

void mercury__hlds__make_hlds__superhomogeneous__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_arg_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__make_hlds__superhomogeneous__type_ctor_info_num_added_goals_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__hlds__make_hlds__superhomogeneous__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__hlds__make_hlds__superhomogeneous);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__hlds__make_hlds__superhomogeneous__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__hlds__make_hlds__superhomogeneous__init_threadscope_string_table(void)
{
}

#endif

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