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

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

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

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

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

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

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

#line 48 "hlds.hlds_goal.c"
#line 49 "hlds.hlds_goal.c"
#include "hlds.hlds_goal.mh"

#line 52 "hlds.hlds_goal.c"
#line 53 "hlds.hlds_goal.c"
#ifndef HLDS__HLDS_GOAL_DECL_GUARD
#define HLDS__HLDS_GOAL_DECL_GUARD

#line 57 "hlds.hlds_goal.c"
#line 58 "hlds.hlds_goal.c"

#endif
#line 61 "hlds.hlds_goal.c"

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

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

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

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

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

struct mercury_type_4 {
	MR_Integer f1;
	MR_Integer f2;
	MR_Word * f3;
};
MR_STATIC_LINKAGE const struct mercury_type_4 mercury_common_4[];

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

struct mercury_type_6 {
	MR_Integer f1;
	MR_Word * f2;
	MR_Integer f3;
	MR_Word * f4;
};
MR_STATIC_LINKAGE const struct mercury_type_6 mercury_common_6[];

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__hlds_goal__type_ctor_info_atomic_goal_type_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_builtin_state_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_call_unify_context_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_can_cgc_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_case_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_cast_kind_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_catch_part_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_cell_is_unique_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_cell_to_reuse_0;

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__hlds_goal__type_ctor_info_conj_type_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_construct_sub_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_contains_trace_goal_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_dp_goal_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_force_pruning_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_from_ground_term_kind_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_generic_call_0;

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_goal_is_mdprof_inst_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_goal_trivial_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_has_subgoals_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_code_gen_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_extra_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goals_0;

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__hlds_goal__type_ctor_info_ho_values_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_how_to_construct_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_is_existential_construction_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_is_first_disjunct_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_missed_message_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_needs_update_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_port_counts_give_coverage_after_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_promise_solutions_kind_0;

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_removable_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_reuse_description_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_scope_reason_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_shorthand_goal_expr_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_tagged_case_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_term_size_value_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_try_io_state_vars_0;

extern const MR_TypeCtorInfo_Struct
	mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unification_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unify_mode_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0,
	mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_contexts_0;
MR_decl_label1(hlds__hlds_goal__add_impurity_if_needed_3_0, 3)
MR_decl_label7(hlds__hlds_goal__all_negated_2_0, 64,7,9,11,5,13,1)
MR_decl_label1(hlds__hlds_goal__conj_list_to_goal_3_0, 2)
MR_decl_label2(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0, 5,2)
MR_decl_label1(hlds__hlds_goal__conjoin_goals_3_0, 2)
MR_decl_label10(hlds__hlds_goal__construct_functor_4_0, 3,5,6,8,9,12,13,15,16,19)
MR_decl_label3(hlds__hlds_goal__construct_functor_4_0, 24,25,26)
MR_decl_label1(hlds__hlds_goal__construct_tuple_3_0, 3)
MR_decl_label4(hlds__hlds_goal__create_atomic_complicated_unification_7_0, 4,6,7,9)
MR_decl_label10(hlds__hlds_goal__deconstruct_functor_4_0, 3,5,6,8,9,12,13,15,16,19)
MR_decl_label3(hlds__hlds_goal__deconstruct_functor_4_0, 24,25,26)
MR_decl_label1(hlds__hlds_goal__deconstruct_tuple_3_0, 3)
MR_decl_label1(hlds__hlds_goal__disj_list_to_goal_3_0, 2)
MR_decl_label3(hlds__hlds_goal__follow_subn_until_fixpoint_3_0, 18,4,2)
MR_decl_label3(hlds__hlds_goal__generic_call_id_2_0, 3,6,9)
MR_decl_label1(hlds__hlds_goal__get_pragma_foreign_var_names_2_0, 2)
MR_decl_label4(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0, 7,4,3,2)
MR_decl_label1(hlds__hlds_goal__goal_add_feature_3_0, 2)
MR_decl_label1(hlds__hlds_goal__goal_info_add_feature_3_0, 2)
MR_decl_label1(hlds__hlds_goal__goal_info_get_consuming_vars_2_0, 3)
MR_decl_label2(hlds__hlds_goal__goal_info_get_goal_purity_3_0, 3,2)
MR_decl_label1(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0, 3)
MR_decl_label1(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0, 3)
MR_decl_label1(hlds__hlds_goal__goal_info_get_occurring_vars_2_0, 3)
MR_decl_label1(hlds__hlds_goal__goal_info_get_producing_vars_2_0, 3)
MR_decl_label5(hlds__hlds_goal__goal_info_init_1_0, 2,4,5,6,8)
MR_decl_label4(hlds__hlds_goal__goal_info_init_2_0, 2,4,5,7)
MR_decl_label3(hlds__hlds_goal__goal_info_init_5_0, 2,3,6)
MR_decl_label2(hlds__hlds_goal__goal_info_init_6_0, 2,5)
MR_decl_label2(hlds__hlds_goal__goal_info_remove_feature_3_0, 3,2)
MR_decl_label6(hlds__hlds_goal__goal_info_set_consuming_vars_3_0, 5,6,7,8,3,2)
MR_decl_label4(hlds__hlds_goal__goal_info_set_lbu_3_0, 5,6,3,2)
MR_decl_label4(hlds__hlds_goal__goal_info_set_lfu_3_0, 5,6,3,2)
MR_decl_label6(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0, 5,6,7,8,3,2)
MR_decl_label2(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0, 3,2)
MR_decl_label6(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0, 5,6,7,8,3,2)
MR_decl_label6(hlds__hlds_goal__goal_info_set_occurring_vars_3_0, 5,6,7,8,3,2)
MR_decl_label6(hlds__hlds_goal__goal_info_set_producing_vars_3_0, 5,6,7,8,3,2)
MR_decl_label4(hlds__hlds_goal__goal_info_set_reuse_3_0, 5,6,3,2)
MR_decl_label1(hlds__hlds_goal__goal_list_instmap_delta_2_0, 2)
MR_decl_label1(hlds__hlds_goal__goal_list_nonlocals_2_0, 3)
MR_decl_label1(hlds__hlds_goal__goal_remove_feature_3_0, 2)
MR_decl_label1(hlds__hlds_goal__goal_to_conj_list_2_0, 2)
MR_decl_label1(hlds__hlds_goal__goal_to_disj_list_2_0, 2)
MR_decl_label1(hlds__hlds_goal__goal_to_par_conj_list_2_0, 2)
MR_decl_label7(hlds__hlds_goal__incremental_rename_unify_rhs_4_0, 4,3,7,8,9,6,11)
MR_decl_label3(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0, 18,4,6)
MR_decl_label6(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0, 6,10,2,11,12,13)
MR_decl_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0, 4,5,3,8,7,11,12,13,10,16)
MR_decl_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0, 17,15,20,19,23,22,26,27,28,29)
MR_decl_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0, 25,32,31,37,36,39,41,40,43,44)
MR_decl_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0, 46,45,49,48,51,52,54,34,59,60)
MR_decl_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0, 62,63,66,67,65,69,70,58,74,75)
MR_decl_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0, 73,79,80,81,78,84,85,56,88,89)
MR_decl_label3(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0, 17,4,5)
MR_decl_label4(hlds__hlds_goal__make_char_const_construction_alloc_8_0, 2,3,5,7)
MR_decl_label3(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0, 2,3,5)
MR_decl_label4(hlds__hlds_goal__make_const_construction_3_0, 13,14,15,16)
MR_decl_label3(hlds__hlds_goal__make_const_construction_alloc_9_0, 2,4,5)
MR_decl_label2(hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0, 2,3)
MR_decl_label4(hlds__hlds_goal__make_float_const_construction_alloc_8_0, 2,3,5,7)
MR_decl_label3(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0, 2,3,5)
MR_decl_label3(hlds__hlds_goal__make_foreign_args_4_0, 6,2,9)
MR_decl_label2(hlds__hlds_goal__make_impure_2_0, 5,14)
MR_decl_label4(hlds__hlds_goal__make_int_const_construction_alloc_8_0, 2,3,5,7)
MR_decl_label3(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0, 2,3,5)
MR_decl_label3(hlds__hlds_goal__make_simple_assign_5_0, 11,12,13)
MR_decl_label3(hlds__hlds_goal__make_simple_test_5_0, 10,11,12)
MR_decl_label4(hlds__hlds_goal__make_string_const_construction_alloc_8_0, 2,3,5,7)
MR_decl_label3(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0, 2,3,5)
MR_decl_label2(hlds__hlds_goal__must_rename_vars_in_goal_3_0, 2,3)
MR_decl_label4(hlds__hlds_goal__negate_goal_3_0, 33,8,4,5)
MR_decl_label1(hlds__hlds_goal__par_conj_list_to_goal_3_0, 2)
MR_decl_label3(hlds__hlds_goal__rename_arg_list_4_0, 18,4,6)
MR_decl_label4(hlds__hlds_goal__rename_generic_call_4_0, 4,3,7,6)
MR_decl_label2(hlds__hlds_goal__rename_some_vars_in_goal_3_0, 2,3)
MR_decl_label10(hlds__hlds_goal__rename_unify_4_0, 4,5,3,8,9,11,12,14,13,16)
MR_decl_label10(hlds__hlds_goal__rename_unify_4_0, 10,20,23,28,27,7,35,36,34,39)
MR_decl_label3(hlds__hlds_goal__rename_unify_4_0, 38,41,42)
MR_decl_label8(hlds__hlds_goal__rename_unify_rhs_4_0, 4,3,7,8,9,10,6,13)
MR_decl_label4(hlds__hlds_goal__rename_vars_in_cases_4_0, 20,4,5,8)
MR_decl_label2(hlds__hlds_goal__rename_vars_in_goal_4_0, 2,3)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0, 4,5,3,8,7,11,12,13,10,16)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0, 17,15,20,19,23,22,26,27,28,29)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0, 25,32,31,37,36,39,41,40,43,44)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0, 46,45,49,48,51,52,54,34,59,60)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0, 62,63,66,67,65,69,70,58,74,75)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0, 73,79,80,81,78,84,85,56,88,89)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_info_4_0, 2,3,5,6,4,9,10,11,16,13)
MR_decl_label10(hlds__hlds_goal__rename_vars_in_goal_info_4_0, 26,23,8,36,37,38,39,40,41,35)
MR_decl_label6(hlds__hlds_goal__rename_vars_in_goal_info_4_0, 45,48,49,50,51,52)
MR_decl_label3(hlds__hlds_goal__rename_vars_in_goals_4_0, 17,4,5)
MR_decl_label1(hlds__hlds_goal__set_case_contexts_3_0, 2)
MR_decl_label10(hlds__hlds_goal__set_goal_contexts_3_0, 2,6,4,11,9,15,16,17,14,21)
MR_decl_label10(hlds__hlds_goal__set_goal_contexts_3_0, 20,25,24,31,33,30,38,39,37,43)
MR_decl_label3(hlds__hlds_goal__set_goal_contexts_3_0, 28,49,47)
MR_decl_label4(fn__hlds__hlds_goal__case_list_has_foreign_1_0, 16,3,5,4)
MR_decl_label3(fn__hlds__hlds_goal__fail_goal_0_0, 3,5,6)
MR_decl_label2(fn__hlds__hlds_goal__fail_goal_info_0_0, 2,4)
MR_decl_label1(fn__hlds__hlds_goal__fail_goal_with_context_1_0, 2)
MR_decl_label3(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0, 3,4,5)
MR_decl_label4(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0, 3,6,15,9)
MR_decl_label10(fn__hlds__hlds_goal__goal_has_foreign_1_0, 105,3,4,6,12,15,17,10,8,20)
MR_decl_label8(fn__hlds__hlds_goal__goal_has_foreign_1_0, 47,23,22,30,32,33,31,28)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_lbu_1_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_lfu_1_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_rbmm_1_0, 3)
MR_decl_label1(fn__hlds__hlds_goal__goal_info_get_reuse_1_0, 3)
MR_decl_label4(fn__hlds__hlds_goal__goal_list_has_foreign_1_0, 16,3,5,4)
MR_decl_label2(fn__hlds__hlds_goal__impure_init_goal_info_3_0, 2,3)
MR_decl_label1(fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0, 2)
MR_decl_label3(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0, 2,3,4)
MR_decl_label5(fn__hlds__hlds_goal__rbmm_info_init_0_0, 3,4,5,6,7)
MR_decl_label3(fn__hlds__hlds_goal__true_goal_0_0, 3,5,6)
MR_decl_label1(fn__hlds__hlds_goal__true_goal_with_context_1_0, 2)
MR_decl_label1(fn__hlds__hlds_goal__worst_contains_trace_2_0, 10)
MR_decl_label3(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0, 4,8,1)
MR_decl_label4(__Unify___hlds__hlds_goal__call_unify_context_0_0, 4,6,10,1)
MR_decl_label4(__Unify___hlds__hlds_goal__case_0_0, 4,6,10,1)
MR_decl_label3(__Unify___hlds__hlds_goal__catch_part_0_0, 4,8,1)
MR_decl_label4(__Unify___hlds__hlds_goal__cell_to_reuse_0_0, 4,6,10,1)
MR_decl_label4(__Unify___hlds__hlds_goal__construct_sub_info_0_0, 15,5,8,1)
MR_decl_label4(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0, 5,7,11,1)
MR_decl_label2(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0, 4,1)
MR_decl_label2(__Unify___hlds__hlds_goal__dp_goal_info_0_0, 6,1)
MR_decl_label5(__Unify___hlds__hlds_goal__foreign_arg_0_0, 4,7,9,11,1)
MR_decl_label8(__Unify___hlds__hlds_goal__generic_call_0_0, 5,9,11,7,33,15,18,1)
MR_decl_label3(__Unify___hlds__hlds_goal__hlds_goal_0_0, 4,8,1)
MR_decl_label3(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0, 12,5,1)
MR_decl_label10(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0, 7,10,12,5,17,19,14,25,27,29)
MR_decl_label10(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0, 31,23,37,39,41,44,35,48,52,59)
MR_decl_label10(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0, 61,63,56,67,73,71,140,77,82,1)
MR_decl_label8(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0, 4,6,10,12,14,16,20,1)
MR_decl_label6(__Unify___hlds__hlds_goal__hlds_goal_info_0_0, 4,7,9,11,15,1)
MR_decl_label5(__Unify___hlds__hlds_goal__how_to_construct_0_0, 5,6,22,7,1)
MR_decl_label6(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0, 5,7,9,11,15,1)
MR_decl_label6(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0, 5,7,9,11,15,1)
MR_decl_label6(__Unify___hlds__hlds_goal__reuse_description_0_0, 5,6,7,29,11,1)
MR_decl_label10(__Unify___hlds__hlds_goal__scope_reason_0_0, 5,10,15,12,17,19,23,21,25,72)
MR_decl_label6(__Unify___hlds__hlds_goal__scope_reason_0_0, 29,33,36,38,40,1)
MR_decl_label6(__Unify___hlds__hlds_goal__short_reuse_description_0_0, 5,8,10,26,6,1)
MR_decl_label10(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0, 7,9,13,15,17,5,23,48,21,28)
MR_decl_label2(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0, 30,1)
MR_decl_label4(__Unify___hlds__hlds_goal__tagged_case_0_0, 4,6,10,1)
MR_decl_label3(__Unify___hlds__hlds_goal__term_size_value_0_0, 14,5,1)
MR_decl_label2(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0, 4,1)
MR_decl_label3(__Unify___hlds__hlds_goal__try_io_state_vars_0_0, 4,8,1)
MR_decl_label3(__Unify___hlds__hlds_goal__uni_mode_0_0, 4,8,1)
MR_decl_label10(__Unify___hlds__hlds_goal__unification_0_0, 7,5,14,16,18,20,22,11,29,31)
MR_decl_label8(__Unify___hlds__hlds_goal__unification_0_0, 33,35,26,39,76,37,45,1)
MR_decl_label3(__Unify___hlds__hlds_goal__unify_context_0_0, 4,8,1)
MR_decl_label7(__Unify___hlds__hlds_goal__unify_main_context_0_0, 5,6,9,7,26,11,1)
MR_decl_label8(__Unify___hlds__hlds_goal__unify_rhs_0_0, 7,5,15,17,19,42,12,1)
MR_decl_label3(__Unify___hlds__hlds_goal__unify_sub_context_0_0, 4,6,1)
MR_decl_label4(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0, 3,2,5,21)
MR_decl_label5(__Compare___hlds__hlds_goal__call_unify_context_0_0, 3,2,5,9,29)
MR_decl_label5(__Compare___hlds__hlds_goal__case_0_0, 3,2,5,9,29)
MR_decl_label4(__Compare___hlds__hlds_goal__catch_part_0_0, 3,2,5,21)
MR_decl_label5(__Compare___hlds__hlds_goal__cell_to_reuse_0_0, 3,2,5,9,29)
MR_decl_label6(__Compare___hlds__hlds_goal__construct_sub_info_0_0, 25,7,5,9,12,17)
MR_decl_label5(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0, 3,2,6,11,40)
MR_decl_label4(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0, 3,2,5,21)
MR_decl_label4(__Compare___hlds__hlds_goal__dp_goal_info_0_0, 3,2,5,21)
MR_decl_label6(__Compare___hlds__hlds_goal__foreign_arg_0_0, 3,2,5,10,14,50)
MR_decl_label10(__Compare___hlds__hlds_goal__generic_call_0_0, 3,2,7,9,5,13,16,20,24,14)
MR_decl_label10(__Compare___hlds__hlds_goal__generic_call_0_0, 11,34,95,35,32,39,40,41,43,47)
MR_decl_label2(__Compare___hlds__hlds_goal__generic_call_0_0, 51,182)
MR_decl_label4(__Compare___hlds__hlds_goal__hlds_goal_0_0, 3,2,5,21)
MR_decl_label4(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0, 18,7,5,9)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 3,2,9,14,18,7,25,26,27,28)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 29,30,31,32,5,36,39,43,48,52)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 56,37,65,66,67,68,69,70,71,34)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 75,76,79,83,87,91,77,99,100,101)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 102,103,104,73,108,109,110,113,117,121)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 125,129,134,111,144,145,146,147,148,106)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 152,153,154,155,158,156,163,164,165,166)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 150,170,171,172,173,174,175,177,178,179)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 168,183,184,185,186,187,188,192,196,200)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 189,207,208,181,212,213,214,215,216,217)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 218,219,221,210,225,226,227,228,229,230)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 231,232,235,233,223,243,244,245,246,247)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 248,249,250,251,241,255,256,257,258,259)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0, 416,260,261,262,263,420,264,266,270,1257)
MR_decl_label9(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0, 3,2,5,9,15,19,23,27,84)
MR_decl_label10(__Compare___hlds__hlds_goal__hlds_goal_info_0_0, 3,2,5,9,14,18,22,26,30,94)
MR_decl_label10(__Compare___hlds__hlds_goal__how_to_construct_0_0, 7,8,5,79,12,50,10,17,18,15)
MR_decl_label3(__Compare___hlds__hlds_goal__how_to_construct_0_0, 22,23,24)
MR_decl_label7(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0, 3,2,6,11,16,21,65)
MR_decl_label7(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0, 3,2,6,11,16,21,65)
MR_decl_label10(__Compare___hlds__hlds_goal__reuse_description_0_0, 7,8,9,5,13,71,14,15,119,11)
MR_decl_label10(__Compare___hlds__hlds_goal__reuse_description_0_0, 19,20,17,26,27,28,83,24,32,33)
MR_decl_label1(__Compare___hlds__hlds_goal__reuse_description_0_0, 34)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 3,2,7,10,11,12,13,14,15,5)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 19,20,22,23,24,25,26,17,30,31)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 35,32,40,41,42,43,28,47,48,49)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 50,52,53,54,45,58,59,60,61,62)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 64,65,56,69,70,71,72,73,76,74)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 81,67,85,86,87,88,89,90,91,83)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 96,97,98,99,100,101,299,102,94,106)
MR_decl_label10(__Compare___hlds__hlds_goal__scope_reason_0_0, 107,108,109,110,111,112,113,116,121,125)
MR_decl_label2(__Compare___hlds__hlds_goal__scope_reason_0_0, 129,733)
MR_decl_label10(__Compare___hlds__hlds_goal__short_reuse_description_0_0, 54,55,5,11,14,18,22,9,30,31)
MR_decl_label2(__Compare___hlds__hlds_goal__short_reuse_description_0_0, 33,38)
MR_decl_label10(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0, 3,2,9,13,17,23,27,31,7,5)
MR_decl_label9(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0, 96,44,47,42,53,54,56,60,181)
MR_decl_label6(__Compare___hlds__hlds_goal__tagged_case_0_0, 3,2,5,9,13,37)
MR_decl_label5(__Compare___hlds__hlds_goal__term_size_value_0_0, 3,2,7,5,10)
MR_decl_label4(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0, 3,2,5,21)
MR_decl_label4(__Compare___hlds__hlds_goal__try_io_state_vars_0_0, 3,2,5,21)
MR_decl_label4(__Compare___hlds__hlds_goal__uni_mode_0_0, 3,2,5,21)
MR_decl_label10(__Compare___hlds__hlds_goal__unification_0_0, 3,2,9,7,14,15,5,19,22,26)
MR_decl_label10(__Compare___hlds__hlds_goal__unification_0_0, 31,35,39,43,20,53,17,57,58,61)
MR_decl_label10(__Compare___hlds__hlds_goal__unification_0_0, 65,70,74,78,59,55,90,91,92,95)
MR_decl_label10(__Compare___hlds__hlds_goal__unification_0_0, 99,88,107,108,155,109,156,110,112,372)
MR_decl_label4(__Compare___hlds__hlds_goal__unify_context_0_0, 3,2,5,21)
MR_decl_label10(__Compare___hlds__hlds_goal__unify_main_context_0_0, 7,8,9,5,13,77,14,15,11,19)
MR_decl_label10(__Compare___hlds__hlds_goal__unify_main_context_0_0, 20,23,21,17,31,32,89,33,29,37)
MR_decl_label4(__Compare___hlds__hlds_goal__unify_main_context_0_0, 38,39,40,42)
MR_decl_label10(__Compare___hlds__hlds_goal__unify_rhs_0_0, 3,2,9,13,7,5,93,23,26,30)
MR_decl_label9(__Compare___hlds__hlds_goal__unify_rhs_0_0, 34,39,44,48,52,21,64,65,182)
MR_decl_label4(__Compare___hlds__hlds_goal__unify_sub_context_0_0, 3,2,5,21)
MR_def_extern_entry(fn__hlds__hlds_goal__get_hlds_goal_expr_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__get_hlds_goal_info_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__foreign_arg_var_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__foreign_arg_maybe_name_mode_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__foreign_arg_type_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__foreign_arg_box_1_0)
MR_def_extern_entry(hlds__hlds_goal__make_foreign_args_4_0)
MR_def_extern_entry(hlds__hlds_goal__generic_call_id_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__rbmm_info_init_0_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_init_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_init_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_init_5_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_init_6_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_features_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_features_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_add_feature_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__impure_init_goal_info_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_purity_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_purity_3_0)
MR_def_extern_entry(hlds__hlds_goal__make_impure_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_nonlocals_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0)
MR_def_extern_entry(hlds__hlds_goal__add_impurity_if_needed_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_determinism_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_context_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_code_gen_nonlocals_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_goal_id_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_reverse_goal_path_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_code_gen_info_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_ho_values_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_rbmm_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_mode_constr_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_ctgc_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_maybe_dp_info_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_determinism_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_instmap_delta_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_context_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_code_gen_nonlocals_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_goal_id_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_reverse_goal_path_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_code_gen_info_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_ho_values_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_maybe_rbmm_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_maybe_mode_constr_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_maybe_ctgc_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_lfu_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_lbu_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_reuse_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_maybe_dp_info_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_rbmm_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_lfu_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_lbu_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_info_get_reuse_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_get_occurring_vars_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_get_producing_vars_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_get_consuming_vars_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_occurring_vars_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_producing_vars_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_consuming_vars_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__producing_vars_1_0)
MR_def_extern_entry(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_112_114_111_100_117_99_105_110_103_95_118_97_114_115_32_58_61_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__consuming_vars_1_0)
MR_def_extern_entry(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_99_111_110_115_117_109_105_110_103_95_118_97_114_115_32_58_61_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__make_visible_vars_1_0)
MR_def_extern_entry(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_109_97_107_101_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__need_visible_vars_1_0)
MR_def_extern_entry(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_110_101_101_100_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__worst_contains_trace_2_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_get_nonlocals_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_set_goal_id_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_get_purity_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_set_purity_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_has_feature_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_get_goal_purity_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_get_goal_purity_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_remove_feature_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_set_context_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_add_feature_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_remove_feature_3_0)
MR_def_extern_entry(hlds__hlds_goal__goal_has_feature_2_0)
MR_decl_static(hlds__hlds_goal__rename_arg_list_4_0)
MR_decl_static(hlds__hlds_goal__rename_unify_4_0)
MR_decl_static(hlds__hlds_goal__rename_generic_call_4_0)
MR_def_extern_entry(hlds__hlds_goal__rename_vars_in_goal_info_4_0)
MR_def_extern_entry(hlds__hlds_goal__rename_vars_in_goals_4_0)
MR_def_extern_entry(hlds__hlds_goal__rename_vars_in_goal_expr_4_0)
MR_decl_static(hlds__hlds_goal__rename_vars_in_goal_4_0)
MR_decl_static(hlds__hlds_goal__rename_vars_in_cases_4_0)
MR_decl_static(hlds__hlds_goal__rename_unify_rhs_4_0)
MR_def_extern_entry(hlds__hlds_goal__rename_some_vars_in_goal_3_0)
MR_def_extern_entry(hlds__hlds_goal__must_rename_vars_in_goal_3_0)
MR_def_extern_entry(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0)
MR_decl_static(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0)
MR_decl_static(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0)
MR_decl_static(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0)
MR_decl_static(hlds__hlds_goal__incremental_rename_unify_rhs_4_0)
MR_def_extern_entry(hlds__hlds_goal__goal_to_conj_list_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_to_par_conj_list_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_to_disj_list_2_0)
MR_def_extern_entry(hlds__hlds_goal__conj_list_to_goal_3_0)
MR_def_extern_entry(hlds__hlds_goal__par_conj_list_to_goal_3_0)
MR_def_extern_entry(hlds__hlds_goal__disj_list_to_goal_3_0)
MR_def_extern_entry(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0)
MR_def_extern_entry(hlds__hlds_goal__conjoin_goals_3_0)
MR_decl_static(hlds__hlds_goal__all_negated_2_0)
MR_def_extern_entry(hlds__hlds_goal__negate_goal_3_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_has_foreign_1_0)
MR_decl_static(fn__hlds__hlds_goal__goal_list_has_foreign_1_0)
MR_decl_static(fn__hlds__hlds_goal__case_list_has_foreign_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__true_goal_expr_0_0)
MR_def_extern_entry(fn__hlds__hlds_goal__true_goal_0_0)
MR_def_extern_entry(fn__hlds__hlds_goal__true_goal_with_context_1_0)
MR_def_extern_entry(fn__hlds__hlds_goal__fail_goal_expr_0_0)
MR_def_extern_entry(fn__hlds__hlds_goal__fail_goal_0_0)
MR_def_extern_entry(fn__hlds__hlds_goal__fail_goal_info_0_0)
MR_def_extern_entry(fn__hlds__hlds_goal__fail_goal_with_context_1_0)
MR_def_extern_entry(hlds__hlds_goal__goal_list_nonlocals_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_list_instmap_delta_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_list_determinism_2_0)
MR_def_extern_entry(hlds__hlds_goal__goal_list_purity_2_0)
MR_def_extern_entry(hlds__hlds_goal__set_goal_contexts_3_0)
MR_def_extern_entry(hlds__hlds_goal__create_atomic_complicated_unification_7_0)
MR_def_extern_entry(hlds__hlds_goal__create_pure_atomic_complicated_unification_6_0)
MR_def_extern_entry(hlds__hlds_goal__make_simple_assign_5_0)
MR_def_extern_entry(hlds__hlds_goal__make_simple_test_5_0)
MR_def_extern_entry(hlds__hlds_goal__make_const_construction_3_0)
MR_def_extern_entry(hlds__hlds_goal__make_int_const_construction_3_0)
MR_def_extern_entry(hlds__hlds_goal__make_string_const_construction_3_0)
MR_def_extern_entry(hlds__hlds_goal__make_float_const_construction_3_0)
MR_def_extern_entry(hlds__hlds_goal__make_char_const_construction_3_0)
MR_def_extern_entry(hlds__hlds_goal__make_int_const_construction_alloc_8_0)
MR_def_extern_entry(hlds__hlds_goal__make_string_const_construction_alloc_8_0)
MR_def_extern_entry(hlds__hlds_goal__make_float_const_construction_alloc_8_0)
MR_def_extern_entry(hlds__hlds_goal__make_char_const_construction_alloc_8_0)
MR_def_extern_entry(hlds__hlds_goal__make_const_construction_alloc_9_0)
MR_def_extern_entry(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0)
MR_def_extern_entry(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0)
MR_def_extern_entry(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0)
MR_def_extern_entry(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0)
MR_def_extern_entry(hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0)
MR_decl_static(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0)
MR_def_extern_entry(hlds__hlds_goal__get_pragma_foreign_var_names_2_0)
MR_def_extern_entry(hlds__hlds_goal__construct_functor_4_0)
MR_def_extern_entry(hlds__hlds_goal__deconstruct_functor_4_0)
MR_def_extern_entry(hlds__hlds_goal__construct_tuple_3_0)
MR_def_extern_entry(hlds__hlds_goal__deconstruct_tuple_3_0)
MR_decl_static(hlds__hlds_goal__follow_subn_until_fixpoint_3_0)
MR_decl_static(hlds__hlds_goal__set_case_contexts_3_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__atomic_goal_type_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__atomic_goal_type_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__builtin_state_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__builtin_state_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__call_unify_context_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__call_unify_context_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__can_cgc_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__can_cgc_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__case_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__case_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__cast_kind_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__cast_kind_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__catch_part_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__catch_part_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__cell_is_unique_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__cell_is_unique_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__cell_to_reuse_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__cell_to_reuse_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__conj_type_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__conj_type_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__construct_sub_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__construct_sub_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__contains_trace_goal_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__contains_trace_goal_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__dp_goal_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__dp_goal_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__force_pruning_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__force_pruning_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__foreign_arg_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__foreign_arg_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__from_ground_term_kind_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__from_ground_term_kind_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__generic_call_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__generic_call_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__goal_feature_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__goal_feature_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__goal_is_mdprof_inst_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__goal_is_mdprof_inst_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__goal_trivial_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__goal_trivial_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__has_subgoals_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__has_subgoals_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__hlds_goal_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__hlds_goal_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0)
MR_decl_static(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0)
MR_decl_static(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__hlds_goal_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__hlds_goal_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__hlds_goals_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__hlds_goals_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__ho_values_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__ho_values_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__how_to_construct_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__how_to_construct_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__is_conditional_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__is_conditional_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__is_existential_construction_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__is_existential_construction_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__is_first_disjunct_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__is_first_disjunct_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__missed_message_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__missed_message_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__needs_update_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__needs_update_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__port_counts_give_coverage_after_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__port_counts_give_coverage_after_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__promise_solutions_kind_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__promise_solutions_kind_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__removable_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__removable_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__reuse_description_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__reuse_description_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__scope_reason_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__scope_reason_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__short_reuse_description_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__short_reuse_description_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__tagged_case_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__tagged_case_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__term_size_value_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__term_size_value_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__try_io_state_vars_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__try_io_state_vars_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__uni_mode_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__uni_mode_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unification_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unification_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unify_context_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unify_context_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unify_main_context_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unify_main_context_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unify_mode_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unify_mode_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unify_rhs_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unify_rhs_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unify_sub_context_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unify_sub_context_0_0)
MR_def_extern_entry(__Unify___hlds__hlds_goal__unify_sub_contexts_0_0)
MR_def_extern_entry(__Compare___hlds__hlds_goal__unify_sub_contexts_0_0)
MR_decl_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_nonlocals__3364__1_3_0)
MR_decl_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_instmap_delta__3373__1_3_0)
MR_decl_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_determinism__3382__1_3_0)
MR_decl_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_purity__3390__1_3_0)

extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_var_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_set_ordlist__type_ctor_info_set_ordlist_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
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_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_trace_expr_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_trace_runtime_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_trace_compiletime_0;
static const struct mercury_type_0 mercury_common_0[16] =
{
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_TAG_COMMON(0,1,0)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_TAG_COMMON(0,0,0)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_COMMON(0,3)
}
},
{
{
MR_tbmkword(0, 0),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(0,0,6),
MR_TAG_COMMON(0,0,6)
}
},
{
{
MR_tbmkword(0, 0),
MR_TAG_COMMON(3,4,0)
}
},
{
{
MR_TAG_COMMON(3,4,0),
MR_TAG_COMMON(3,4,0)
}
},
{
{
MR_TAG_COMMON(0,0,8),
MR_TAG_COMMON(0,0,9)
}
},
{
{
MR_TAG_COMMON(0,0,9),
MR_TAG_COMMON(0,0,9)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR1_ADDR(parse_tree__prog_data, trace_expr),
MR_CTOR0_ADDR(parse_tree__prog_data, trace_runtime)
}
},
{
{
MR_CTOR1_ADDR(parse_tree__prog_data, trace_expr),
MR_CTOR0_ADDR(parse_tree__prog_data, trace_compiletime)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_TAG_COMMON(0,0,0)
}
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0;
static const struct mercury_type_1 mercury_common_1[5] =
{
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_TAG_COMMON(0,0,0),
MR_TAG_COMMON(0,0,0)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_TAG_COMMON(0,0,0),
MR_TAG_COMMON(0,0,0)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_COMMON(0,3),
MR_COMMON(0,3)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_COMMON(0,3),
MR_COMMON(0,3)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_STRING_CTOR_ADDR,
MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_nonlocals_2_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_instmap_delta_2_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__instmap__type_ctor_info_instmap_0;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_determinism_2_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_purity_2_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_purity_0;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_case_0;
static const struct mercury_type_2 mercury_common_2[9] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_COMMON(1,2),
MR_COMMON(1,3),
MR_COMMON(1,3)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__goal_list_nonlocals_2_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,5),
MR_COMMON(0,5)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__goal_list_instmap_delta_2_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(hlds__instmap, instmap),
MR_CTOR0_ADDR(hlds__instmap, instmap)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__goal_list_determinism_2_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(parse_tree__prog_data, determinism),
MR_CTOR0_ADDR(parse_tree__prog_data, determinism)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__goal_list_purity_2_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(parse_tree__prog_data, purity),
MR_CTOR0_ADDR(parse_tree__prog_data, purity)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_1,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(term, context),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_2,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(term, context),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_3,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(term, context),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_4,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(term, context),
MR_CTOR0_ADDR(hlds__hlds_goal, case),
MR_CTOR0_ADDR(hlds__hlds_goal, case)
}
},
};

static const struct mercury_type_3 mercury_common_3[5] =
{
{
MR_COMMON(2,0),
MR_ENTRY_AP(hlds__hlds_goal__follow_subn_until_fixpoint_3_0),
0
},
{
MR_COMMON(2,1),
MR_ENTRY_AP(hlds__hlds_goal__IntroducedFrom__pred__goal_list_nonlocals__3364__1_3_0),
0
},
{
MR_COMMON(2,2),
MR_ENTRY_AP(hlds__hlds_goal__IntroducedFrom__pred__goal_list_instmap_delta__3373__1_3_0),
0
},
{
MR_COMMON(2,3),
MR_ENTRY_AP(hlds__hlds_goal__IntroducedFrom__pred__goal_list_determinism__3382__1_3_0),
0
},
{
MR_COMMON(2,4),
MR_ENTRY_AP(hlds__hlds_goal__IntroducedFrom__pred__goal_list_purity__3390__1_3_0),
0
},
};

static const struct mercury_type_4 mercury_common_4[1] =
{
{
1,
0,
MR_tbmkword(0, 0)
},
};

static const struct mercury_type_5 mercury_common_5[1] =
{
{
2,
MR_tbmkword(0, 0)
},
};

static const struct mercury_type_6 mercury_common_6[1] =
{
{
1,
MR_TAG_COMMON(0,0,7),
0,
MR_tbmkword(0, 0)
},
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_0 = {
	"unknown_atomic_goal_type",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_1 = {
	"top_level_atomic_goal",
	1
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_2 = {
	"nested_atomic_goal",
	2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_atomic_goal_type_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_atomic_goal_type_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_atomic_goal_type_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_atomic_goal_type_0[] = {
	2,
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_atomic_goal_type_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__atomic_goal_type_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__atomic_goal_type_0_0)),
	"hlds.hlds_goal",
	"atomic_goal_type",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_atomic_goal_type_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_atomic_goal_type_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_atomic_goal_type_0
};

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

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_atomic_interface_vars_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_atomic_interface_vars_0_0[] = {
	"atomic_initial",
	"atomic_final"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_atomic_interface_vars_0_0 = {
	"atomic_interface_vars",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_atomic_interface_vars_0_0,
	mercury_data_hlds__hlds_goal__field_names_atomic_interface_vars_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_atomic_interface_vars_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_atomic_interface_vars_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_atomic_interface_vars_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_atomic_interface_vars_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_atomic_interface_vars_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_atomic_interface_vars_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_atomic_interface_vars_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0)),
	"hlds.hlds_goal",
	"atomic_interface_vars",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_atomic_interface_vars_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_atomic_interface_vars_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_atomic_interface_vars_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_0 = {
	"inline_builtin",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_1 = {
	"out_of_line_builtin",
	1
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_2 = {
	"not_builtin",
	2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_builtin_state_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_builtin_state_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_builtin_state_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_builtin_state_0[] = {
	0,
	2,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_builtin_state_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__builtin_state_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__builtin_state_0_0)),
	"hlds.hlds_goal",
	"builtin_state",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_builtin_state_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_builtin_state_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_builtin_state_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_call_unify_context_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_call_unify_context_0_0 = {
	"call_unify_context",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_call_unify_context_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_call_unify_context_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_call_unify_context_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_call_unify_context_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_call_unify_context_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_call_unify_context_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_call_unify_context_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_call_unify_context_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_call_unify_context_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__call_unify_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__call_unify_context_0_0)),
	"hlds.hlds_goal",
	"call_unify_context",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_call_unify_context_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_call_unify_context_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_call_unify_context_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_can_cgc_0_0 = {
	"can_cgc",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_can_cgc_0_1 = {
	"cannot_cgc",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_can_cgc_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_can_cgc_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_can_cgc_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_can_cgc_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_can_cgc_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_can_cgc_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_can_cgc_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_can_cgc_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__can_cgc_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__can_cgc_0_0)),
	"hlds.hlds_goal",
	"can_cgc",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_can_cgc_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_can_cgc_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_can_cgc_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_parse_tree__prog_data__type_ctor_info_cons_id_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_cons_id_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &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_hlds_goal_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_case_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_case_0_0[] = {
	"case_first_functor",
	"case_later_functors",
	"case_goal"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_case_0_0 = {
	"case",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_case_0_0,
	mercury_data_hlds__hlds_goal__field_names_case_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_case_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_case_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_case_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_case_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_case_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_case_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_case_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_case_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__case_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__case_0_0)),
	"hlds.hlds_goal",
	"case",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_case_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_case_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_case_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_0 = {
	"unsafe_type_cast",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_1 = {
	"unsafe_type_inst_cast",
	1
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_2 = {
	"equiv_type_cast",
	2
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_3 = {
	"exists_cast",
	3
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_cast_kind_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_3
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_cast_kind_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_3,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cast_kind_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_cast_kind_0[] = {
	2,
	3,
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_cast_kind_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__cast_kind_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__cast_kind_0_0)),
	"hlds.hlds_goal",
	"cast_kind",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_cast_kind_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_cast_kind_0 },
	4,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_cast_kind_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_catch_part_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_catch_part_0_0[] = {
	"catch_expr",
	"catch_goal"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_catch_part_0_0 = {
	"catch_part",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_catch_part_0_0,
	mercury_data_hlds__hlds_goal__field_names_catch_part_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_catch_part_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_catch_part_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_catch_part_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_catch_part_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_catch_part_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_catch_part_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_catch_part_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_catch_part_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__catch_part_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__catch_part_0_0)),
	"hlds.hlds_goal",
	"catch_part",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_catch_part_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_catch_part_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_catch_part_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_cell_is_unique_0_0 = {
	"cell_is_unique",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_cell_is_unique_0_1 = {
	"cell_is_shared",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_cell_is_unique_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cell_is_unique_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cell_is_unique_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_cell_is_unique_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cell_is_unique_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_cell_is_unique_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_cell_is_unique_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_cell_is_unique_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__cell_is_unique_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__cell_is_unique_0_0)),
	"hlds.hlds_goal",
	"cell_is_unique",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_cell_is_unique_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_cell_is_unique_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_cell_is_unique_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_needs_update_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_needs_update_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_needs_update_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_cell_to_reuse_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_needs_update_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_cell_to_reuse_0_0 = {
	"cell_to_reuse",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_cell_to_reuse_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_cell_to_reuse_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_cell_to_reuse_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_cell_to_reuse_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_cell_to_reuse_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_cell_to_reuse_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_cell_to_reuse_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_cell_to_reuse_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_cell_to_reuse_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__cell_to_reuse_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__cell_to_reuse_0_0)),
	"hlds.hlds_goal",
	"cell_to_reuse",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_cell_to_reuse_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_cell_to_reuse_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_cell_to_reuse_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_conj_type_0_0 = {
	"plain_conj",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_conj_type_0_1 = {
	"parallel_conj",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_conj_type_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_conj_type_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_conj_type_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_conj_type_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_conj_type_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_conj_type_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_conj_type_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_conj_type_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__conj_type_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__conj_type_0_0)),
	"hlds.hlds_goal",
	"conj_type",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_conj_type_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_conj_type_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_conj_type_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_maybe__type_ctor_info_maybe_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1builtin__type_ctor_info_int_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1list__ti_list_1builtin__type_ctor_info_int_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_list__ti_list_1builtin__type_ctor_info_int_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_term_size_value_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_term_size_value_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_term_size_value_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_construct_sub_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1list__ti_list_1builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_term_size_value_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_construct_sub_info_0_0[] = {
	"take_address_fields",
	"term_size_slot"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_construct_sub_info_0_0 = {
	"construct_sub_info",
	2,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_construct_sub_info_0_0,
	mercury_data_hlds__hlds_goal__field_names_construct_sub_info_0_0,
	NULL
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_construct_sub_info_0_1 = {
	"no_construct_sub_info",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	0,
	1,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_construct_sub_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_construct_sub_info_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_construct_sub_info_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_construct_sub_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_construct_sub_info_0[] = {
	{ 1, MR_SECTAG_LOCAL,
	mercury_data_hlds__hlds_goal__du_stag_ordered_construct_sub_info_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_construct_sub_info_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_construct_sub_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_construct_sub_info_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_construct_sub_info_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_construct_sub_info_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_construct_sub_info_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__construct_sub_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__construct_sub_info_0_0)),
	"hlds.hlds_goal",
	"construct_sub_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_construct_sub_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_construct_sub_info_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_construct_sub_info_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_contains_trace_goal_0_0 = {
	"contains_trace_goal",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_contains_trace_goal_0_1 = {
	"contains_no_trace_goal",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_contains_trace_goal_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_contains_trace_goal_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_contains_trace_goal_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_contains_trace_goal_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_contains_trace_goal_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_contains_trace_goal_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_contains_trace_goal_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_contains_trace_goal_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__contains_trace_goal_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__contains_trace_goal_0_0)),
	"hlds.hlds_goal",
	"contains_trace_goal",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_contains_trace_goal_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_contains_trace_goal_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_contains_trace_goal_0
};

static const MR_FA_TypeInfo_Struct1 mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0 = {
	&mercury_data_set_ordlist__type_ctor_info_set_ordlist_1,
{	(MR_TypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_reuse_description_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_ctgc_goal_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_reuse_description_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_ctgc_goal_info_0_0[] = {
	"ctgc_lfu",
	"ctgc_lbu",
	"ctgc_reuse"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_ctgc_goal_info_0_0 = {
	"ctgc_goal_info",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_ctgc_goal_info_0_0,
	mercury_data_hlds__hlds_goal__field_names_ctgc_goal_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_ctgc_goal_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_ctgc_goal_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_ctgc_goal_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_ctgc_goal_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_ctgc_goal_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_ctgc_goal_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_ctgc_goal_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0)),
	"hlds.hlds_goal",
	"ctgc_goal_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_ctgc_goal_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_ctgc_goal_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_ctgc_goal_info_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_trivial_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_port_counts_give_coverage_after_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_dp_coverage_goal_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_goal_trivial_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_port_counts_give_coverage_after_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_dp_coverage_goal_info_0_0 = {
	"dp_coverage_goal_info",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_dp_coverage_goal_info_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_dp_coverage_goal_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_dp_coverage_goal_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_dp_coverage_goal_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_dp_coverage_goal_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_dp_coverage_goal_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_dp_coverage_goal_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_dp_coverage_goal_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0)),
	"hlds.hlds_goal",
	"dp_coverage_goal_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_dp_coverage_goal_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_dp_coverage_goal_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_dp_coverage_goal_info_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_is_mdprof_inst_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_dp_goal_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_goal_is_mdprof_inst_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_dp_goal_info_0_0 = {
	"dp_goal_info",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_dp_goal_info_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_dp_goal_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_dp_goal_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_dp_goal_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_dp_goal_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_dp_goal_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_dp_goal_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_dp_goal_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_dp_goal_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__dp_goal_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__dp_goal_info_0_0)),
	"hlds.hlds_goal",
	"dp_goal_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_dp_goal_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_dp_goal_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_dp_goal_info_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_force_pruning_0_0 = {
	"force_pruning",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_force_pruning_0_1 = {
	"dont_force_pruning",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_force_pruning_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_force_pruning_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_force_pruning_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_force_pruning_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_force_pruning_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_force_pruning_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_force_pruning_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_force_pruning_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__force_pruning_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__force_pruning_0_0)),
	"hlds.hlds_goal",
	"force_pruning",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_force_pruning_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_force_pruning_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_force_pruning_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2builtin__type_ctor_info_string_0parse_tree__prog_data__type_ctor_info_mer_mode_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_string_0,
	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1pair__ti_pair_2builtin__type_ctor_info_string_0parse_tree__prog_data__type_ctor_info_mer_mode_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_pair__ti_pair_2builtin__type_ctor_info_string_0parse_tree__prog_data__type_ctor_info_mer_mode_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_box_policy_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_box_policy_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_foreign_arg_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1pair__ti_pair_2builtin__type_ctor_info_string_0parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_box_policy_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_foreign_arg_0_0[] = {
	"arg_var",
	"arg_name_mode",
	"arg_type",
	"arg_box_policy"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_foreign_arg_0_0 = {
	"foreign_arg",
	4,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_foreign_arg_0_0,
	mercury_data_hlds__hlds_goal__field_names_foreign_arg_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_foreign_arg_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_foreign_arg_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_foreign_arg_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_foreign_arg_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_foreign_arg_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_foreign_arg_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_foreign_arg_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__foreign_arg_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__foreign_arg_0_0)),
	"hlds.hlds_goal",
	"foreign_arg",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_foreign_arg_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_foreign_arg_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_foreign_arg_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_0 = {
	"from_ground_term_construct",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_1 = {
	"from_ground_term_deconstruct",
	1
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_2 = {
	"from_ground_term_other",
	2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_from_ground_term_kind_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_from_ground_term_kind_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_from_ground_term_kind_0_2
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_from_ground_term_kind_0[] = {
	0,
	1,
	2 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_from_ground_term_kind_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__from_ground_term_kind_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__from_ground_term_kind_0_0)),
	"hlds.hlds_goal",
	"from_ground_term_kind",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_from_ground_term_kind_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_from_ground_term_kind_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_from_ground_term_kind_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_purity_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_parse_tree__prog_data__type_ctor_info_purity_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_generic_call_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_purity_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
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_generic_call_0_0[] = {
	"ho_call_var",
	"ho_call_purity",
	"ho_call_kind",
	"ho_call_arity"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_0 = {
	"higher_order",
	4,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_generic_call_0_0,
	mercury_data_hlds__hlds_goal__field_names_generic_call_0_0,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_class_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_simple_call_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_class_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_simple_call_id_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_generic_call_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_class_id_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_simple_call_id_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_generic_call_0_1[] = {
	"method_tci",
	"method_num",
	"method_class_id",
	"method_name"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_1 = {
	"class_method",
	4,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_generic_call_0_1,
	mercury_data_hlds__hlds_goal__field_names_generic_call_0_1,
	NULL
};

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

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_generic_call_0_2[] = {
	"event_name"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_2 = {
	"event_call",
	1,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_generic_call_0_2,
	mercury_data_hlds__hlds_goal__field_names_generic_call_0_2,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_cast_kind_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_generic_call_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_cast_kind_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_generic_call_0_3[] = {
	"cast_kind"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_3 = {
	"cast",
	1,
	0,
	MR_SECTAG_NONE,
	3,
	-1,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_generic_call_0_3,
	mercury_data_hlds__hlds_goal__field_names_generic_call_0_3,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_3[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_3

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_generic_call_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_2 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_generic_call_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_generic_call_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_generic_call_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_generic_call_0[] = {
	3,
	1,
	2,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_generic_call_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__generic_call_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__generic_call_0_0)),
	"hlds.hlds_goal",
	"generic_call",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_generic_call_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_generic_call_0 },
	4,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_generic_call_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_0 = {
	"feature_constraint",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_1 = {
	"feature_from_head",
	1
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_2 = {
	"feature_not_impure_for_determinism",
	2
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_3 = {
	"feature_stack_opt",
	3
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_4 = {
	"feature_tuple_opt",
	4
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_5 = {
	"feature_call_table_gen",
	5
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_6 = {
	"feature_preserve_backtrack_into",
	6
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_7 = {
	"feature_save_deep_excp_vars",
	7
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_8 = {
	"feature_hide_debug_event",
	8
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_9 = {
	"feature_deep_tail_rec_call",
	9
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_10 = {
	"feature_debug_tail_rec_call",
	10
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_11 = {
	"feature_keep_constant_binding",
	11
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_12 = {
	"feature_dont_warn_singleton",
	12
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_13 = {
	"feature_duplicated_for_switch",
	13
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_14 = {
	"feature_mode_check_clauses_goal",
	14
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_15 = {
	"feature_will_not_modify_trail",
	15
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_16 = {
	"feature_will_not_call_mm_tabled",
	16
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_17 = {
	"feature_contains_trace",
	17
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_18 = {
	"feature_pretest_equality",
	18
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_19 = {
	"feature_pretest_equality_condition",
	19
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_20 = {
	"feature_lambda_undetermined_mode",
	20
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_21 = {
	"feature_contains_stm_inner_outer",
	21
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_goal_feature_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_3,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_4,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_5,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_6,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_7,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_8,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_9,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_10,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_11,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_12,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_13,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_14,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_15,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_16,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_17,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_18,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_19,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_20,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_21
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_goal_feature_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_5,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_21,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_17,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_10,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_9,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_12,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_13,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_8,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_11,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_20,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_14,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_6,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_18,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_19,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_7,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_3,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_4,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_16,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_feature_0_15
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_goal_feature_0[] = {
	1,
	8,
	13,
	18,
	19,
	0,
	14,
	17,
	9,
	5,
	4,
	10,
	6,
	7,
	12,
	21,
	20,
	3,
	15,
	16,
	11,
	2 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__goal_feature_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__goal_feature_0_0)),
	"hlds.hlds_goal",
	"goal_feature",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_goal_feature_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_goal_feature_0 },
	22,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_goal_feature_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_is_mdprof_inst_0_0 = {
	"goal_is_mdprof_inst",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_is_mdprof_inst_0_1 = {
	"goal_is_not_mdprof_inst",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_goal_is_mdprof_inst_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_is_mdprof_inst_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_is_mdprof_inst_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_goal_is_mdprof_inst_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_is_mdprof_inst_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_is_mdprof_inst_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_goal_is_mdprof_inst_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_is_mdprof_inst_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__goal_is_mdprof_inst_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__goal_is_mdprof_inst_0_0)),
	"hlds.hlds_goal",
	"goal_is_mdprof_inst",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_goal_is_mdprof_inst_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_goal_is_mdprof_inst_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_goal_is_mdprof_inst_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_trivial_0_0 = {
	"goal_is_trivial",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_goal_trivial_0_1 = {
	"goal_is_nontrivial",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_goal_trivial_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_trivial_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_trivial_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_goal_trivial_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_trivial_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_goal_trivial_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_goal_trivial_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_trivial_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__goal_trivial_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__goal_trivial_0_0)),
	"hlds.hlds_goal",
	"goal_trivial",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_goal_trivial_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_goal_trivial_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_goal_trivial_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_has_subgoals_0_0 = {
	"has_subgoals",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_has_subgoals_0_1 = {
	"does_not_have_subgoals",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_has_subgoals_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_has_subgoals_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_has_subgoals_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_has_subgoals_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_has_subgoals_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_has_subgoals_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_has_subgoals_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_has_subgoals_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__has_subgoals_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__has_subgoals_0_0)),
	"hlds.hlds_goal",
	"has_subgoals",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_has_subgoals_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_has_subgoals_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_has_subgoals_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_info_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_info_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_0_0[] = {
	"hlds_goal_expr",
	"hlds_goal_info"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_0_0 = {
	"hlds_goal",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_0_0,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__hlds_goal_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__hlds_goal_0_0)),
	"hlds.hlds_goal",
	"hlds_goal",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_code_gen_info_0_0 = {
	"no_code_gen_info",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	0,
	0,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_llds__type_ctor_info_llds_code_gen_details_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_llds__type_ctor_info_llds_code_gen_details_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_code_gen_info_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_llds__type_ctor_info_llds_code_gen_details_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_code_gen_info_0_1[] = {
	"llds_code_gen"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_code_gen_info_0_1 = {
	"llds_code_gen_info",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_code_gen_info_0_1,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_code_gen_info_0_1,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_code_gen_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_code_gen_info_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_code_gen_info_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_code_gen_info_0_1

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_code_gen_info_0[] = {
	{ 1, MR_SECTAG_LOCAL,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_code_gen_info_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_code_gen_info_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_code_gen_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_code_gen_info_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_code_gen_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_code_gen_info_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_code_gen_info_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0)),
	"hlds.hlds_goal",
	"hlds_goal_code_gen_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_code_gen_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_code_gen_info_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_code_gen_info_0
};

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2parse_tree__prog_data__type_ctor_info_mer_mode_0parse_tree__prog_data__type_ctor_info_mer_mode_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unification_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0,
	(MR_PseudoTypeInfo) &mercury_data_pair__ti_pair_2parse_tree__prog_data__type_ctor_info_mer_mode_0parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unification_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_0[] = {
	"unify_lhs",
	"unify_rhs",
	"unify_mode",
	"unify_kind",
	"unify_context"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_0 = {
	"unify",
	5,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_0,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_0,
	NULL
};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_call_unify_context_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_call_unify_context_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_call_unify_context_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_builtin_state_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_builtin_state_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_call_unify_context_0,
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_sym_name_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_1[] = {
	"call_pred_id",
	"call_proc_id",
	"call_args",
	"call_builtin",
	"call_unify_context",
	"call_sym_name"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_1 = {
	"plain_call",
	6,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_1,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_1,
	NULL
};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_mer_mode_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_generic_call_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_generic_call_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_2[] = {
	"gcall_details",
	"gcall_args",
	"gcall_modes",
	"gcall_detism"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_2 = {
	"generic_call",
	4,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_2,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_2,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_pragma_foreign_proc_attributes_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_foreign_arg_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_trace_runtime_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_runtime_0 = {
	&mercury_data_parse_tree__prog_data__type_ctor_info_trace_expr_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_trace_runtime_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_runtime_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_runtime_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_pragma_foreign_code_impl_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_pragma_foreign_proc_attributes_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_pragma_foreign_code_impl_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_pragma_foreign_proc_attributes_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_foreign_arg_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_foreign_arg_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_runtime_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_pragma_foreign_code_impl_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_3[] = {
	"foreign_attr",
	"foreign_pred_id",
	"foreign_proc_id",
	"foreign_args",
	"foreign_extra_args",
	"foreign_trace_cond",
	"foreign_impl"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_3 = {
	"call_foreign_proc",
	7,
	0,
	MR_SECTAG_REMOTE,
	3,
	0,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_3,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_3,
	NULL
};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_hlds_goal_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_conj_type_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_4[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_conj_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_4 = {
	"conj",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	1,
	4,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_4,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_5[] = {
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_5 = {
	"disj",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	2,
	5,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_5,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_can_fail_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_case_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_case_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_case_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_can_fail_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_6[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_can_fail_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_case_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_6[] = {
	"switch_var",
	"switch_canfail",
	"switch_cases"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_6 = {
	"switch",
	3,
	0,
	MR_SECTAG_REMOTE,
	3,
	3,
	6,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_6,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_6,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_7[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_7 = {
	"negation",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	4,
	7,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_7,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_scope_reason_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_8[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_scope_reason_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_8[] = {
	"scope_reason",
	"scope_goal"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_8 = {
	"scope",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	5,
	8,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_8,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_8,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_9[] = {
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_9[] = {
	"ite_exist_vars",
	"ite_cond",
	"ite_then",
	"ite_else"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_9 = {
	"if_then_else",
	4,
	0,
	MR_SECTAG_REMOTE,
	3,
	6,
	9,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_9,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_expr_0_9,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_shorthand_goal_expr_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_10[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_shorthand_goal_expr_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_10 = {
	"shorthand",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	7,
	10,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_expr_0_10,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_3[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_4,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_5,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_6,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_7,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_8,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_9,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_10

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_expr_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_2 },
	{ 8, MR_SECTAG_REMOTE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_expr_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_expr_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_4,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_5,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_9,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_7,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_8,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_10,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_6,
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_expr_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_expr_0[] = {
	10,
	6,
	3,
	0,
	1,
	2,
	9,
	5,
	7,
	4,
	8 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0)),
	"hlds.hlds_goal",
	"hlds_goal_expr",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_expr_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_expr_0 },
	11,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_expr_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_set_ordlist__ti_set_ordlist_1hlds__hlds_pred__type_ctor_info_pred_proc_id_0 = {
	&mercury_data_set_ordlist__type_ctor_info_set_ordlist_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0
}};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0set_ordlist__ti_set_ordlist_1hlds__hlds_pred__type_ctor_info_pred_proc_id_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_TypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1hlds__hlds_pred__type_ctor_info_pred_proc_id_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_dp_goal_info_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_dp_goal_info_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_dp_goal_info_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_context_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_extra_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__type_ctor_info_context_0,
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0,
	(MR_PseudoTypeInfo) &mercury_data_tree234__ti_tree234_2term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0set_ordlist__ti_set_ordlist_1hlds__hlds_pred__type_ctor_info_pred_proc_id_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_dp_goal_info_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_extra_info_0_0[] = {
	"egi_context",
	"egi_rev_goal_path",
	"egi_ho_vals",
	"egi_maybe_ctgc",
	"egi_maybe_rbmm",
	"egi_maybe_mode_constr",
	"egi_maybe_dp"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_extra_info_0_0 = {
	"extra_goal_info",
	7,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_extra_info_0_0,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_extra_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_extra_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_extra_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_extra_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_extra_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_extra_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_extra_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_extra_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_extra_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0)),
	"hlds.hlds_goal",
	"hlds_goal_extra_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_extra_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_extra_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_extra_info_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__instmap__type_ctor_info_instmap_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_set_ordlist__ti_set_ordlist_1hlds__hlds_goal__type_ctor_info_goal_feature_0 = {
	&mercury_data_set_ordlist__type_ctor_info_set_ordlist_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_goal_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__instmap__type_ctor_info_instmap_0;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_goal_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_code_gen_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_extra_info_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_hlds_goal_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__instmap__type_ctor_info_instmap_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_purity_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1hlds__hlds_goal__type_ctor_info_goal_feature_0,
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__goal_path__type_ctor_info_goal_id_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_code_gen_info_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_extra_info_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_hlds_goal_info_0_0[] = {
	"gi_determinism",
	"gi_instmap_delta",
	"gi_nonlocals",
	"gi_purity",
	"gi_features",
	"gi_goal_id",
	"gi_code_gen_info",
	"gi_extra"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_info_0_0 = {
	"goal_info",
	8,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_hlds_goal_info_0_0,
	mercury_data_hlds__hlds_goal__field_names_hlds_goal_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_hlds_goal_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_hlds_goal_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__hlds_goal_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__hlds_goal_info_0_0)),
	"hlds.hlds_goal",
	"hlds_goal_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_hlds_goal_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_hlds_goal_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_hlds_goal_info_0
};

const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goals_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__hlds_goals_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__hlds_goals_0_0)),
	"hlds.hlds_goal",
	"hlds_goals",
	{ 0 },
	{ (void *)&mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_hlds_goal_0 },
	-1,
	0,
	NULL
};

const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_ho_values_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__ho_values_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__ho_values_0_0)),
	"hlds.hlds_goal",
	"ho_values",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0set_ordlist__ti_set_ordlist_1hlds__hlds_pred__type_ctor_info_pred_proc_id_0 },
	-1,
	0,
	NULL
};

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

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_1 = {
	"construct_dynamically",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	1,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_how_to_construct_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_2 = {
	"construct_in_region",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_how_to_construct_0_2,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_cell_to_reuse_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_how_to_construct_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_cell_to_reuse_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_3 = {
	"reuse_cell",
	1,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_how_to_construct_0_3,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_how_to_construct_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_how_to_construct_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_how_to_construct_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_3

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_how_to_construct_0[] = {
	{ 2, MR_SECTAG_LOCAL,
	mercury_data_hlds__hlds_goal__du_stag_ordered_how_to_construct_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_how_to_construct_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_how_to_construct_0_2 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_how_to_construct_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_how_to_construct_0_3
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_how_to_construct_0[] = {
	2,
	0,
	1,
	3 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_how_to_construct_0 = {
	0,
	14,
	3,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__how_to_construct_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__how_to_construct_0_0)),
	"hlds.hlds_goal",
	"how_to_construct",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_how_to_construct_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_how_to_construct_0 },
	4,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_how_to_construct_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_is_conditional_0_0 = {
	"conditional_reuse",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_is_conditional_0_1 = {
	"unconditional_reuse",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_is_conditional_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_conditional_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_conditional_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_is_conditional_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_conditional_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_conditional_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_is_conditional_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__is_conditional_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__is_conditional_0_0)),
	"hlds.hlds_goal",
	"is_conditional",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_is_conditional_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_is_conditional_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_is_conditional_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;
extern const MR_TypeCtorInfo_Struct mercury_data_bool__type_ctor_info_bool_0;

const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_is_existential_construction_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__is_existential_construction_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__is_existential_construction_0_0)),
	"hlds.hlds_goal",
	"is_existential_construction",
	{ 0 },
	{ (void *)&mercury_data_bool__type_ctor_info_bool_0 },
	-1,
	0,
	NULL
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_is_first_disjunct_0_0 = {
	"is_first_disjunct",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_is_first_disjunct_0_1 = {
	"is_not_first_disjunct",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_is_first_disjunct_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_first_disjunct_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_first_disjunct_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_is_first_disjunct_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_first_disjunct_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_is_first_disjunct_0_1
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_is_first_disjunct_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_is_first_disjunct_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__is_first_disjunct_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__is_first_disjunct_0_0)),
	"hlds.hlds_goal",
	"is_first_disjunct",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_is_first_disjunct_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_is_first_disjunct_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_is_first_disjunct_0
};

const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_missed_message_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__missed_message_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__missed_message_0_0)),
	"hlds.hlds_goal",
	"missed_message",
	{ 0 },
	{ (void *)&mercury_data_builtin__type_ctor_info_string_0 },
	-1,
	0,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_mode_constr_goal_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_mode_constr_goal_info_0_0[] = {
	"mci_occurring_vars",
	"mci_producing_vars",
	"mci_consuming_vars",
	"mci_make_visible_vars",
	"mci_need_visible_vars"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_mode_constr_goal_info_0_0 = {
	"mode_constr_goal_info",
	5,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_mode_constr_goal_info_0_0,
	mercury_data_hlds__hlds_goal__field_names_mode_constr_goal_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_mode_constr_goal_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_mode_constr_goal_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_mode_constr_goal_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_mode_constr_goal_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_mode_constr_goal_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_mode_constr_goal_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_mode_constr_goal_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0)),
	"hlds.hlds_goal",
	"mode_constr_goal_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_mode_constr_goal_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_mode_constr_goal_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_mode_constr_goal_info_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_needs_update_0_0 = {
	"needs_update",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_needs_update_0_1 = {
	"does_not_need_update",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_needs_update_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_needs_update_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_needs_update_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_needs_update_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_needs_update_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_needs_update_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_needs_update_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_needs_update_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__needs_update_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__needs_update_0_0)),
	"hlds.hlds_goal",
	"needs_update",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_needs_update_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_needs_update_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_needs_update_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_port_counts_give_coverage_after_0_0 = {
	"port_counts_give_coverage_after",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_port_counts_give_coverage_after_0_1 = {
	"no_port_counts_give_coverage_after",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_port_counts_give_coverage_after_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_port_counts_give_coverage_after_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_port_counts_give_coverage_after_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_port_counts_give_coverage_after_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_port_counts_give_coverage_after_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_port_counts_give_coverage_after_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_port_counts_give_coverage_after_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_port_counts_give_coverage_after_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__port_counts_give_coverage_after_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__port_counts_give_coverage_after_0_0)),
	"hlds.hlds_goal",
	"port_counts_give_coverage_after",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_port_counts_give_coverage_after_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_port_counts_give_coverage_after_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_port_counts_give_coverage_after_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_0 = {
	"equivalent_solutions",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_1 = {
	"equivalent_solution_sets",
	1
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_2 = {
	"equivalent_solution_sets_arbitrary",
	2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_promise_solutions_kind_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_2
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_promise_solutions_kind_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_2,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_promise_solutions_kind_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_promise_solutions_kind_0[] = {
	2,
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_promise_solutions_kind_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__promise_solutions_kind_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__promise_solutions_kind_0_0)),
	"hlds.hlds_goal",
	"promise_solutions_kind",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_promise_solutions_kind_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_promise_solutions_kind_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_promise_solutions_kind_0
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_rbmm_goal_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_rbmm_goal_info_0_0[] = {
	"created_regions",
	"removed_regions",
	"carried_regions",
	"allocated_into_regions",
	"used_regions"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_rbmm_goal_info_0_0 = {
	"rbmm_goal_info",
	5,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_rbmm_goal_info_0_0,
	mercury_data_hlds__hlds_goal__field_names_rbmm_goal_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_rbmm_goal_info_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_rbmm_goal_info_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_rbmm_goal_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_rbmm_goal_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_rbmm_goal_info_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_rbmm_goal_info_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_rbmm_goal_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0)),
	"hlds.hlds_goal",
	"rbmm_goal_info",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_rbmm_goal_info_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_rbmm_goal_info_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_rbmm_goal_info_0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_removable_0_0 = {
	"removable",
	0
};

static const MR_EnumFunctorDesc mercury_data_hlds__hlds_goal__enum_functor_desc_removable_0_1 = {
	"not_removable",
	1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_value_ordered_removable_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_removable_0_0,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_removable_0_1
};

const MR_EnumFunctorDescPtr mercury_data_hlds__hlds_goal__enum_name_ordered_removable_0[] = {
	&mercury_data_hlds__hlds_goal__enum_functor_desc_removable_0_1,
	&mercury_data_hlds__hlds_goal__enum_functor_desc_removable_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_removable_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_removable_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__removable_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__removable_0_0)),
	"hlds.hlds_goal",
	"removable",
	{ (void *)mercury_data_hlds__hlds_goal__enum_name_ordered_removable_0 },
	{ (void *)mercury_data_hlds__hlds_goal__enum_value_ordered_removable_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_removable_0
};

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

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_1 = {
	"no_possible_reuse",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	1,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1builtin__type_ctor_info_string_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_string_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_reuse_description_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1builtin__type_ctor_info_string_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_2 = {
	"missed_reuse",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_reuse_description_0_2,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_reuse_description_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_3 = {
	"potential_reuse",
	1,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_reuse_description_0_3,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_reuse_description_0_4[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_4 = {
	"reuse",
	1,
	0,
	MR_SECTAG_NONE,
	3,
	-1,
	4,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_reuse_description_0_4,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_3

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_3[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_4

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_reuse_description_0[] = {
	{ 2, MR_SECTAG_LOCAL,
	mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_2 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_reuse_description_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_reuse_description_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_reuse_description_0_4
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_reuse_description_0[] = {
	2,
	1,
	0,
	3,
	4 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_reuse_description_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__reuse_description_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__reuse_description_0_0)),
	"hlds.hlds_goal",
	"reuse_description",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_reuse_description_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_reuse_description_0 },
	5,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_reuse_description_0
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_0 = {
	"exist_quant",
	1,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_0,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_promise_solutions_kind_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_promise_solutions_kind_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_1 = {
	"promise_solutions",
	2,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_1,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_purity_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_2 = {
	"promise_purity",
	1,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_2,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_3 = {
	"require_detism",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	0,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_3,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_4[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_4 = {
	"require_complete_switch",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	1,
	4,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_4,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_force_pruning_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_5[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_force_pruning_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_5 = {
	"commit",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	2,
	5,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_5,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_removable_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_6[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_removable_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_6 = {
	"barrier",
	1,
	0,
	MR_SECTAG_REMOTE,
	3,
	3,
	6,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_6,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_from_ground_term_kind_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_7[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_from_ground_term_kind_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_7 = {
	"from_ground_term",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	4,
	7,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_7,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_trace_compiletime_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_compiletime_0 = {
	&mercury_data_parse_tree__prog_data__type_ctor_info_trace_expr_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_trace_compiletime_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_compiletime_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_compiletime_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1builtin__type_ctor_info_string_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_string_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_scope_reason_0_8[] = {
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_compiletime_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1parse_tree__prog_data__ti_trace_expr_1parse_tree__prog_data__type_ctor_info_trace_runtime_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1builtin__type_ctor_info_string_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_scope_reason_0_8[] = {
	"trace_compiletime",
	"trace_runtime",
	"trace_maybe_io",
	"trace_mutable_vars",
	"trace_quant_vars"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_8 = {
	"trace_goal",
	5,
	0,
	MR_SECTAG_REMOTE,
	3,
	5,
	8,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_scope_reason_0_8,
	mercury_data_hlds__hlds_goal__field_names_scope_reason_0_8,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_3[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_4,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_5,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_6,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_7,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_8

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_scope_reason_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_2 },
	{ 6, MR_SECTAG_REMOTE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_scope_reason_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_scope_reason_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_6,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_5,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_7,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_4,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_scope_reason_0_8
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_scope_reason_0[] = {
	2,
	5,
	4,
	7,
	6,
	1,
	0,
	3,
	8 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_scope_reason_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__scope_reason_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__scope_reason_0_0)),
	"hlds.hlds_goal",
	"scope_reason",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_scope_reason_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_scope_reason_0 },
	9,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_scope_reason_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_0 = {
	"cell_died",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	0,
	0,
	(MR_PseudoTypeInfo *) NULL,
	NULL,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_short_reuse_description_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_needs_update_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_1 = {
	"cell_reused",
	4,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_short_reuse_description_0_1,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_short_reuse_description_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_2 = {
	"reuse_call",
	2,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_short_reuse_description_0_2,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_short_reuse_description_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_short_reuse_description_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_short_reuse_description_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_2

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_short_reuse_description_0[] = {
	{ 1, MR_SECTAG_LOCAL,
	mercury_data_hlds__hlds_goal__du_stag_ordered_short_reuse_description_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_short_reuse_description_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_short_reuse_description_0_2 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_short_reuse_description_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_short_reuse_description_0_2
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_short_reuse_description_0[] = {
	0,
	1,
	2 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0 = {
	0,
	14,
	3,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__short_reuse_description_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__short_reuse_description_0_0)),
	"hlds.hlds_goal",
	"short_reuse_description",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_short_reuse_description_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_short_reuse_description_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_short_reuse_description_0
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_shorthand_goal_expr_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_0 = {
	"bi_implication",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_shorthand_goal_expr_0_0,
	NULL,
	NULL
};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_atomic_goal_type_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_shorthand_goal_expr_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_atomic_goal_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0,
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_hlds_goal_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_shorthand_goal_expr_0_1[] = {
	"atomic_goal_type",
	"atomic_outer",
	"atomic_inner",
	"atomic_output_vars",
	"atomic_main_goal",
	"orelse_alternatives",
	"orelse_inners"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_1 = {
	"atomic_goal",
	7,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_shorthand_goal_expr_0_1,
	mercury_data_hlds__hlds_goal__field_names_shorthand_goal_expr_0_1,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_try_io_state_vars_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_try_io_state_vars_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_try_io_state_vars_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_shorthand_goal_expr_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_maybe__ti_maybe_1hlds__hlds_goal__type_ctor_info_try_io_state_vars_0,
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_shorthand_goal_expr_0_2[] = {
	"try_maybe_io",
	"try_result_var",
	"try_goal"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_2 = {
	"try_goal",
	3,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_shorthand_goal_expr_0_2,
	mercury_data_hlds__hlds_goal__field_names_shorthand_goal_expr_0_2,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_shorthand_goal_expr_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_shorthand_goal_expr_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_shorthand_goal_expr_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_2

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_shorthand_goal_expr_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_shorthand_goal_expr_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_shorthand_goal_expr_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_shorthand_goal_expr_0_2 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_shorthand_goal_expr_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_shorthand_goal_expr_0_2
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_shorthand_goal_expr_0[] = {
	1,
	0,
	2 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_shorthand_goal_expr_0 = {
	0,
	14,
	3,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0)),
	"hlds.hlds_goal",
	"shorthand_goal_expr",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_shorthand_goal_expr_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_shorthand_goal_expr_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_shorthand_goal_expr_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_tagged_cons_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_data__type_ctor_info_tagged_cons_id_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_data__type_ctor_info_tagged_cons_id_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_data__type_ctor_info_tagged_cons_id_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_tagged_case_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_data__type_ctor_info_tagged_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_data__type_ctor_info_tagged_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_tagged_case_0_0[] = {
	"tagged_case_first_functor",
	"tagged_case_later_functors",
	"tagged_case_id",
	"tagged_case_goal"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_tagged_case_0_0 = {
	"tagged_case",
	4,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_tagged_case_0_0,
	mercury_data_hlds__hlds_goal__field_names_tagged_case_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_tagged_case_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_tagged_case_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_tagged_case_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_tagged_case_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_tagged_case_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_tagged_case_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_tagged_case_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_tagged_case_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__tagged_case_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__tagged_case_0_0)),
	"hlds.hlds_goal",
	"tagged_case",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_tagged_case_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_tagged_case_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_tagged_case_0
};

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

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_term_size_value_0_0 = {
	"known_size",
	1,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_term_size_value_0_0,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_term_size_value_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_term_size_value_0_1 = {
	"dynamic_size",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_term_size_value_0_1,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_term_size_value_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_term_size_value_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_term_size_value_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_term_size_value_0_1

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_term_size_value_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_term_size_value_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_term_size_value_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_term_size_value_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_term_size_value_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_term_size_value_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_term_size_value_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_term_size_value_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__term_size_value_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__term_size_value_0_0)),
	"hlds.hlds_goal",
	"term_size_value",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_term_size_value_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_term_size_value_0 },
	2,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_term_size_value_0
};

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

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_trace_mutable_var_hlds_0_0[] = {
	"tmvh_mutable_name",
	"tmvh_state_var_name"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_trace_mutable_var_hlds_0_0 = {
	"trace_mutable_var_hlds",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_trace_mutable_var_hlds_0_0,
	mercury_data_hlds__hlds_goal__field_names_trace_mutable_var_hlds_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_trace_mutable_var_hlds_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_trace_mutable_var_hlds_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_trace_mutable_var_hlds_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_trace_mutable_var_hlds_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_trace_mutable_var_hlds_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_trace_mutable_var_hlds_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_trace_mutable_var_hlds_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0)),
	"hlds.hlds_goal",
	"trace_mutable_var_hlds",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_trace_mutable_var_hlds_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_trace_mutable_var_hlds_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_trace_mutable_var_hlds_0
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_try_io_state_vars_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_try_io_state_vars_0_0[] = {
	"try_io_initial",
	"try_io_final"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_try_io_state_vars_0_0 = {
	"try_io_state_vars",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_try_io_state_vars_0_0,
	mercury_data_hlds__hlds_goal__field_names_try_io_state_vars_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_try_io_state_vars_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_try_io_state_vars_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_try_io_state_vars_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_try_io_state_vars_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_try_io_state_vars_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_try_io_state_vars_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_try_io_state_vars_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_try_io_state_vars_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__try_io_state_vars_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__try_io_state_vars_0_0)),
	"hlds.hlds_goal",
	"try_io_state_vars",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_try_io_state_vars_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_try_io_state_vars_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_try_io_state_vars_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0;

static const MR_FA_TypeInfo_Struct2 mercury_data_pair__ti_pair_2parse_tree__prog_data__type_ctor_info_mer_inst_0parse_tree__prog_data__type_ctor_info_mer_inst_0 = {
	&mercury_data_pair__type_ctor_info_pair_2,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0,
	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0
}};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_uni_mode_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_pair__ti_pair_2parse_tree__prog_data__type_ctor_info_mer_inst_0parse_tree__prog_data__type_ctor_info_mer_inst_0,
	(MR_PseudoTypeInfo) &mercury_data_pair__ti_pair_2parse_tree__prog_data__type_ctor_info_mer_inst_0parse_tree__prog_data__type_ctor_info_mer_inst_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_uni_mode_0_0 = {
	"->",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_uni_mode_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_uni_mode_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_uni_mode_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_uni_mode_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_uni_mode_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_uni_mode_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_uni_mode_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_uni_mode_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__uni_mode_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__uni_mode_0_0)),
	"hlds.hlds_goal",
	"uni_mode",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_uni_mode_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_uni_mode_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_uni_mode_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0;

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_uni_mode_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_how_to_construct_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_cell_is_unique_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_construct_sub_info_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unification_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_uni_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_how_to_construct_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_cell_is_unique_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_construct_sub_info_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unification_0_0[] = {
	"construct_cell_var",
	"construct_cons_id",
	"construct_args",
	"construct_arg_modes",
	"construct_how",
	"construct_is_unique",
	"construct_sub_info"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_0 = {
	"construct",
	7,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unification_0_0,
	mercury_data_hlds__hlds_goal__field_names_unification_0_0,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_can_cgc_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unification_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_uni_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_can_fail_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_can_cgc_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unification_0_1[] = {
	"deconstruct_cell_var",
	"deconstruct_cons_id",
	"deconstruct_args",
	"deconstruct_arg_modes",
	"deconstruct_can_fail",
	"deconstruct_can_cgc"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_1 = {
	"deconstruct",
	6,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unification_0_1,
	mercury_data_hlds__hlds_goal__field_names_unification_0_1,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unification_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unification_0_2[] = {
	"assign_to_var",
	"assign_from_var"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_2 = {
	"assign",
	2,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unification_0_2,
	mercury_data_hlds__hlds_goal__field_names_unification_0_2,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unification_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unification_0_3[] = {
	"test_var1",
	"test_var2"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_3 = {
	"simple_test",
	2,
	0,
	MR_SECTAG_REMOTE,
	3,
	0,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unification_0_3,
	mercury_data_hlds__hlds_goal__field_names_unification_0_3,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unification_0_4[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_can_fail_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unification_0_4[] = {
	"compl_unify_mode",
	"compl_unify_can_fail",
	"compl_unify_typeinfos"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_4 = {
	"complicated_unify",
	3,
	0,
	MR_SECTAG_REMOTE,
	3,
	1,
	4,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unification_0_4,
	mercury_data_hlds__hlds_goal__field_names_unification_0_4,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_3[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_4

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_unification_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_2 },
	{ 2, MR_SECTAG_REMOTE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unification_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_unification_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_4,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unification_0_3
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_unification_0[] = {
	2,
	3,
	0,
	4,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unification_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unification_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unification_0_0)),
	"hlds.hlds_goal",
	"unification",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_unification_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_unification_0 },
	5,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_unification_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_hlds__hlds_goal__type_ctor_info_unify_main_context_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unify_context_0_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__hlds_goal__du_functor_desc_unify_context_0_0 = {
	"unify_context",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_context_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_context_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_context_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_context_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_context_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_unify_context_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_context_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_unify_context_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unify_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unify_context_0_0)),
	"hlds.hlds_goal",
	"unify_context",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_unify_context_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_context_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_unify_context_0
};

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

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

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_1 = {
	"umc_head",
	1,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_main_context_0_1,
	NULL,
	NULL
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_2 = {
	"umc_head_result",
	0,
	0,
	MR_SECTAG_LOCAL,
	0,
	1,
	2,
	(MR_PseudoTypeInfo *) NULL,
	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__hlds_goal__field_types_unify_main_context_0_3[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_call_id_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_3 = {
	"umc_call",
	2,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	3,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_main_context_0_3,
	NULL,
	NULL
};

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

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_4 = {
	"umc_implicit",
	1,
	0,
	MR_SECTAG_NONE,
	3,
	-1,
	4,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_main_context_0_4,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_2

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_3

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_3[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_4

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_main_context_0[] = {
	{ 2, MR_SECTAG_LOCAL,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_2 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_main_context_0_3 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_unify_main_context_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_3,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_0,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_main_context_0_4
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_unify_main_context_0[] = {
	1,
	2,
	3,
	0,
	4 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0 = {
	0,
	14,
	4,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unify_main_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unify_main_context_0_0)),
	"hlds.hlds_goal",
	"unify_main_context",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_unify_main_context_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_main_context_0 },
	5,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_unify_main_context_0
};

const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_mode_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unify_mode_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unify_mode_0_0)),
	"hlds.hlds_goal",
	"unify_mode",
	{ 0 },
	{ (void *)&mercury_data_pair__ti_pair_2parse_tree__prog_data__type_ctor_info_mer_mode_0parse_tree__prog_data__type_ctor_info_mer_mode_0 },
	-1,
	0,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unify_rhs_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_0 = {
	"rhs_var",
	1,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_rhs_0_0,
	NULL,
	NULL
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unify_rhs_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_bool__type_ctor_info_bool_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unify_rhs_0_1[] = {
	"rhs_functor",
	"rhs_is_exist_constr",
	"rhs_args"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_1 = {
	"rhs_functor",
	3,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_rhs_0_1,
	mercury_data_hlds__hlds_goal__field_names_unify_rhs_0_1,
	NULL
};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_ho_groundness_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_lambda_eval_method_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_ho_groundness_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_lambda_eval_method_0;

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unify_rhs_0_2[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_purity_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_ho_groundness_0,
	(MR_PseudoTypeInfo) &mercury_data_mdbcomp__prim_data__type_ctor_info_pred_or_func_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_lambda_eval_method_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_determinism_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0
};

const MR_ConstString mercury_data_hlds__hlds_goal__field_names_unify_rhs_0_2[] = {
	"rhs_purity",
	"rhs_groundness",
	"rhs_p_or_f",
	"rhs_eval_method",
	"rhs_nonlocals",
	"rhs_lambda_quant_vars",
	"rhs_lambda_modes",
	"rhs_detism",
	"rhs_lambda_goal"
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_2 = {
	"rhs_lambda_goal",
	9,
	0,
	MR_SECTAG_NONE,
	2,
	-1,
	2,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_rhs_0_2,
	mercury_data_hlds__hlds_goal__field_names_unify_rhs_0_2,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_rhs_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_0

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_rhs_0_1[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_1

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_rhs_0_2[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_2

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_rhs_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_rhs_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_rhs_0_1 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_rhs_0_2 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_unify_rhs_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_1,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_2,
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_rhs_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_unify_rhs_0[] = {
	2,
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0 = {
	0,
	14,
	3,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unify_rhs_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unify_rhs_0_0)),
	"hlds.hlds_goal",
	"unify_rhs",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_unify_rhs_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_rhs_0 },
	3,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_unify_rhs_0
};

const MR_PseudoTypeInfo mercury_data_hlds__hlds_goal__field_types_unify_sub_context_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_cons_id_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0
};

static const MR_DuFunctorDesc mercury_data_hlds__hlds_goal__du_functor_desc_unify_sub_context_0_0 = {
	"unify_sub_context",
	2,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_hlds__hlds_goal__field_types_unify_sub_context_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_stag_ordered_unify_sub_context_0_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_sub_context_0_0

};

const MR_DuPtagLayout mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_sub_context_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_hlds__hlds_goal__du_stag_ordered_unify_sub_context_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_hlds__hlds_goal__du_name_ordered_unify_sub_context_0[] = {
	&mercury_data_hlds__hlds_goal__du_functor_desc_unify_sub_context_0_0
};

const MR_Integer mercury_data_hlds__hlds_goal__functor_number_map_unify_sub_context_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unify_sub_context_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unify_sub_context_0_0)),
	"hlds.hlds_goal",
	"unify_sub_context",
	{ (void *)mercury_data_hlds__hlds_goal__du_name_ordered_unify_sub_context_0 },
	{ (void *)mercury_data_hlds__hlds_goal__du_ptag_ordered_unify_sub_context_0 },
	1,
	4,
	mercury_data_hlds__hlds_goal__functor_number_map_unify_sub_context_0
};

const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_contexts_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___hlds__hlds_goal__unify_sub_contexts_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___hlds__hlds_goal__unify_sub_contexts_0_0)),
	"hlds.hlds_goal",
	"unify_sub_contexts",
	{ 0 },
	{ (void *)&mercury_data_list__ti_list_1hlds__hlds_goal__type_ctor_info_unify_sub_context_0 },
	-1,
	0,
	NULL
};


static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_4 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"set_case_contexts",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3418,
"26"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_3 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"set_goal_contexts",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3441,
"50"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_2 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"set_goal_contexts",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3408,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__set_goal_contexts_3_0_1 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"set_goal_contexts",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3404,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_purity_2_0_1 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"lambda_hlds_goal_m_3390",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3390,
"4"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_determinism_2_0_1 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"lambda_hlds_goal_m_3382",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3382,
"4"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_instmap_delta_2_0_1 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"lambda_hlds_goal_m_3373",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3373,
"4"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__goal_list_nonlocals_2_0_1 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"lambda_hlds_goal_m_3364",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
3364,
"4"
};

static const MR_UserClosureId
mercury_data__closure_layout__hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_1 = {
{
MR_PREDICATE,
"hlds.hlds_goal",
"hlds.hlds_goal",
"follow_subn_until_fixpoint",
3,
0
},
"hlds.hlds_goal",
"hlds_goal.m",
2670,
"34"
};



MR_BEGIN_MODULE(hlds__hlds_goal_module0)
	MR_init_entry1(fn__hlds__hlds_goal__get_hlds_goal_expr_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__get_hlds_goal_expr_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_hlds_goal_expr'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__get_hlds_goal_expr_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module1)
	MR_init_entry1(fn__hlds__hlds_goal__get_hlds_goal_info_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__get_hlds_goal_info_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_hlds_goal_info'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__get_hlds_goal_info_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module2)
	MR_init_entry1(fn__hlds__hlds_goal__foreign_arg_var_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__foreign_arg_var_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'foreign_arg_var'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__foreign_arg_var_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module3)
	MR_init_entry1(fn__hlds__hlds_goal__foreign_arg_maybe_name_mode_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__foreign_arg_maybe_name_mode_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'foreign_arg_maybe_name_mode'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__foreign_arg_maybe_name_mode_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module4)
	MR_init_entry1(fn__hlds__hlds_goal__foreign_arg_type_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__foreign_arg_type_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'foreign_arg_type'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__foreign_arg_type_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module5)
	MR_init_entry1(fn__hlds__hlds_goal__foreign_arg_box_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__foreign_arg_box_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'foreign_arg_box'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__foreign_arg_box_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 3);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module6)
	MR_init_entry1(hlds__hlds_goal__make_foreign_args_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_foreign_args_4_0);
	MR_init_label3(hlds__hlds_goal__make_foreign_args_4_0,6,2,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_foreign_args'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_foreign_args_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_foreign_args_4_0_i2);
	}
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_foreign_args_4_0_i2);
	}
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_foreign_args_4_0_i2);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_sv(2) = MR_tfield(1, MR_r2, 0);
	MR_sv(3) = MR_tfield(1, MR_r3, 0);
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = MR_tfield(1, MR_r2, 1);
	MR_r3 = MR_tfield(1, MR_r3, 1);
	MR_np_localcall_lab(hlds__hlds_goal__make_foreign_args_4_0,
		hlds__hlds_goal__make_foreign_args_4_0_i6);
MR_def_label(hlds__hlds_goal__make_foreign_args_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(3);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr2, 1);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(4);
	}
MR_def_label(hlds__hlds_goal__make_foreign_args_4_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_foreign_args_4_0_i9);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_foreign_args_4_0_i9);
	}
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_foreign_args_4_0_i9);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__hlds_goal__make_foreign_args_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.hlds_goal", 14);
	MR_r2 = (MR_Word) MR_string_const("predicate \140hlds.hlds_goal.make_foreign_args\'/4", 46);
	MR_r3 = (MR_Word) MR_string_const("unmatched lists", 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__hlds_goal_module7)
	MR_init_entry1(hlds__hlds_goal__generic_call_id_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__generic_call_id_2_0);
	MR_init_label3(hlds__hlds_goal__generic_call_id_2_0,3,6,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generic_call_id'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__generic_call_id_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,3)) {
		MR_GOTO_LAB(hlds__hlds_goal__generic_call_id_2_0_i3);
	}
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 1);
	MR_tfield(3, MR_r2, 0) = MR_tfield(3, MR_r1, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_proceed();
MR_def_label(hlds__hlds_goal__generic_call_id_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__generic_call_id_2_0_i6);
	}
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tfield(1, MR_r1, 2);
	MR_tfield(1, MR_r2, 1) = MR_tfield(1, MR_r1, 3);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_proceed();
MR_def_label(hlds__hlds_goal__generic_call_id_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__generic_call_id_2_0_i9);
	}
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_r2, 0) = MR_tfield(2, MR_r1, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_proceed();
MR_def_label(hlds__hlds_goal__generic_call_id_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 2);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_r1, 3);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = 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__hlds_goal_module8)
	MR_init_entry1(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__generic_call_pred_or_func_1_0);
	MR_init_label3(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0,3,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generic_call_pred_or_func'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__generic_call_pred_or_func_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,3)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0_i3);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0_i4);
	}
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r1, 3), 0);
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0_i5);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__generic_call_pred_or_func_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__set__init_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module9)
	MR_init_entry1(fn__hlds__hlds_goal__rbmm_info_init_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__rbmm_info_init_0_0);
	MR_init_label5(fn__hlds__hlds_goal__rbmm_info_init_0_0,3,4,5,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rbmm_info_init'/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_define_entry(mercury__fn__hlds__hlds_goal__rbmm_info_init_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__rbmm_info_init_0_0_i3);
MR_def_label(fn__hlds__hlds_goal__rbmm_info_init_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__rbmm_info_init_0_0_i4);
MR_def_label(fn__hlds__hlds_goal__rbmm_info_init_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__rbmm_info_init_0_0_i5);
MR_def_label(fn__hlds__hlds_goal__rbmm_info_init_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__rbmm_info_init_0_0_i6);
MR_def_label(fn__hlds__hlds_goal__rbmm_info_init_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__rbmm_info_init_0_0_i7);
MR_def_label(fn__hlds__hlds_goal__rbmm_info_init_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(1);
	MR_tfield(0, MR_r2, 2) = MR_sv(2);
	MR_tfield(0, MR_r2, 3) = MR_sv(3);
	MR_tfield(0, MR_r2, 4) = MR_sv(4);
	MR_r1 = MR_r2;
	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(hlds__instmap__instmap_delta_init_unreachable_1_0);
MR_decl_entry(set__init_1_0);
MR_decl_entry(term__context_init_1_0);
MR_decl_entry(fn__map__init_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module10)
	MR_init_entry1(hlds__hlds_goal__goal_info_init_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_init_1_0);
	MR_init_label5(hlds__hlds_goal__goal_info_init_1_0,2,4,5,6,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_init'/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_define_entry(mercury__hlds__hlds_goal__goal_info_init_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		hlds__hlds_goal__goal_info_init_1_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_init_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_init_1_0_i4);
MR_def_label(hlds__hlds_goal__goal_info_init_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(term__context_init_1_0,
		hlds__hlds_goal__goal_info_init_1_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_init_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_init_1_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_init_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(5) = (MR_Integer) -1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_np_call_localret_ent(fn__map__init_0_0,
		hlds__hlds_goal__goal_info_init_1_0_i8);
MR_def_label(hlds__hlds_goal__goal_info_init_1_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = (MR_Integer) 6;
	MR_tfield(0, MR_r1, 1) = MR_sv(1);
	MR_tfield(0, MR_r1, 2) = MR_sv(2);
	MR_tfield(0, MR_r1, 3) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 4) = MR_sv(4);
	MR_tfield(0, MR_r1, 5) = MR_sv(5);
	MR_tfield(0, MR_r1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module11)
	MR_init_entry1(hlds__hlds_goal__goal_info_init_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_init_2_0);
	MR_init_label4(hlds__hlds_goal__goal_info_init_2_0,2,4,5,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_init'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_info_init_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		hlds__hlds_goal__goal_info_init_2_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_init_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_init_2_0_i4);
MR_def_label(hlds__hlds_goal__goal_info_init_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_init_2_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_init_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(5) = (MR_Integer) -1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_np_call_localret_ent(fn__map__init_0_0,
		hlds__hlds_goal__goal_info_init_2_0_i7);
MR_def_label(hlds__hlds_goal__goal_info_init_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = (MR_Integer) 6;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_tfield(0, MR_r1, 2) = MR_sv(3);
	MR_tfield(0, MR_r1, 3) = (MR_Integer) 0;
	MR_tfield(0, MR_r1, 4) = MR_sv(4);
	MR_tfield(0, MR_r1, 5) = MR_sv(5);
	MR_tfield(0, MR_r1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module12)
	MR_init_entry1(hlds__hlds_goal__goal_info_init_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_init_5_0);
	MR_init_label3(hlds__hlds_goal__goal_info_init_5_0,2,3,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_init'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_info_init_5_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_init_5_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_init_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(term__context_init_1_0,
		hlds__hlds_goal__goal_info_init_5_0_i3);
MR_def_label(hlds__hlds_goal__goal_info_init_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_sv(7) = (MR_Integer) -1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_np_call_localret_ent(fn__map__init_0_0,
		hlds__hlds_goal__goal_info_init_5_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_init_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(6);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(3);
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_tfield(0, MR_r1, 2) = MR_sv(1);
	MR_tfield(0, MR_r1, 3) = MR_sv(4);
	MR_tfield(0, MR_r1, 4) = MR_sv(5);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(8);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module13)
	MR_init_entry1(hlds__hlds_goal__goal_info_init_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_init_6_0);
	MR_init_label2(hlds__hlds_goal__goal_info_init_6_0,2,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_init'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_info_init_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_init_6_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_init_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_sv(7) = (MR_Integer) -1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_np_call_localret_ent(fn__map__init_0_0,
		hlds__hlds_goal__goal_info_init_6_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_init_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(3);
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_tfield(0, MR_r1, 2) = MR_sv(1);
	MR_tfield(0, MR_r1, 3) = MR_sv(4);
	MR_tfield(0, MR_r1, 4) = MR_sv(6);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(8);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module14)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_features_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_features_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_features'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_features_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 4);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module15)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_features_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_features_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_features'/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__hlds__hlds_goal__goal_info_set_features_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(set__insert_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module16)
	MR_init_entry1(hlds__hlds_goal__goal_info_add_feature_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_add_feature_3_0);
	MR_init_label1(hlds__hlds_goal__goal_info_add_feature_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_add_feature'/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__hlds__hlds_goal__goal_info_add_feature_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_sv(1), 4);
	}
	MR_np_call_localret_ent(set__insert_3_0,
		hlds__hlds_goal__goal_info_add_feature_3_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_add_feature_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module17)
	MR_init_entry1(fn__hlds__hlds_goal__impure_init_goal_info_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__impure_init_goal_info_3_0);
	MR_init_label2(fn__hlds__hlds_goal__impure_init_goal_info_3_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'impure_init_goal_info'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__impure_init_goal_info_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_r4 = (MR_Integer) 2;
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		fn__hlds__hlds_goal__impure_init_goal_info_3_0_i2);
MR_def_label(fn__hlds__hlds_goal__impure_init_goal_info_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = (MR_Integer) 2;
	MR_r3 = MR_tfield(0, MR_sv(1), 4);
	MR_np_call_localret_ent(set__insert_3_0,
		fn__hlds__hlds_goal__impure_init_goal_info_3_0_i3);
MR_def_label(fn__hlds__hlds_goal__impure_init_goal_info_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__instmap__instmap_delta_init_reachable_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module18)
	MR_init_entry1(fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0);
	MR_init_label1(fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'impure_reachable_init_goal_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_reachable_1_0,
		fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0_i2);
MR_def_label(fn__hlds__hlds_goal__impure_reachable_init_goal_info_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = (MR_Integer) 2;
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_init_5_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__hlds_goal_module19)
	MR_init_entry1(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0);
	MR_init_label3(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0,2,3,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'impure_unreachable_init_goal_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0_i2);
MR_def_label(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = (MR_Integer) 2;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0_i3);
MR_def_label(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = (MR_Integer) 2;
	MR_r3 = MR_tfield(0, MR_sv(1), 4);
	MR_np_call_localret_ent(set__insert_3_0,
		fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0_i4);
MR_def_label(fn__hlds__hlds_goal__impure_unreachable_init_goal_info_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module20)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_purity_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_purity_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_purity'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_purity_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 3);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module21)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_purity_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_purity_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_purity'/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__hlds__hlds_goal__goal_info_set_purity_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module22)
	MR_init_entry1(hlds__hlds_goal__make_impure_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_impure_2_0);
	MR_init_label2(hlds__hlds_goal__make_impure_2_0,5,14)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_impure'/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__hlds__hlds_goal__make_impure_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 3);
	if (MR_INT_EQ(MR_r2,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__make_impure_2_0_i14);
	}
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_sv(1) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r1, 2);
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r1, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r1, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r1, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r1, 7);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = (MR_Integer) 2;
	MR_r3 = MR_tfield(0, MR_tempr1, 4);
	}
	MR_np_call_localret_ent(set__insert_3_0,
		hlds__hlds_goal__make_impure_2_0_i5);
MR_def_label(hlds__hlds_goal__make_impure_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
MR_def_label(hlds__hlds_goal__make_impure_2_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module23)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_nonlocals'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module24)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_nonlocals_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_nonlocals_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_nonlocals'/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__hlds__hlds_goal__goal_info_set_nonlocals_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__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_117_110_105_111_110_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module25)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_add_nonlocals_make_impure'/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__fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = MR_tfield(0, MR_sv(1), 2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__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_117_110_105_111_110_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0_i3);
MR_def_label(fn__hlds__hlds_goal__goal_info_add_nonlocals_make_impure_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_r1 = MR_r2;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(hlds__hlds_goal__make_impure_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module26)
	MR_init_entry1(hlds__hlds_goal__add_impurity_if_needed_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__add_impurity_if_needed_3_0);
	MR_init_label1(hlds__hlds_goal__add_impurity_if_needed_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_impurity_if_needed'/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__hlds__hlds_goal__add_impurity_if_needed_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__add_impurity_if_needed_3_0_i3);
	}
	MR_r1 = MR_r2;
	MR_proceed();
MR_def_label(hlds__hlds_goal__add_impurity_if_needed_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_np_tailcall_ent(hlds__hlds_goal__make_impure_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module27)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_determinism_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_determinism_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_determinism'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_determinism_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module28)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_instmap_delta'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module29)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_context_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_context_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_context'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_context_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module30)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_code_gen_nonlocals_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_code_gen_nonlocals_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_code_gen_nonlocals'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_code_gen_nonlocals_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module31)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_goal_id_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_goal_id_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_goal_id'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_goal_id_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 5);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module32)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_reverse_goal_path_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_reverse_goal_path_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_reverse_goal_path'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_reverse_goal_path_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module33)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_code_gen_info_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_code_gen_info_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_code_gen_info'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_code_gen_info_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 6);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module34)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_ho_values_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_ho_values_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_ho_values'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_ho_values_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module35)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_rbmm_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_rbmm_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_rbmm'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_rbmm_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 4);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module36)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_mode_constr_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_mode_constr_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_mode_constr'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_mode_constr_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 5);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module37)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_ctgc_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_ctgc_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_ctgc'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_ctgc_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module38)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_lfu'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__goal_info_get_maybe_lfu_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tfield(0, MR_tfield(1, MR_r2, 0), 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module39)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_lbu'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__goal_info_get_maybe_lbu_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tfield(0, MR_tfield(1, MR_r2, 0), 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module40)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_reuse'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__goal_info_get_maybe_reuse_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tfield(0, MR_tfield(1, MR_r2, 0), 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module41)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_maybe_dp_info_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_dp_info_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_maybe_dp_info'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_maybe_dp_info_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 6);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module42)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_determinism_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_determinism_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_determinism'/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__hlds__hlds_goal__goal_info_set_determinism_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module43)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_instmap_delta_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_instmap_delta_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_instmap_delta'/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__hlds__hlds_goal__goal_info_set_instmap_delta_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module44)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_context_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_context_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_context'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_info_set_context_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module45)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_code_gen_nonlocals_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_code_gen_nonlocals_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_code_gen_nonlocals'/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__hlds__hlds_goal__goal_info_set_code_gen_nonlocals_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module46)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_goal_id_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_goal_id_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_goal_id'/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__hlds__hlds_goal__goal_info_set_goal_id_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_r1;
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module47)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_reverse_goal_path_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_reverse_goal_path_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_reverse_goal_path'/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__hlds__hlds_goal__goal_info_set_reverse_goal_path_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module48)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_code_gen_info_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_code_gen_info_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_code_gen_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_info_set_code_gen_info_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_r2, 7);
	MR_r1 = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module49)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_ho_values_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_ho_values_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_ho_values'/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__hlds__hlds_goal__goal_info_set_ho_values_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module50)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_maybe_rbmm_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_maybe_rbmm_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_maybe_rbmm'/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__hlds__hlds_goal__goal_info_set_maybe_rbmm_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module51)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_maybe_mode_constr_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_maybe_mode_constr_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_maybe_mode_constr'/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__hlds__hlds_goal__goal_info_set_maybe_mode_constr_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_r1;
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module52)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_maybe_ctgc_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_maybe_ctgc_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_maybe_ctgc'/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__hlds__hlds_goal__goal_info_set_maybe_ctgc_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module53)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_lfu_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_lfu_3_0);
	MR_init_label4(hlds__hlds_goal__goal_info_set_lfu_3_0,5,6,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_lfu'/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__hlds__hlds_goal__goal_info_set_lfu_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(16);
	MR_sv(16) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 3);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_lfu_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_r2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 3);
	MR_sv(6) = MR_tfield(0, MR_r2, 4);
	MR_sv(7) = MR_tfield(0, MR_r2, 5);
	MR_sv(8) = MR_tfield(0, MR_r2, 6);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(15) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(15);
	}
	MR_np_call_localret_ent(fn__set__init_0_0,
		hlds__hlds_goal__goal_info_set_lfu_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_lfu_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		hlds__hlds_goal__goal_info_set_lfu_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_lfu_3_0,6)
	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(15);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_lfu_3_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_set_lfu_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tfield(1, MR_r3, 0);
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_r2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 3);
	MR_sv(6) = MR_tfield(0, MR_r2, 4);
	MR_sv(7) = MR_tfield(0, MR_r2, 5);
	MR_sv(8) = MR_tfield(0, MR_r2, 6);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_lfu_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_r1, 2);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_sv(10);
	MR_tfield(0, MR_r2, 2) = MR_sv(11);
	MR_tfield(0, MR_r2, 3) = MR_tempr1;
	MR_tfield(0, MR_r2, 4) = MR_sv(12);
	MR_tfield(0, MR_r2, 5) = MR_sv(13);
	MR_tfield(0, MR_r2, 6) = MR_sv(14);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(6);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = MR_sv(8);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(16);
	}
#ifdef MR_maybe_local_thread_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__hlds_goal_module54)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_lbu_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_lbu_3_0);
	MR_init_label4(hlds__hlds_goal__goal_info_set_lbu_3_0,5,6,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_lbu'/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__hlds__hlds_goal__goal_info_set_lbu_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(16);
	MR_sv(16) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 3);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_lbu_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_r2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 3);
	MR_sv(6) = MR_tfield(0, MR_r2, 4);
	MR_sv(7) = MR_tfield(0, MR_r2, 5);
	MR_sv(8) = MR_tfield(0, MR_r2, 6);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(15) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(15);
	}
	MR_np_call_localret_ent(fn__set__init_0_0,
		hlds__hlds_goal__goal_info_set_lbu_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_lbu_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		hlds__hlds_goal__goal_info_set_lbu_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_lbu_3_0,6)
	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(15);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_lbu_3_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_set_lbu_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tfield(1, MR_r3, 0);
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_r2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 3);
	MR_sv(6) = MR_tfield(0, MR_r2, 4);
	MR_sv(7) = MR_tfield(0, MR_r2, 5);
	MR_sv(8) = MR_tfield(0, MR_r2, 6);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_lbu_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_sv(1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_r1, 2);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_sv(10);
	MR_tfield(0, MR_r2, 2) = MR_sv(11);
	MR_tfield(0, MR_r2, 3) = MR_tempr1;
	MR_tfield(0, MR_r2, 4) = MR_sv(12);
	MR_tfield(0, MR_r2, 5) = MR_sv(13);
	MR_tfield(0, MR_r2, 6) = MR_sv(14);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(6);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = MR_sv(8);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(16);
	}
#ifdef MR_maybe_local_thread_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__hlds_goal_module55)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_reuse_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_reuse_3_0);
	MR_init_label4(hlds__hlds_goal__goal_info_set_reuse_3_0,5,6,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_reuse'/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__hlds__hlds_goal__goal_info_set_reuse_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(16);
	MR_sv(16) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 3);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_reuse_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_r2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 3);
	MR_sv(6) = MR_tfield(0, MR_r2, 4);
	MR_sv(7) = MR_tfield(0, MR_r2, 5);
	MR_sv(8) = MR_tfield(0, MR_r2, 6);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(15) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(15);
	}
	MR_np_call_localret_ent(fn__set__init_0_0,
		hlds__hlds_goal__goal_info_set_reuse_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_reuse_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		hlds__hlds_goal__goal_info_set_reuse_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_reuse_3_0,6)
	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(15);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_reuse_3_0_i2);
MR_def_label(hlds__hlds_goal__goal_info_set_reuse_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tfield(1, MR_r3, 0);
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_sv(3) = MR_tfield(0, MR_r2, 1);
	MR_sv(4) = MR_tfield(0, MR_r2, 2);
	MR_sv(5) = MR_tfield(0, MR_r2, 3);
	MR_sv(6) = MR_tfield(0, MR_r2, 4);
	MR_sv(7) = MR_tfield(0, MR_r2, 5);
	MR_sv(8) = MR_tfield(0, MR_r2, 6);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_reuse_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_r2, 2) = MR_sv(1);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_sv(10);
	MR_tfield(0, MR_r2, 2) = MR_sv(11);
	MR_tfield(0, MR_r2, 3) = MR_tempr1;
	MR_tfield(0, MR_r2, 4) = MR_sv(12);
	MR_tfield(0, MR_r2, 5) = MR_sv(13);
	MR_tfield(0, MR_r2, 6) = MR_sv(14);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(6);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = MR_sv(8);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(16);
	}
#ifdef MR_maybe_local_thread_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__hlds_goal_module56)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_maybe_dp_info_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_maybe_dp_info_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_maybe_dp_info'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_info_set_maybe_dp_info_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tempr2 = MR_tfield(0, MR_r2, 7);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_r2, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_r2, 3);
	MR_tfield(0, MR_r1, 4) = MR_tfield(0, MR_r2, 4);
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_r2, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_r2, 6);
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module57)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_rbmm_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_rbmm_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_rbmm_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_rbmm'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_rbmm_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 4);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_rbmm_1_0_i3);
	}
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	MR_proceed();
	}
MR_def_label(fn__hlds__hlds_goal__goal_info_get_rbmm_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.hlds_goal", 14);
	MR_r2 = (MR_Word) MR_string_const("function \140hlds.hlds_goal.goal_info_get_rbmm\'/1", 46);
	MR_r3 = (MR_Word) MR_string_const("Requesting unavailable RBMM information.", 40);
	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__hlds_goal_module58)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_lfu_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_lfu_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_lfu_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_lfu'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_lfu_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_lfu_1_0_i3);
	}
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_tempr1, 0), 0);
	MR_proceed();
	}
MR_def_label(fn__hlds__hlds_goal__goal_info_get_lfu_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.hlds_goal", 14);
	MR_r2 = (MR_Word) MR_string_const("function \140hlds.hlds_goal.goal_info_get_lfu\'/1", 45);
	MR_r3 = (MR_Word) MR_string_const("Requesting LFU information while CTGC field not set.", 52);
	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__hlds_goal_module59)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_lbu_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_lbu_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_lbu_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_lbu'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_lbu_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_lbu_1_0_i3);
	}
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_tempr1, 0), 1);
	MR_proceed();
	}
MR_def_label(fn__hlds__hlds_goal__goal_info_get_lbu_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.hlds_goal", 14);
	MR_r2 = (MR_Word) MR_string_const("function \140hlds.hlds_goal.goal_info_get_lbu\'/1", 45);
	MR_r3 = (MR_Word) MR_string_const("Requesting LBU information while CTGC field not set.", 52);
	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__hlds_goal_module60)
	MR_init_entry1(fn__hlds__hlds_goal__goal_info_get_reuse_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_info_get_reuse_1_0);
	MR_init_label1(fn__hlds__hlds_goal__goal_info_get_reuse_1_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_reuse'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_info_get_reuse_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 3);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_info_get_reuse_1_0_i3);
	}
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_tempr1, 0), 2);
	MR_proceed();
	}
MR_def_label(fn__hlds__hlds_goal__goal_info_get_reuse_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("hlds.hlds_goal", 14);
	MR_r2 = (MR_Word) MR_string_const("function \140hlds.hlds_goal.goal_info_get_reuse\'/1", 47);
	MR_r3 = (MR_Word) MR_string_const("Requesting reuse information while CTGC field not set.", 54);
	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__hlds_goal_module61)
	MR_init_entry1(hlds__hlds_goal__goal_info_get_occurring_vars_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_get_occurring_vars_2_0);
	MR_init_label1(hlds__hlds_goal__goal_info_get_occurring_vars_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_occurring_vars'/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__hlds__hlds_goal__goal_info_get_occurring_vars_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 5);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_get_occurring_vars_2_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_tailcall_ent(fn__set__init_0_0);
MR_def_label(hlds__hlds_goal__goal_info_get_occurring_vars_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r2, 0), 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module62)
	MR_init_entry1(hlds__hlds_goal__goal_info_get_producing_vars_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_get_producing_vars_2_0);
	MR_init_label1(hlds__hlds_goal__goal_info_get_producing_vars_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_producing_vars'/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__hlds__hlds_goal__goal_info_get_producing_vars_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 5);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_get_producing_vars_2_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_tailcall_ent(fn__set__init_0_0);
MR_def_label(hlds__hlds_goal__goal_info_get_producing_vars_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r2, 0), 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module63)
	MR_init_entry1(hlds__hlds_goal__goal_info_get_consuming_vars_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_get_consuming_vars_2_0);
	MR_init_label1(hlds__hlds_goal__goal_info_get_consuming_vars_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_consuming_vars'/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__hlds__hlds_goal__goal_info_get_consuming_vars_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 5);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_get_consuming_vars_2_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_tailcall_ent(fn__set__init_0_0);
MR_def_label(hlds__hlds_goal__goal_info_get_consuming_vars_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r2, 0), 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module64)
	MR_init_entry1(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_get_make_visible_vars_2_0);
	MR_init_label1(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_make_visible_vars'/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__hlds__hlds_goal__goal_info_get_make_visible_vars_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 5);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_tailcall_ent(fn__set__init_0_0);
MR_def_label(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r2, 0), 3);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module65)
	MR_init_entry1(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_get_need_visible_vars_2_0);
	MR_init_label1(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_need_visible_vars'/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__hlds__hlds_goal__goal_info_get_need_visible_vars_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_r1, 7), 5);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0_i3);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_tailcall_ent(fn__set__init_0_0);
MR_def_label(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r2, 0), 4);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module66)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_occurring_vars_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_occurring_vars_3_0);
	MR_init_label6(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,5,6,7,8,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_occurring_vars'/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__hlds__hlds_goal__goal_info_set_occurring_vars_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 5);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_occurring_vars_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_occurring_vars_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_occurring_vars_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_occurring_vars_3_0_i7);
MR_def_label(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_occurring_vars_3_0_i8);
MR_def_label(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_tfield(0, MR_r2, 2) = MR_sv(3);
	MR_tfield(0, MR_r2, 3) = MR_sv(4);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_occurring_vars_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr2 = MR_tfield(1, MR_r3, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_tempr4 = MR_r4;
	MR_sv(12) = MR_tfield(0, MR_tempr4, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr4, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr4, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_occurring_vars_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(12);
	MR_tfield(0, MR_r2, 1) = MR_sv(13);
	MR_tfield(0, MR_r2, 2) = MR_sv(14);
	MR_tfield(0, MR_r2, 3) = MR_sv(15);
	MR_tfield(0, MR_r2, 4) = MR_sv(16);
	MR_tfield(0, MR_r2, 5) = MR_r1;
	MR_tfield(0, MR_r2, 6) = MR_sv(17);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(5);
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_tfield(0, MR_r1, 2) = MR_sv(7);
	MR_tfield(0, MR_r1, 3) = MR_sv(8);
	MR_tfield(0, MR_r1, 4) = MR_sv(9);
	MR_tfield(0, MR_r1, 5) = MR_sv(10);
	MR_tfield(0, MR_r1, 6) = MR_sv(11);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(18);
#ifdef MR_maybe_local_thread_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__hlds_goal_module67)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_producing_vars_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_producing_vars_3_0);
	MR_init_label6(hlds__hlds_goal__goal_info_set_producing_vars_3_0,5,6,7,8,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_producing_vars'/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__hlds__hlds_goal__goal_info_set_producing_vars_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 5);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_producing_vars_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_producing_vars_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_producing_vars_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_producing_vars_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_producing_vars_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_producing_vars_3_0_i7);
MR_def_label(hlds__hlds_goal__goal_info_set_producing_vars_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_producing_vars_3_0_i8);
MR_def_label(hlds__hlds_goal__goal_info_set_producing_vars_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_sv(1);
	MR_tfield(0, MR_r2, 2) = MR_sv(3);
	MR_tfield(0, MR_r2, 3) = MR_sv(4);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_producing_vars_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_producing_vars_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tempr2 = MR_tfield(1, MR_r3, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_tempr4 = MR_r4;
	MR_sv(12) = MR_tfield(0, MR_tempr4, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr4, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr4, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_producing_vars_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(12);
	MR_tfield(0, MR_r2, 1) = MR_sv(13);
	MR_tfield(0, MR_r2, 2) = MR_sv(14);
	MR_tfield(0, MR_r2, 3) = MR_sv(15);
	MR_tfield(0, MR_r2, 4) = MR_sv(16);
	MR_tfield(0, MR_r2, 5) = MR_r1;
	MR_tfield(0, MR_r2, 6) = MR_sv(17);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(5);
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_tfield(0, MR_r1, 2) = MR_sv(7);
	MR_tfield(0, MR_r1, 3) = MR_sv(8);
	MR_tfield(0, MR_r1, 4) = MR_sv(9);
	MR_tfield(0, MR_r1, 5) = MR_sv(10);
	MR_tfield(0, MR_r1, 6) = MR_sv(11);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(18);
#ifdef MR_maybe_local_thread_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__hlds_goal_module68)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_consuming_vars_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_consuming_vars_3_0);
	MR_init_label6(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,5,6,7,8,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_consuming_vars'/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__hlds__hlds_goal__goal_info_set_consuming_vars_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 5);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_consuming_vars_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_consuming_vars_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_consuming_vars_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_consuming_vars_3_0_i7);
MR_def_label(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_consuming_vars_3_0_i8);
MR_def_label(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	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(1);
	MR_tfield(0, MR_r2, 3) = MR_sv(4);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_consuming_vars_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tempr2 = MR_tfield(1, MR_r3, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_tempr4 = MR_r4;
	MR_sv(12) = MR_tfield(0, MR_tempr4, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr4, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr4, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_consuming_vars_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(12);
	MR_tfield(0, MR_r2, 1) = MR_sv(13);
	MR_tfield(0, MR_r2, 2) = MR_sv(14);
	MR_tfield(0, MR_r2, 3) = MR_sv(15);
	MR_tfield(0, MR_r2, 4) = MR_sv(16);
	MR_tfield(0, MR_r2, 5) = MR_r1;
	MR_tfield(0, MR_r2, 6) = MR_sv(17);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(5);
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_tfield(0, MR_r1, 2) = MR_sv(7);
	MR_tfield(0, MR_r1, 3) = MR_sv(8);
	MR_tfield(0, MR_r1, 4) = MR_sv(9);
	MR_tfield(0, MR_r1, 5) = MR_sv(10);
	MR_tfield(0, MR_r1, 6) = MR_sv(11);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(18);
#ifdef MR_maybe_local_thread_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__hlds_goal_module69)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_make_visible_vars_3_0);
	MR_init_label6(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,5,6,7,8,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_make_visible_vars'/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__hlds__hlds_goal__goal_info_set_make_visible_vars_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 5);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_make_visible_vars_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_make_visible_vars_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_make_visible_vars_3_0_i7);
MR_def_label(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_make_visible_vars_3_0_i8);
MR_def_label(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	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_tfield(0, MR_r2, 3) = MR_sv(1);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tempr2 = MR_tfield(1, MR_r3, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_tempr4 = MR_r4;
	MR_sv(12) = MR_tfield(0, MR_tempr4, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr4, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr4, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_make_visible_vars_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(12);
	MR_tfield(0, MR_r2, 1) = MR_sv(13);
	MR_tfield(0, MR_r2, 2) = MR_sv(14);
	MR_tfield(0, MR_r2, 3) = MR_sv(15);
	MR_tfield(0, MR_r2, 4) = MR_sv(16);
	MR_tfield(0, MR_r2, 5) = MR_r1;
	MR_tfield(0, MR_r2, 6) = MR_sv(17);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(5);
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_tfield(0, MR_r1, 2) = MR_sv(7);
	MR_tfield(0, MR_r1, 3) = MR_sv(8);
	MR_tfield(0, MR_r1, 4) = MR_sv(9);
	MR_tfield(0, MR_r1, 5) = MR_sv(10);
	MR_tfield(0, MR_r1, 6) = MR_sv(11);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(18);
#ifdef MR_maybe_local_thread_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__hlds_goal_module70)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_need_visible_vars_3_0);
	MR_init_label6(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,5,6,7,8,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_need_visible_vars'/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__hlds__hlds_goal__goal_info_set_need_visible_vars_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 5);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(4);
	}
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_need_visible_vars_3_0_i5);
MR_def_label(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_need_visible_vars_3_0_i6);
MR_def_label(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_need_visible_vars_3_0_i7);
MR_def_label(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_info_set_need_visible_vars_3_0_i8);
MR_def_label(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	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_tfield(0, MR_r2, 3) = MR_r1;
	MR_tfield(0, MR_r2, 4) = MR_sv(1);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tempr2 = MR_tfield(1, MR_r3, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_sv(5) = MR_tfield(0, MR_r2, 0);
	MR_sv(6) = MR_tfield(0, MR_r2, 1);
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_sv(8) = MR_tfield(0, MR_r2, 3);
	MR_sv(9) = MR_tfield(0, MR_r2, 4);
	MR_sv(10) = MR_tfield(0, MR_r2, 5);
	MR_sv(11) = MR_tfield(0, MR_r2, 6);
	MR_tempr4 = MR_r4;
	MR_sv(12) = MR_tfield(0, MR_tempr4, 0);
	MR_sv(13) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(14) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(15) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(16) = MR_tfield(0, MR_tempr4, 4);
	MR_sv(17) = MR_tfield(0, MR_tempr4, 6);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_need_visible_vars_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(12);
	MR_tfield(0, MR_r2, 1) = MR_sv(13);
	MR_tfield(0, MR_r2, 2) = MR_sv(14);
	MR_tfield(0, MR_r2, 3) = MR_sv(15);
	MR_tfield(0, MR_r2, 4) = MR_sv(16);
	MR_tfield(0, MR_r2, 5) = MR_r1;
	MR_tfield(0, MR_r2, 6) = MR_sv(17);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(5);
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_tfield(0, MR_r1, 2) = MR_sv(7);
	MR_tfield(0, MR_r1, 3) = MR_sv(8);
	MR_tfield(0, MR_r1, 4) = MR_sv(9);
	MR_tfield(0, MR_r1, 5) = MR_sv(10);
	MR_tfield(0, MR_r1, 6) = MR_sv(11);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(18);
#ifdef MR_maybe_local_thread_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__hlds_goal_module71)
	MR_init_entry1(fn__hlds__hlds_goal__producing_vars_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__producing_vars_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'producing_vars'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__producing_vars_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_get_producing_vars_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module72)
	MR_init_entry1(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_112_114_111_100_117_99_105_110_103_95_118_97_114_115_32_58_61_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_112_114_111_100_117_99_105_110_103_95_118_97_114_115_32_58_61_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'producing_vars :='/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__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_112_114_111_100_117_99_105_110_103_95_118_97_114_115_32_58_61_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_set_producing_vars_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__hlds_goal_module73)
	MR_init_entry1(fn__hlds__hlds_goal__consuming_vars_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__consuming_vars_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'consuming_vars'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__consuming_vars_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_get_consuming_vars_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module74)
	MR_init_entry1(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_99_111_110_115_117_109_105_110_103_95_118_97_114_115_32_58_61_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_99_111_110_115_117_109_105_110_103_95_118_97_114_115_32_58_61_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'consuming_vars :='/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__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_99_111_110_115_117_109_105_110_103_95_118_97_114_115_32_58_61_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_set_consuming_vars_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__hlds_goal_module75)
	MR_init_entry1(fn__hlds__hlds_goal__make_visible_vars_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__make_visible_vars_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_visible_vars'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__make_visible_vars_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_get_make_visible_vars_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module76)
	MR_init_entry1(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_109_97_107_101_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_109_97_107_101_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_visible_vars :='/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__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_109_97_107_101_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_set_make_visible_vars_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__hlds_goal_module77)
	MR_init_entry1(fn__hlds__hlds_goal__need_visible_vars_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__need_visible_vars_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'need_visible_vars'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__need_visible_vars_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_get_need_visible_vars_2_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module78)
	MR_init_entry1(fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_110_101_101_100_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_110_101_101_100_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'need_visible_vars :='/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__fn__f_104_108_100_115_95_95_104_108_100_115_95_103_111_97_108_95_95_110_101_101_100_95_118_105_115_105_98_108_101_95_118_97_114_115_32_58_61_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_set_need_visible_vars_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__hlds_goal_module79)
	MR_init_entry1(fn__hlds__hlds_goal__worst_contains_trace_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__worst_contains_trace_2_0);
	MR_init_label1(fn__hlds__hlds_goal__worst_contains_trace_2_0,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'worst_contains_trace'/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__fn__hlds__hlds_goal__worst_contains_trace_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__worst_contains_trace_2_0_i10);
	}
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__worst_contains_trace_2_0_i10);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__worst_contains_trace_2_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module80)
	MR_init_entry1(fn__hlds__hlds_goal__goal_get_nonlocals_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_get_nonlocals_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_get_nonlocals'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_get_nonlocals_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 1), 2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module81)
	MR_init_entry1(hlds__hlds_goal__goal_set_goal_id_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_set_goal_id_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_set_goal_id'/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__hlds__hlds_goal__goal_set_goal_id_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tempr2 = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_r1;
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_tempr2, 7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module82)
	MR_init_entry1(fn__hlds__hlds_goal__goal_get_purity_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_get_purity_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_get_purity'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_get_purity_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_tfield(0, MR_r1, 1), 3);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module83)
	MR_init_entry1(hlds__hlds_goal__goal_set_purity_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_set_purity_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_set_purity'/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__hlds__hlds_goal__goal_set_purity_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tempr2 = MR_tfield(0, MR_r2, 1);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tfield(0, MR_tempr1, 7) = MR_tfield(0, MR_tempr2, 7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(set__member_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module84)
	MR_init_entry1(hlds__hlds_goal__goal_info_has_feature_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_has_feature_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_has_feature'/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__hlds__hlds_goal__goal_info_has_feature_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r3 = MR_tfield(0, MR_tempr1, 4);
	MR_np_tailcall_ent(set__member_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module85)
	MR_init_entry1(hlds__hlds_goal__goal_info_get_goal_purity_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_get_goal_purity_3_0);
	MR_init_label2(hlds__hlds_goal__goal_info_get_goal_purity_3_0,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_get_goal_purity'/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__hlds__hlds_goal__goal_info_get_goal_purity_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 3);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = (MR_Integer) 17;
	MR_r3 = MR_tfield(0, MR_tempr1, 4);
	}
	MR_np_call_localret_ent(set__member_2_0,
		hlds__hlds_goal__goal_info_get_goal_purity_3_0_i3);
MR_def_label(hlds__hlds_goal__goal_info_get_goal_purity_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_get_goal_purity_3_0_i2);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 0;
	MR_decr_sp_and_return(2);
MR_def_label(hlds__hlds_goal__goal_info_get_goal_purity_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Integer) 1;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module86)
	MR_init_entry1(hlds__hlds_goal__goal_get_goal_purity_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_get_goal_purity_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_get_goal_purity'/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__hlds__hlds_goal__goal_get_goal_purity_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_get_goal_purity_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(set__remove_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module87)
	MR_init_entry1(hlds__hlds_goal__goal_info_remove_feature_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_remove_feature_3_0);
	MR_init_label2(hlds__hlds_goal__goal_info_remove_feature_3_0,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_remove_feature'/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__hlds__hlds_goal__goal_info_remove_feature_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_sv(1), 4);
	}
	MR_np_call_localret_ent(set__remove_3_0,
		hlds__hlds_goal__goal_info_remove_feature_3_0_i3);
MR_def_label(hlds__hlds_goal__goal_info_remove_feature_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_remove_feature_3_0_i2);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r1, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r1, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r1, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r1, 4) = MR_r2;
	MR_tfield(0, MR_r1, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r1, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r1, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_decr_sp_and_return(2);
	}
MR_def_label(hlds__hlds_goal__goal_info_remove_feature_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module88)
	MR_init_entry1(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_info_set_mdprof_inst_3_0);
	MR_init_label2(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_set_mdprof_inst'/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__hlds__hlds_goal__goal_info_set_mdprof_inst_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tempr1 = MR_tfield(0, MR_r2, 7);
	MR_r4 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_tempr1, 6);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0_i3);
	}
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_r1;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 1);
	MR_r5 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr2;
	MR_r1 = MR_tempr3;
	MR_tempr4 = MR_r2;
	MR_r15 = MR_tempr4;
	MR_r2 = MR_tfield(0, MR_r2, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 1);
	MR_tempr5 = MR_tempr1;
	MR_r16 = MR_tempr5;
	MR_r4 = MR_tfield(0, MR_tempr4, 2);
	MR_r5 = MR_tfield(0, MR_tempr4, 3);
	MR_r6 = MR_tfield(0, MR_tempr4, 4);
	MR_r7 = MR_tfield(0, MR_tempr4, 5);
	MR_r8 = MR_tfield(0, MR_tempr4, 6);
	MR_r9 = MR_tfield(0, MR_tempr5, 0);
	MR_r10 = MR_tfield(0, MR_tempr5, 1);
	MR_r11 = MR_tfield(0, MR_tempr5, 2);
	MR_r12 = MR_tfield(0, MR_tempr5, 3);
	MR_r13 = MR_tfield(0, MR_tempr5, 4);
	MR_r14 = MR_tfield(0, MR_tempr5, 5);
	MR_GOTO_LAB(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tfield(1, MR_r3, 0), 1);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_tfield(0, MR_r2, 0);
	MR_r3 = MR_tfield(0, MR_tempr3, 1);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tfield(0, MR_tempr3, 2);
	MR_r5 = MR_tfield(0, MR_tempr3, 3);
	MR_r6 = MR_tfield(0, MR_tempr3, 4);
	MR_r7 = MR_tfield(0, MR_tempr3, 5);
	MR_r8 = MR_tfield(0, MR_tempr3, 6);
	MR_r9 = MR_tfield(0, MR_tempr4, 0);
	MR_r10 = MR_tfield(0, MR_tempr4, 1);
	MR_r11 = MR_tfield(0, MR_tempr4, 2);
	MR_r12 = MR_tfield(0, MR_tempr4, 3);
	MR_r13 = MR_tfield(0, MR_tempr4, 4);
	MR_r14 = MR_tfield(0, MR_tempr4, 5);
	}
MR_def_label(hlds__hlds_goal__goal_info_set_mdprof_inst_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr1, 0) = MR_r9;
	MR_tfield(0, MR_tempr1, 1) = MR_r10;
	MR_tfield(0, MR_tempr1, 2) = MR_r11;
	MR_tfield(0, MR_tempr1, 3) = MR_r12;
	MR_tfield(0, MR_tempr1, 4) = MR_r13;
	MR_tfield(0, MR_tempr1, 5) = MR_r14;
	MR_tfield(0, MR_tempr1, 6) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_r3;
	MR_tfield(0, MR_r1, 2) = MR_r4;
	MR_tfield(0, MR_r1, 3) = MR_r5;
	MR_tfield(0, MR_r1, 4) = MR_r6;
	MR_tfield(0, MR_r1, 5) = MR_r7;
	MR_tfield(0, MR_r1, 6) = MR_r8;
	MR_tfield(0, MR_r1, 7) = MR_tempr1;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module89)
	MR_init_entry1(hlds__hlds_goal__goal_set_context_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_set_context_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_set_context'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_set_context_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr2 = MR_tfield(0, MR_r2, 1);
	MR_tempr3 = MR_tfield(0, MR_tempr2, 7);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr3, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr3, 2);
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr3, 3);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_tempr3, 4);
	MR_tfield(0, MR_tempr1, 5) = MR_tfield(0, MR_tempr3, 5);
	MR_tfield(0, MR_tempr1, 6) = MR_tfield(0, MR_tempr3, 6);
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr3, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr3, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr3, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_tempr3, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_tempr3, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_tempr3, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_tempr3, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tfield(0, MR_tempr3, 7) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tfield(0, MR_r2, 0);
	MR_tfield(0, MR_r1, 1) = MR_tempr3;
	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__hlds_goal_module90)
	MR_init_entry1(hlds__hlds_goal__goal_add_feature_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_add_feature_3_0);
	MR_init_label1(hlds__hlds_goal__goal_add_feature_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_add_feature'/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__hlds__hlds_goal__goal_add_feature_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r2, 0);
	MR_sv(2) = MR_tfield(0, MR_r2, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tfield(0, MR_sv(2), 4);
	}
	MR_np_call_localret_ent(set__insert_3_0,
		hlds__hlds_goal__goal_add_feature_3_0_i2);
MR_def_label(hlds__hlds_goal__goal_add_feature_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 8);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_r2, 7) = MR_tfield(0, MR_tempr1, 7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(1);
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_decr_sp_and_return(3);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module91)
	MR_init_entry1(hlds__hlds_goal__goal_remove_feature_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_remove_feature_3_0);
	MR_init_label1(hlds__hlds_goal__goal_remove_feature_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_remove_feature'/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__hlds__hlds_goal__goal_remove_feature_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r2, 0);
	MR_r2 = MR_tfield(0, MR_r2, 1);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_remove_feature_3_0,
		hlds__hlds_goal__goal_remove_feature_3_0_i2);
MR_def_label(hlds__hlds_goal__goal_remove_feature_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module92)
	MR_init_entry1(hlds__hlds_goal__goal_has_feature_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_has_feature_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_has_feature'/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__hlds__hlds_goal__goal_has_feature_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r3 = MR_tfield(0, MR_tfield(0, MR_tempr1, 1), 4);
	MR_np_tailcall_ent(set__member_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_data__rename_var_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module93)
	MR_init_entry1(hlds__hlds_goal__rename_arg_list_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_arg_list_4_0);
	MR_init_label3(hlds__hlds_goal__rename_arg_list_4_0,18,4,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_arg_list'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__rename_arg_list_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_arg_list_4_0_i18);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__hlds_goal__rename_arg_list_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_tempr2, 1);
	MR_tempr1 = MR_tfield(1, MR_tempr2, 0);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_arg_list_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_arg_list_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(6);
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_localcall_lab(hlds__hlds_goal__rename_arg_list_4_0,
		hlds__hlds_goal__rename_arg_list_4_0_i6);
MR_def_label(hlds__hlds_goal__rename_arg_list_4_0,6)
	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(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_data__rename_var_list_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module94)
	MR_init_entry1(hlds__hlds_goal__rename_unify_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_unify_4_0);
	MR_init_label10(hlds__hlds_goal__rename_unify_4_0,4,5,3,8,9,11,12,14,13,16)
	MR_init_label10(hlds__hlds_goal__rename_unify_4_0,10,20,23,28,27,7,35,36,34,39)
	MR_init_label3(hlds__hlds_goal__rename_unify_4_0,38,41,42)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_unify'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__rename_unify_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(2, MR_tempr2, 1);
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(2, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i5);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 2);
	MR_tfield(2, MR_r2, 0) = MR_sv(1);
	MR_tfield(2, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(12);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i7);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 5);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 6);
	MR_sv(11) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i8);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,8)
	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(11);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_unify_4_0_i9);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(6),0,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i11);
	}
	MR_r2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_r2;
	MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i10);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(6),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i12);
	}
	MR_r2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_r2;
	MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i10);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(6),1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i13);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i14);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r5 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i10);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_tempr2 = MR_tfield(2, MR_tempr1, 0);
	MR_sv(9) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(10) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i16);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(10);
	MR_tag_alloc_heap(MR_tempr2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_tempr2, 0) = MR_tempr1;
	MR_r1 = MR_tempr2;
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(8),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i20);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_sv(8);
	MR_r5 = MR_tfield(1, MR_tempr3, 1);
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i23);
	}
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(1, MR_tempr3, 0);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr2, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr2, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 4) = MR_r1;
	MR_tfield(0, MR_tempr2, 5) = MR_sv(7);
	MR_tfield(0, MR_tempr2, 6) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(1, MR_r5, 0);
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i27);
	}
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_tempr3 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_sv(8), 0);
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr3;
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i28);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r1, 0) = MR_sv(4);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_tfield(0, MR_r1, 2) = MR_sv(6);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(1);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = MR_tempr1;
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_tfield(0, MR_tempr1, 5) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(8);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i34);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_tempr2, 4);
	MR_sv(4) = MR_tfield(1, MR_tempr2, 5);
	MR_sv(5) = MR_tfield(1, MR_tempr2, 1);
	MR_sv(6) = MR_tfield(1, MR_tempr2, 2);
	MR_sv(7) = MR_tfield(1, MR_tempr2, 3);
	MR_sv(8) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i35);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(6);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_unify_4_0_i36);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 6);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 2) = MR_r1;
	MR_tfield(1, MR_tempr1, 3) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 4) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 5) = MR_sv(4);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_4_0_i38);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr4 = MR_r3;
	MR_sv(1) = MR_tfield(3, MR_tempr4, 1);
	MR_sv(2) = MR_tfield(3, MR_tempr4, 2);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_tempr4;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(3, MR_tempr3, 3);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_unify_4_0_i39);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(12);
	}
MR_def_label(hlds__hlds_goal__rename_unify_4_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i41);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_4_0_i42);
MR_def_label(hlds__hlds_goal__rename_unify_4_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(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__hlds_goal_module95)
	MR_init_entry1(hlds__hlds_goal__rename_generic_call_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_generic_call_4_0);
	MR_init_label4(hlds__hlds_goal__rename_generic_call_4_0,4,3,7,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_generic_call'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__rename_generic_call_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_generic_call_4_0_i3);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr4 = MR_r3;
	MR_sv(1) = MR_tfield(1, MR_tempr4, 1);
	MR_sv(2) = MR_tfield(1, MR_tempr4, 2);
	MR_sv(3) = MR_tfield(1, MR_tempr4, 3);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_tempr4;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(1, MR_tempr3, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_generic_call_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_generic_call_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 4);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = MR_sv(1);
	MR_tfield(1, MR_r2, 2) = MR_sv(2);
	MR_tfield(1, MR_r2, 3) = MR_sv(3);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(4);
MR_def_label(hlds__hlds_goal__rename_generic_call_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_generic_call_4_0_i6);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr4 = MR_r3;
	MR_sv(1) = MR_tfield(0, MR_tempr4, 1);
	MR_sv(2) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr4, 3);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_tempr4;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(0, MR_tempr3, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_generic_call_4_0_i7);
MR_def_label(hlds__hlds_goal__rename_generic_call_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(4);
	}
MR_def_label(hlds__hlds_goal__rename_generic_call_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r3;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_data__rename_vars_in_var_set_4_0);
MR_decl_entry(hlds__instmap__instmap_delta_apply_sub_4_0);
MR_decl_entry(hlds__hlds_llds__rename_vars_in_llds_code_gen_info_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module96)
	MR_init_entry1(hlds__hlds_goal__rename_vars_in_goal_info_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_vars_in_goal_info_4_0);
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_info_4_0,2,3,5,6,4,9,10,11,16,13)
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_info_4_0,26,23,8,36,37,38,39,40,41,35)
	MR_init_label6(hlds__hlds_goal__rename_vars_in_goal_info_4_0,45,48,49,50,51,52)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_vars_in_goal_info'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__rename_vars_in_goal_info_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(21);
	MR_sv(21) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 7);
	MR_r3 = MR_tfield(0, MR_r3, 2);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i2);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,2)
	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(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_apply_sub_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i3);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(8),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i5);
	}
	MR_sv(8) = MR_r1;
	MR_r2 = MR_sv(9);
	MR_sv(9) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(10) = MR_tfield(0, MR_r2, 0);
	MR_sv(11) = MR_tfield(0, MR_r2, 1);
	MR_sv(12) = MR_tfield(0, MR_r2, 2);
	MR_r1 = MR_tfield(0, MR_r2, 3);
	MR_sv(13) = MR_tfield(0, MR_r2, 4);
	MR_sv(14) = MR_tfield(0, MR_r2, 5);
	MR_sv(19) = MR_tfield(0, MR_r2, 6);
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_llds__rename_vars_in_llds_code_gen_info_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i6);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r2;
	MR_sv(10) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(12) = MR_tfield(0, MR_tempr1, 2);
	MR_r1 = MR_tfield(0, MR_tempr1, 3);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(14) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(19) = MR_tfield(0, MR_tempr1, 6);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i9);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i8);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(15) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(16) = MR_tfield(0, MR_tempr1, 2);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i10);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,10)
	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(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i11);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(16),2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i13);
	}
	MR_r2 = MR_tfield(2, MR_sv(16), 0);
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i23);
	}
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_tfield(1, MR_r2, 1);
	MR_sv(18) = MR_tfield(1, MR_r2, 2);
	MR_sv(20) = MR_tfield(1, MR_r2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i16);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 4);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = MR_sv(17);
	MR_tfield(1, MR_r2, 2) = MR_sv(18);
	MR_tfield(1, MR_r2, 3) = MR_sv(20);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(2, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(15);
	MR_tfield(0, MR_r2, 1) = MR_sv(16);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_r2;
	MR_r1 = MR_tempr2;
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i8);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(16),3)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i23);
	}
	MR_r2 = MR_tfield(3, MR_sv(16), 0);
	if (MR_PTAG_TESTR(MR_r2,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i23);
	}
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_tfield(1, MR_r2, 1);
	MR_sv(18) = MR_tfield(1, MR_r2, 2);
	MR_sv(20) = MR_tfield(1, MR_r2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i26);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 4);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = MR_sv(17);
	MR_tfield(1, MR_r2, 2) = MR_sv(18);
	MR_tfield(1, MR_r2, 3) = MR_sv(20);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 1);
	MR_r3 = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(15);
	MR_tfield(0, MR_r2, 1) = MR_sv(16);
	MR_tfield(0, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_r2;
	MR_r1 = MR_tempr2;
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i8);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,23)
	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(15);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = MR_sv(16);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(13),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i36);
	}
	MR_sv(13) = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i35);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(13);
	MR_sv(13) = MR_r1;
	MR_tempr2 = MR_tfield(1, MR_tempr1, 0);
	MR_sv(15) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(16) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(17) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(18) = MR_tfield(0, MR_tempr2, 4);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i37);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,37)
	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(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i38);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(16);
	MR_sv(16) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i39);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(17);
	MR_sv(17) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i40);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(18);
	MR_sv(18) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i41);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = MR_sv(15);
	MR_tfield(0, MR_r2, 1) = MR_sv(16);
	MR_tfield(0, MR_r2, 2) = MR_sv(17);
	MR_tfield(0, MR_r2, 3) = MR_sv(18);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_r1 = MR_tempr1;
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(14),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_info_4_0_i45);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(10);
	MR_tfield(0, MR_r2, 1) = MR_sv(11);
	MR_tfield(0, MR_r2, 2) = MR_sv(12);
	MR_tfield(0, MR_r2, 3) = MR_sv(13);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 6) = MR_sv(19);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(3);
	MR_tfield(0, MR_r1, 1) = MR_sv(8);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(6);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = MR_sv(9);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(21);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(14);
	MR_sv(14) = MR_r1;
	MR_tempr2 = MR_tfield(1, MR_tempr1, 0);
	MR_sv(15) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(16) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(17) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(18) = MR_tfield(0, MR_tempr2, 4);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i48);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,48)
	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(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i49);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(16);
	MR_sv(16) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i50);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(17);
	MR_sv(17) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i51);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(18);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_vars_in_var_set_4_0,
		hlds__hlds_goal__rename_vars_in_goal_info_4_0_i52);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_info_4_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = MR_sv(15);
	MR_tfield(0, MR_r2, 1) = MR_sv(16);
	MR_tfield(0, MR_r2, 2) = MR_sv(17);
	MR_tfield(0, MR_r2, 3) = MR_sv(1);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(10);
	MR_tfield(0, MR_r2, 1) = MR_sv(11);
	MR_tfield(0, MR_r2, 2) = MR_sv(12);
	MR_tfield(0, MR_r2, 3) = MR_sv(13);
	MR_tfield(0, MR_r2, 4) = MR_sv(14);
	MR_tfield(0, MR_r2, 5) = MR_tempr1;
	MR_tfield(0, MR_r2, 6) = MR_sv(19);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_r1, 0) = MR_sv(3);
	MR_tfield(0, MR_r1, 1) = MR_sv(8);
	MR_tfield(0, MR_r1, 2) = MR_sv(4);
	MR_tfield(0, MR_r1, 3) = MR_sv(5);
	MR_tfield(0, MR_r1, 4) = MR_sv(6);
	MR_tfield(0, MR_r1, 5) = MR_sv(7);
	MR_tfield(0, MR_r1, 6) = MR_sv(9);
	MR_tfield(0, MR_r1, 7) = MR_r2;
	MR_decr_sp_and_return(21);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module97)
	MR_init_entry1(hlds__hlds_goal__rename_vars_in_goals_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_vars_in_goals_4_0);
	MR_init_label3(hlds__hlds_goal__rename_vars_in_goals_4_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_vars_in_goals'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__rename_vars_in_goals_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goals_4_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__hlds_goal__rename_vars_in_goals_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_r3, 1);
	MR_r3 = MR_tfield(1, MR_r3, 0);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goals_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_vars_in_goals_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_localcall_lab(hlds__hlds_goal__rename_vars_in_goals_4_0,
		hlds__hlds_goal__rename_vars_in_goals_4_0_i5);
MR_def_label(hlds__hlds_goal__rename_vars_in_goals_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_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_BEGIN_MODULE(hlds__hlds_goal_module98)
	MR_init_entry1(hlds__hlds_goal__rename_vars_in_goal_expr_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_vars_in_goal_expr_4_0);
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,4,5,3,8,7,11,12,13,10,16)
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,17,15,20,19,23,22,26,27,28,29)
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,25,32,31,37,36,39,41,40,43,44)
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,46,45,49,48,51,52,54,34,59,60)
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,62,63,66,67,65,69,70,58,74,75)
	MR_init_label10(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,73,79,80,81,78,84,85,56,88,89)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_vars_in_goal_expr'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__rename_vars_in_goal_expr_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tfield(2, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(2, MR_tempr1, 2);
	MR_sv(5) = MR_tfield(2, MR_tempr1, 3);
	MR_r3 = MR_tfield(2, MR_r3, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_generic_call_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i5);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 4);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 1) = MR_r1;
	MR_tfield(2, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(2, MR_tempr1, 3) = MR_sv(5);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr4 = MR_r3;
	MR_sv(1) = MR_tfield(1, MR_tempr4, 0);
	MR_sv(2) = MR_tfield(1, MR_tempr4, 1);
	MR_sv(3) = MR_tfield(1, MR_tempr4, 3);
	MR_sv(4) = MR_tfield(1, MR_tempr4, 4);
	MR_sv(5) = MR_tfield(1, MR_tempr4, 5);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_tempr4;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(1, MR_tempr3, 2);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i8);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 6);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 2) = MR_r1;
	MR_tfield(1, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 5) = MR_sv(5);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i10);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i11);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_unify_rhs_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i12);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_unify_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i13);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(6);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i15);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tfield(3, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 5);
	MR_sv(5) = MR_tfield(3, MR_tempr1, 6);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 7);
	MR_sv(7) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(8) = MR_tfield(3, MR_tempr1, 3);
	MR_r3 = MR_tfield(3, MR_r3, 4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_arg_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i16);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_arg_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i17);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 8);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 1) = MR_sv(3);
	MR_tfield(3, MR_r2, 2) = MR_sv(7);
	MR_tfield(3, MR_r2, 3) = MR_sv(8);
	MR_tfield(3, MR_r2, 4) = MR_sv(1);
	MR_tfield(3, MR_r2, 5) = MR_r1;
	MR_tfield(3, MR_r2, 6) = MR_sv(5);
	MR_tfield(3, MR_r2, 7) = MR_sv(6);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i19);
	}
	MR_sv(1) = MR_tfield(3, MR_r3, 1);
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goals_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i20);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i22);
	}
	MR_r3 = MR_tfield(3, MR_r3, 1);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goals_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i23);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,6)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i25);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_sv(5) = MR_tfield(3, MR_tempr2, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i26);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i27);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_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(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i28);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i29);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 4) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i31);
	}
	MR_r3 = MR_tfield(3, MR_r3, 1);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i32);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,5)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i34);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	if (MR_PTAG_TESTR(MR_r4,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i36);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(7) = MR_tfield(3, MR_tempr1, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_r4, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i37);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i39);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i40);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_r4, 1);
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(1, MR_r4, 0);
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i41);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(3);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,3)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i43);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i44);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i45);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(3, MR_r4, 2);
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(3, MR_r4, 1);
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i46);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tfield(3, MR_tempr1, 2) = MR_sv(3);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i48);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(3, MR_r4, 1);
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i49);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i51);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(3) = MR_tfield(3, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(5) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 4);
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(3, MR_r4, 5);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i52);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 6);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(3, MR_tempr1, 4) = MR_sv(6);
	MR_tfield(3, MR_tempr1, 5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,7)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i56);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_r3, 1);
	MR_r5 = MR_tempr1;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i58);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_tempr1, 2);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 3);
	MR_sv(5) = MR_tfield(1, MR_tempr1, 4);
	MR_sv(6) = MR_tfield(1, MR_tempr1, 5);
	MR_sv(7) = MR_tfield(1, MR_tempr1, 6);
	MR_sv(8) = MR_tfield(1, MR_tempr1, 0);
	MR_tempr2 = MR_tfield(1, MR_tempr1, 1);
	MR_sv(9) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i59);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i60);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_tempr1;
	MR_sv(9) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i62);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i63);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i66);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_r5 = MR_sv(4);
	MR_sv(4) = MR_tempr1;
	MR_sv(5) = MR_r5;
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i65);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r4;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i67);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_sv(5) = MR_tempr1;
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i69);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goals_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i70);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 7);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(8);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 4) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 5) = MR_r1;
	MR_tfield(1, MR_tempr1, 6) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i73);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i74);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i75);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,75)
	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_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_r6 = MR_tfield(2, MR_tempr1, 0);
	if (MR_LTAGS_TESTR(MR_r6,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i79);
	}
	MR_r6 = MR_r2;
	MR_r2 = MR_r1;
	MR_r3 = MR_r6;
	MR_r4 = MR_tfield(2, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(2, MR_tempr1, 2);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i78);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r5;
	MR_sv(3) = MR_tfield(2, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(2, MR_tempr2, 2);
	MR_tempr1 = MR_tfield(1, MR_r6, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i80);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i81);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_sv(3) = MR_tempr2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i84);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i85);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i88);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_cases_4_0,
		hlds__hlds_goal__rename_vars_in_goal_expr_4_0_i89);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module99)
	MR_init_entry1(hlds__hlds_goal__rename_vars_in_goal_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_vars_in_goal_4_0);
	MR_init_label2(hlds__hlds_goal__rename_vars_in_goal_4_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_vars_in_goal'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__rename_vars_in_goal_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(0, MR_r3, 1);
	MR_r3 = MR_tfield(0, MR_r3, 0);
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,
		hlds__hlds_goal__rename_vars_in_goal_4_0_i2);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_4_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_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_info_4_0,
		hlds__hlds_goal__rename_vars_in_goal_4_0_i3);
MR_def_label(hlds__hlds_goal__rename_vars_in_goal_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_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_BEGIN_MODULE(hlds__hlds_goal_module100)
	MR_init_entry1(hlds__hlds_goal__rename_vars_in_cases_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_vars_in_cases_4_0);
	MR_init_label4(hlds__hlds_goal__rename_vars_in_cases_4_0,20,4,5,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_vars_in_cases'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__rename_vars_in_cases_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_vars_in_cases_4_0_i20);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__hlds_goal__rename_vars_in_cases_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_tempr3, 1);
	MR_tempr1 = MR_tfield(1, MR_tempr3, 0);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 1);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,
		hlds__hlds_goal__rename_vars_in_cases_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_vars_in_cases_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_info_4_0,
		hlds__hlds_goal__rename_vars_in_cases_4_0_i5);
MR_def_label(hlds__hlds_goal__rename_vars_in_cases_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr2, 1) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 2) = MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_localcall_lab(hlds__hlds_goal__rename_vars_in_cases_4_0,
		hlds__hlds_goal__rename_vars_in_cases_4_0_i8);
MR_def_label(hlds__hlds_goal__rename_vars_in_cases_4_0,8)
	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(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module101)
	MR_init_entry1(hlds__hlds_goal__rename_unify_rhs_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_unify_rhs_4_0);
	MR_init_label8(hlds__hlds_goal__rename_unify_rhs_4_0,4,3,7,8,9,10,6,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_unify_rhs'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__rename_unify_rhs_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_rhs_4_0_i3);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr4 = MR_r3;
	MR_sv(1) = MR_tfield(1, MR_tempr4, 0);
	MR_sv(2) = MR_tfield(1, MR_tempr4, 1);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_tempr4;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(1, MR_tempr3, 2);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_unify_rhs_4_0_i4);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_sv(2);
	MR_tfield(1, MR_r2, 2) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__rename_unify_rhs_4_0_i6);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(2, MR_tempr2, 0);
	MR_sv(4) = MR_tfield(2, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(2, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(2, MR_tempr2, 5);
	MR_sv(7) = MR_tfield(2, MR_tempr2, 6);
	MR_sv(8) = MR_tfield(2, MR_tempr2, 7);
	MR_sv(9) = MR_tfield(2, MR_tempr2, 8);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(2, MR_tempr1, 4);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_unify_rhs_4_0_i7);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__rename_unify_rhs_4_0_i8);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,
		hlds__hlds_goal__rename_unify_rhs_4_0_i9);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(10);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_info_4_0,
		hlds__hlds_goal__rename_unify_rhs_4_0_i10);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,10)
	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_tag_alloc_heap(MR_r1, 2, (MR_Integer) 9);
	MR_tfield(2, MR_r1, 0) = MR_sv(3);
	MR_tfield(2, MR_r1, 1) = MR_sv(4);
	MR_tfield(2, MR_r1, 2) = MR_sv(5);
	MR_tfield(2, MR_r1, 4) = MR_sv(6);
	MR_tfield(2, MR_r1, 5) = MR_sv(9);
	MR_tfield(2, MR_r1, 6) = MR_sv(7);
	MR_tfield(2, MR_r1, 7) = MR_sv(8);
	MR_tfield(2, MR_r1, 8) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(0, MR_tempr3, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__rename_unify_rhs_4_0_i13);
MR_def_label(hlds__hlds_goal__rename_unify_rhs_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module102)
	MR_init_entry1(hlds__hlds_goal__rename_some_vars_in_goal_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__rename_some_vars_in_goal_3_0);
	MR_init_label2(hlds__hlds_goal__rename_some_vars_in_goal_3_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'rename_some_vars_in_goal'/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__hlds__hlds_goal__rename_some_vars_in_goal_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 1);
	MR_r1 = (MR_Integer) 1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,
		hlds__hlds_goal__rename_some_vars_in_goal_3_0_i2);
MR_def_label(hlds__hlds_goal__rename_some_vars_in_goal_3_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_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_info_4_0,
		hlds__hlds_goal__rename_some_vars_in_goal_3_0_i3);
MR_def_label(hlds__hlds_goal__rename_some_vars_in_goal_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module103)
	MR_init_entry1(hlds__hlds_goal__must_rename_vars_in_goal_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__must_rename_vars_in_goal_3_0);
	MR_init_label2(hlds__hlds_goal__must_rename_vars_in_goal_3_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'must_rename_vars_in_goal'/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__hlds__hlds_goal__must_rename_vars_in_goal_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 1);
	MR_r1 = (MR_Integer) 0;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_expr_4_0,
		hlds__hlds_goal__must_rename_vars_in_goal_3_0_i2);
MR_def_label(hlds__hlds_goal__must_rename_vars_in_goal_3_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_Integer) 0;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_info_4_0,
		hlds__hlds_goal__must_rename_vars_in_goal_3_0_i3);
MR_def_label(hlds__hlds_goal__must_rename_vars_in_goal_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__search_3_0);
MR_decl_entry(list__foldl_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module104)
	MR_init_entry1(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__incremental_rename_vars_in_goal_4_0);
	MR_init_label6(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,6,10,2,11,12,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'incremental_rename_vars_in_goal'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__incremental_rename_vars_in_goal_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(4) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, goal_id);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,2);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tfield(0, MR_sv(4), 5);
	}
	MR_np_call_localret_ent(map__search_3_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_i6);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_i2);
	}
	MR_r1 = MR_sv(6);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,3,0);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(1);
	}
	MR_np_call_localret_ent(list__foldl_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_i10);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_i11);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r1 = MR_sv(1);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_i12);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_vars_in_goal_info_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_4_0_i13);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module105)
	MR_init_entry1(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__incremental_rename_vars_in_goals_4_0);
	MR_init_label3(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,17,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'incremental_rename_vars_in_goals'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0_i17);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_r3, 1);
	MR_r3 = MR_tfield(1, MR_r3, 0);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goals_4_0_i4);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_localcall_lab(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goals_4_0_i5);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_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_BEGIN_MODULE(hlds__hlds_goal_module106)
	MR_init_entry1(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__incremental_rename_vars_in_cases_4_0);
	MR_init_label3(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0,18,4,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'incremental_rename_vars_in_cases'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0_i18);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(1, MR_tempr2, 1);
	MR_tempr1 = MR_tfield(1, MR_tempr2, 0);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tfield(0, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_cases_4_0_i4);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_localcall_lab(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_cases_4_0_i6);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0,6)
	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(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module107)
	MR_init_entry1(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0);
	MR_init_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,4,5,3,8,7,11,12,13,10,16)
	MR_init_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,17,15,20,19,23,22,26,27,28,29)
	MR_init_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,25,32,31,37,36,39,41,40,43,44)
	MR_init_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,46,45,49,48,51,52,54,34,59,60)
	MR_init_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,62,63,66,67,65,69,70,58,74,75)
	MR_init_label10(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,73,79,80,81,78,84,85,56,88,89)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'incremental_rename_vars_in_goal_expr'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i3);
	}
	MR_sv(1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(2) = MR_tfield(2, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(2, MR_tempr1, 2);
	MR_sv(4) = MR_tfield(2, MR_tempr1, 3);
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(2, MR_r3, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_generic_call_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i4);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i5);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 4);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 1) = MR_r1;
	MR_tfield(2, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 3) = MR_sv(4);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_r3;
	MR_sv(1) = MR_tfield(1, MR_tempr3, 0);
	MR_sv(2) = MR_tfield(1, MR_tempr3, 1);
	MR_sv(3) = MR_tfield(1, MR_tempr3, 3);
	MR_sv(4) = MR_tfield(1, MR_tempr3, 4);
	MR_sv(5) = MR_tfield(1, MR_tempr3, 5);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_tempr2 = MR_tempr3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tfield(1, MR_tempr2, 2);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i8);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 6);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 2) = MR_r1;
	MR_tfield(1, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 4) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 5) = MR_sv(5);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i10);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i11);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i12);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_unify_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i13);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_sv(6);
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i15);
	}
	MR_sv(1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(2) = MR_tfield(3, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(3, MR_tempr1, 5);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 6);
	MR_sv(5) = MR_tfield(3, MR_tempr1, 7);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(7) = MR_tfield(3, MR_tempr1, 3);
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tfield(3, MR_r3, 4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_arg_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i16);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_arg_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i17);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 8);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 1) = MR_sv(2);
	MR_tfield(3, MR_r2, 2) = MR_sv(6);
	MR_tfield(3, MR_r2, 3) = MR_sv(7);
	MR_tfield(3, MR_r2, 4) = MR_sv(1);
	MR_tfield(3, MR_r2, 5) = MR_r1;
	MR_tfield(3, MR_r2, 6) = MR_sv(4);
	MR_tfield(3, MR_r2, 7) = MR_sv(5);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i19);
	}
	MR_sv(1) = MR_tfield(3, MR_r3, 1);
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i20);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i22);
	}
	MR_r3 = MR_tfield(3, MR_r3, 1);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i23);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,6)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i25);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_sv(5) = MR_tfield(3, MR_tempr2, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i26);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i27);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_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(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i28);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i29);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 4) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i31);
	}
	MR_r3 = MR_tfield(3, MR_r3, 1);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i32);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,5)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i34);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	if (MR_PTAG_TESTR(MR_r4,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i36);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(7) = MR_tfield(3, MR_tempr1, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(0, MR_r4, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i37);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i39);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r4,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i40);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_r4, 1);
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(1, MR_r4, 0);
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i41);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(3);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,3)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i43);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i44);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i45);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(3, MR_r4, 2);
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(3, MR_r4, 1);
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i46);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tfield(3, MR_tempr1, 2) = MR_sv(3);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i48);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(3, MR_r4, 1);
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i49);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r4,3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i51);
	}
	MR_sv(1) = MR_r4;
	MR_r3 = MR_tfield(3, MR_r3, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(3) = MR_tfield(3, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(5) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 4);
	MR_sv(7) = MR_tfield(3, MR_r3, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(3, MR_r4, 5);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i52);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 6);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(3, MR_tempr1, 4) = MR_sv(6);
	MR_tfield(3, MR_tempr1, 5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r3 = MR_sv(7);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i54);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r3,3,7)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i56);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_r3, 1);
	MR_r5 = MR_tempr1;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i58);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tfield(1, MR_tempr1, 2);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 3);
	MR_sv(5) = MR_tfield(1, MR_tempr1, 4);
	MR_sv(6) = MR_tfield(1, MR_tempr1, 5);
	MR_sv(7) = MR_tfield(1, MR_tempr1, 6);
	MR_sv(8) = MR_tfield(1, MR_tempr1, 0);
	MR_tempr2 = MR_tfield(1, MR_tempr1, 1);
	MR_sv(9) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i59);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i60);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_tempr1;
	MR_sv(9) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i62);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i63);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	if (MR_LTAGS_TESTR(MR_sv(4),0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i66);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_r5 = MR_sv(4);
	MR_sv(4) = MR_tempr1;
	MR_sv(5) = MR_r5;
	MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i65);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r4;
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i67);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_sv(5) = MR_tempr1;
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i69);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goals_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i70);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 7);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(8);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 3) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 4) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 5) = MR_r1;
	MR_tfield(1, MR_tempr1, 6) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i73);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i74);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i75);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,75)
	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_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_r6 = MR_tfield(2, MR_tempr1, 0);
	if (MR_LTAGS_TESTR(MR_r6,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i79);
	}
	MR_r3 = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r4 = MR_tfield(2, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(2, MR_tempr1, 2);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Integer) 1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i78);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r5;
	MR_sv(3) = MR_tfield(2, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(2, MR_tempr2, 2);
	MR_tempr1 = MR_tfield(1, MR_r6, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i80);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i81);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_sv(3) = MR_tempr2;
	MR_r2 = (MR_Integer) 1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r3;
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i84);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i85);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_r1, 1) = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i88);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_cases_4_0,
		hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0_i89);
MR_def_label(hlds__hlds_goal__incremental_rename_vars_in_goal_expr_4_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module108)
	MR_init_entry1(hlds__hlds_goal__incremental_rename_unify_rhs_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__incremental_rename_unify_rhs_4_0);
	MR_init_label7(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,4,3,7,8,9,6,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'incremental_rename_unify_rhs'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__incremental_rename_unify_rhs_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i3);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_r3;
	MR_sv(1) = MR_tfield(1, MR_tempr3, 0);
	MR_sv(2) = MR_tfield(1, MR_tempr3, 1);
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_tempr2 = MR_tempr3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tfield(1, MR_tempr2, 2);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i4);
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_sv(2);
	MR_tfield(1, MR_r2, 2) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i6);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r3;
	MR_sv(3) = MR_tfield(2, MR_tempr2, 0);
	MR_sv(4) = MR_tfield(2, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(2, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(2, MR_tempr2, 5);
	MR_sv(7) = MR_tfield(2, MR_tempr2, 6);
	MR_sv(8) = MR_tfield(2, MR_tempr2, 7);
	MR_sv(9) = MR_tfield(2, MR_tempr2, 8);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_tempr1 = MR_tempr2;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tfield(2, MR_tempr1, 4);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i7);
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_list_4_0,
		hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i8);
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(9);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__incremental_rename_vars_in_goal_4_0,
		hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i9);
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 9);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(2, MR_tempr1, 2) = MR_sv(5);
	MR_tfield(2, MR_tempr1, 4) = MR_sv(6);
	MR_tfield(2, MR_tempr1, 5) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 6) = MR_sv(7);
	MR_tfield(2, MR_tempr1, 7) = MR_sv(8);
	MR_tfield(2, MR_tempr1, 8) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Integer) 1;
	MR_tempr2 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_data__rename_var_4_0,
		hlds__hlds_goal__incremental_rename_unify_rhs_4_0_i11);
MR_def_label(hlds__hlds_goal__incremental_rename_unify_rhs_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module109)
	MR_init_entry1(hlds__hlds_goal__goal_to_conj_list_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_to_conj_list_2_0);
	MR_init_label1(hlds__hlds_goal__goal_to_conj_list_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_to_conj_list'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_to_conj_list_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_r2,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_to_conj_list_2_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r2, 1);
	if (MR_INT_NE(MR_tempr1,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_to_conj_list_2_0_i2);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_proceed();
	}
MR_def_label(hlds__hlds_goal__goal_to_conj_list_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_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__hlds_goal_module110)
	MR_init_entry1(hlds__hlds_goal__goal_to_par_conj_list_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_to_par_conj_list_2_0);
	MR_init_label1(hlds__hlds_goal__goal_to_par_conj_list_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_to_par_conj_list'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_to_par_conj_list_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_r2,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_to_par_conj_list_2_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r2, 1);
	if (MR_INT_NE(MR_tempr1,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_to_par_conj_list_2_0_i2);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_proceed();
	}
MR_def_label(hlds__hlds_goal__goal_to_par_conj_list_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_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__hlds_goal_module111)
	MR_init_entry1(hlds__hlds_goal__goal_to_disj_list_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_to_disj_list_2_0);
	MR_init_label1(hlds__hlds_goal__goal_to_disj_list_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_to_disj_list'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__goal_to_disj_list_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_r2,3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__goal_to_disj_list_2_0_i2);
	}
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_proceed();
MR_def_label(hlds__hlds_goal__goal_to_disj_list_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_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__hlds_goal_module112)
	MR_init_entry1(hlds__hlds_goal__conj_list_to_goal_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__conj_list_to_goal_3_0);
	MR_init_label1(hlds__hlds_goal__conj_list_to_goal_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'conj_list_to_goal'/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__hlds__hlds_goal__conj_list_to_goal_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__conj_list_to_goal_3_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__conj_list_to_goal_3_0_i2);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_proceed();
	}
MR_def_label(hlds__hlds_goal__conj_list_to_goal_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module113)
	MR_init_entry1(hlds__hlds_goal__par_conj_list_to_goal_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__par_conj_list_to_goal_3_0);
	MR_init_label1(hlds__hlds_goal__par_conj_list_to_goal_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'par_conj_list_to_goal'/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__hlds__hlds_goal__par_conj_list_to_goal_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__par_conj_list_to_goal_3_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__par_conj_list_to_goal_3_0_i2);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_proceed();
	}
MR_def_label(hlds__hlds_goal__par_conj_list_to_goal_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module114)
	MR_init_entry1(hlds__hlds_goal__disj_list_to_goal_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__disj_list_to_goal_3_0);
	MR_init_label1(hlds__hlds_goal__disj_list_to_goal_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'disj_list_to_goal'/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__hlds__hlds_goal__disj_list_to_goal_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__disj_list_to_goal_3_0_i2);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__disj_list_to_goal_3_0_i2);
	}
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_proceed();
	}
MR_def_label(hlds__hlds_goal__disj_list_to_goal_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module115)
	MR_init_entry1(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__conjoin_goal_and_goal_list_3_0);
	MR_init_label2(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0,5,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'conjoin_goal_and_goal_list'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__conjoin_goal_and_goal_list_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_tempr1,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0_i2);
	}
	MR_tempr2 = MR_tfield(3, MR_tempr1, 1);
	if (MR_INT_NE(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0_i2);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tfield(3, MR_tempr1, 2);
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		hlds__hlds_goal__conjoin_goal_and_goal_list_3_0_i5);
MR_def_label(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_sv(1);
	MR_decr_sp_and_return(2);
MR_def_label(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_sv(1);
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module116)
	MR_init_entry1(hlds__hlds_goal__conjoin_goals_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__conjoin_goals_3_0);
	MR_init_label1(hlds__hlds_goal__conjoin_goals_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'conjoin_goals'/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__hlds__hlds_goal__conjoin_goals_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r2, 0);
	if (MR_RTAGS_TESTR(MR_tempr1,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__conjoin_goals_3_0_i2);
	}
	MR_tempr2 = MR_tfield(3, MR_tempr1, 1);
	if (MR_INT_NE(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__conjoin_goals_3_0_i2);
	}
	MR_r2 = MR_tfield(3, MR_tempr1, 2);
	MR_np_tailcall_ent(hlds__hlds_goal__conjoin_goal_and_goal_list_3_0);
	}
MR_def_label(hlds__hlds_goal__conjoin_goals_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__conjoin_goal_and_goal_list_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__hlds_goal_module117)
	MR_init_entry1(hlds__hlds_goal__all_negated_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__all_negated_2_0);
	MR_init_label7(hlds__hlds_goal__all_negated_2_0,64,7,9,11,5,13,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'all_negated'/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__hlds_goal__all_negated_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i64);
	}
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(hlds__hlds_goal__all_negated_2_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_r2 = MR_tfield(0, MR_tfield(1, MR_r1, 0), 0);
	if (MR_RTAGS_TESTR(MR_r2,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i5);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r2, 1);
	if (MR_INT_NE(MR_tempr1,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i1);
	}
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(3, MR_r2, 2);
	}
	MR_np_localcall_lab(hlds__hlds_goal__all_negated_2_0,
		hlds__hlds_goal__all_negated_2_0_i7);
MR_def_label(hlds__hlds_goal__all_negated_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i1);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_localcall_lab(hlds__hlds_goal__all_negated_2_0,
		hlds__hlds_goal__all_negated_2_0_i9);
MR_def_label(hlds__hlds_goal__all_negated_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	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__hlds_goal__all_negated_2_0_i11);
MR_def_label(hlds__hlds_goal__all_negated_2_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(2);
MR_def_label(hlds__hlds_goal__all_negated_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i1);
	}
	MR_sv(1) = MR_tfield(3, MR_r2, 1);
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_np_localcall_lab(hlds__hlds_goal__all_negated_2_0,
		hlds__hlds_goal__all_negated_2_0_i13);
MR_def_label(hlds__hlds_goal__all_negated_2_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__all_negated_2_0_i1);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r1 = MR_TRUE;
	MR_decr_sp_and_return(2);
	}
MR_def_label(hlds__hlds_goal__all_negated_2_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


MR_BEGIN_MODULE(hlds__hlds_goal_module118)
	MR_init_entry1(hlds__hlds_goal__negate_goal_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__negate_goal_3_0);
	MR_init_label4(hlds__hlds_goal__negate_goal_3_0,33,8,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'negate_goal'/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__hlds__hlds_goal__negate_goal_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_tempr1,3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__negate_goal_3_0_i33);
	}
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_proceed();
	}
MR_def_label(hlds__hlds_goal__negate_goal_3_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_tempr1,3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__negate_goal_3_0_i5);
	}
	MR_tempr2 = MR_tfield(3, MR_tempr1, 1);
	if (MR_INT_NE(MR_tempr2,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__negate_goal_3_0_i5);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__all_negated_2_0,
		hlds__hlds_goal__negate_goal_3_0_i8);
MR_def_label(hlds__hlds_goal__negate_goal_3_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__negate_goal_3_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(3);
	}
MR_def_label(hlds__hlds_goal__negate_goal_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
MR_def_label(hlds__hlds_goal__negate_goal_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_decr_sp_and_return(3);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__bool__or_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module119)
	MR_init_entry1(fn__hlds__hlds_goal__goal_has_foreign_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_has_foreign_1_0);
	MR_init_label10(fn__hlds__hlds_goal__goal_has_foreign_1_0,105,3,4,6,12,15,17,10,8,20)
	MR_init_label8(fn__hlds__hlds_goal__goal_has_foreign_1_0,47,23,22,30,32,33,31,28)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_has_foreign'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_has_foreign_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_r2,3,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i3);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i4);
	}
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(fn__hlds__hlds_goal__goal_list_has_foreign_1_0);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,2)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i6);
	}
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(fn__hlds__hlds_goal__goal_list_has_foreign_1_0);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,6)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i8);
	}
	MR_sv(2) = MR_tfield(3, MR_r2, 4);
	MR_sv(1) = MR_tfield(3, MR_r2, 3);
	MR_r1 = MR_tfield(3, MR_r2, 2);
	MR_np_localcall_lab(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__goal_has_foreign_1_0_i12);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i10);
	}
	MR_r1 = MR_sv(1);
	MR_np_localcall_lab(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__goal_has_foreign_1_0_i15);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i10);
	}
	MR_r1 = MR_sv(2);
	MR_np_localcall_lab(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__goal_has_foreign_1_0_i17);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i47);
	}
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,4)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i20);
	}
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_succip_word = MR_sv(3);
	MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i105);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,5)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i22);
	}
	MR_r3 = MR_tfield(3, MR_r2, 2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_r2, 1);
	if (MR_RTAGS_TESTR(MR_tempr1,3,4)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i23);
	}
	MR_r2 = MR_tfield(3, MR_tempr1, 2);
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i23);
	}
	}
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r3;
	MR_succip_word = MR_sv(3);
	MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i105);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,7)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i28);
	}
	MR_r3 = MR_tfield(3, MR_r2, 1);
	if (MR_PTAG_TESTR(MR_r3,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i30);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i31);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_localcall_lab(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__goal_has_foreign_1_0_i32);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_localcall_lab(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__goal_has_foreign_1_0_i33);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(fn__bool__or_2_0);
	}
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(2, MR_r3, 2);
	MR_succip_word = MR_sv(3);
	MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i105);
MR_def_label(fn__hlds__hlds_goal__goal_has_foreign_1_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r2,3,3)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_has_foreign_1_0_i47);
	}
	MR_r1 = MR_tfield(3, MR_r2, 3);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(fn__hlds__hlds_goal__case_list_has_foreign_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module120)
	MR_init_entry1(fn__hlds__hlds_goal__goal_list_has_foreign_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_list_has_foreign_1_0);
	MR_init_label4(fn__hlds__hlds_goal__goal_list_has_foreign_1_0,16,3,5,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_list_has_foreign'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__hlds__hlds_goal__goal_list_has_foreign_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
MR_def_label(fn__hlds__hlds_goal__goal_list_has_foreign_1_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_list_has_foreign_1_0_i3);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(2);
MR_def_label(fn__hlds__hlds_goal__goal_list_has_foreign_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(1, MR_r1, 0);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__goal_list_has_foreign_1_0_i5);
MR_def_label(fn__hlds__hlds_goal__goal_list_has_foreign_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_list_has_foreign_1_0_i4);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(2);
MR_def_label(fn__hlds__hlds_goal__goal_list_has_foreign_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_succip_word = MR_sv(2);
	MR_GOTO_LAB(fn__hlds__hlds_goal__goal_list_has_foreign_1_0_i16);
#ifdef MR_maybe_local_thread_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__hlds_goal_module121)
	MR_init_entry1(fn__hlds__hlds_goal__case_list_has_foreign_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__case_list_has_foreign_1_0);
	MR_init_label4(fn__hlds__hlds_goal__case_list_has_foreign_1_0,16,3,5,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'case_list_has_foreign'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__hlds__hlds_goal__case_list_has_foreign_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
MR_def_label(fn__hlds__hlds_goal__case_list_has_foreign_1_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__case_list_has_foreign_1_0_i3);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(2);
MR_def_label(fn__hlds__hlds_goal__case_list_has_foreign_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r1, 0), 2);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_has_foreign_1_0,
		fn__hlds__hlds_goal__case_list_has_foreign_1_0_i5);
MR_def_label(fn__hlds__hlds_goal__case_list_has_foreign_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__case_list_has_foreign_1_0_i4);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(2);
MR_def_label(fn__hlds__hlds_goal__case_list_has_foreign_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_succip_word = MR_sv(2);
	MR_GOTO_LAB(fn__hlds__hlds_goal__case_list_has_foreign_1_0_i16);
#ifdef MR_maybe_local_thread_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__hlds_goal_module122)
	MR_init_entry1(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0);
	MR_init_label4(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,3,6,15,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_expr_has_subgoals'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0_i3);
	}
	MR_r2 = MR_tfield(3, MR_r1, 2);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,2)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0_i6);
	}
	MR_r2 = MR_tfield(3, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,7)) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0_i9);
	}
MR_def_label(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!((((((MR_tag(MR_r1) == MR_mktag((MR_Integer) 3)) && ((MR_Integer) MR_tfield(3, MR_r1, 0) == (MR_Integer) 0)) || (MR_tag(MR_r1) == MR_mktag((MR_Integer) 2))) || (MR_tag(MR_r1) == MR_mktag((MR_Integer) 1))) || (MR_tag(MR_r1) == MR_mktag((MR_Integer) 0))))) {
		MR_GOTO_LAB(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module123)
	MR_init_entry1(fn__hlds__hlds_goal__true_goal_expr_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__true_goal_expr_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'true_goal_expr'/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_define_entry(mercury__fn__hlds__hlds_goal__true_goal_expr_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(3,4,0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module124)
	MR_init_entry1(fn__hlds__hlds_goal__true_goal_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__true_goal_0_0);
	MR_init_label3(fn__hlds__hlds_goal__true_goal_0_0,3,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'true_goal'/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_define_entry(mercury__fn__hlds__hlds_goal__true_goal_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,4,0);
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_reachable_1_0,
		fn__hlds__hlds_goal__true_goal_0_0_i3);
MR_def_label(fn__hlds__hlds_goal__true_goal_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__true_goal_0_0_i5);
MR_def_label(fn__hlds__hlds_goal__true_goal_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		fn__hlds__hlds_goal__true_goal_0_0_i6);
MR_def_label(fn__hlds__hlds_goal__true_goal_0_0,6)
	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_r2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module125)
	MR_init_entry1(fn__hlds__hlds_goal__true_goal_with_context_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__true_goal_with_context_1_0);
	MR_init_label1(fn__hlds__hlds_goal__true_goal_with_context_1_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'true_goal_with_context'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__true_goal_with_context_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		fn__hlds__hlds_goal__true_goal_with_context_1_0_i2);
MR_def_label(fn__hlds__hlds_goal__true_goal_with_context_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 1);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 7);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_tempr2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_tempr2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_tempr2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_tempr2, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_tempr2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_tempr2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_tempr2, 7) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tempr2;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module126)
	MR_init_entry1(fn__hlds__hlds_goal__fail_goal_expr_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__fail_goal_expr_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'fail_goal_expr'/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_define_entry(mercury__fn__hlds__hlds_goal__fail_goal_expr_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_TAG_COMMON(3,5,0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module127)
	MR_init_entry1(fn__hlds__hlds_goal__fail_goal_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__fail_goal_0_0);
	MR_init_label3(fn__hlds__hlds_goal__fail_goal_0_0,3,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'fail_goal'/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_define_entry(mercury__fn__hlds__hlds_goal__fail_goal_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(3,5,0);
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		fn__hlds__hlds_goal__fail_goal_0_0_i3);
MR_def_label(fn__hlds__hlds_goal__fail_goal_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__fail_goal_0_0_i5);
MR_def_label(fn__hlds__hlds_goal__fail_goal_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 7;
	MR_r4 = (MR_Integer) 0;
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		fn__hlds__hlds_goal__fail_goal_0_0_i6);
MR_def_label(fn__hlds__hlds_goal__fail_goal_0_0,6)
	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_r2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module128)
	MR_init_entry1(fn__hlds__hlds_goal__fail_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__fail_goal_info_0_0);
	MR_init_label2(fn__hlds__hlds_goal__fail_goal_info_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'fail_goal_info'/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_define_entry(mercury__fn__hlds__hlds_goal__fail_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		fn__hlds__hlds_goal__fail_goal_info_0_0_i2);
MR_def_label(fn__hlds__hlds_goal__fail_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(fn__set__init_0_0,
		fn__hlds__hlds_goal__fail_goal_info_0_0_i4);
MR_def_label(fn__hlds__hlds_goal__fail_goal_info_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 7;
	MR_r4 = (MR_Integer) 0;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_init_5_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__hlds_goal_module129)
	MR_init_entry1(fn__hlds__hlds_goal__fail_goal_with_context_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__hlds__hlds_goal__fail_goal_with_context_1_0);
	MR_init_label1(fn__hlds__hlds_goal__fail_goal_with_context_1_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'fail_goal_with_context'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__fn__hlds__hlds_goal__fail_goal_with_context_1_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__fail_goal_0_0,
		fn__hlds__hlds_goal__fail_goal_with_context_1_0_i2);
MR_def_label(fn__hlds__hlds_goal__fail_goal_with_context_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_r1, 1);
	MR_tempr2 = MR_tfield(0, MR_tempr1, 7);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_tfield(0, MR_r2, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_tfield(0, MR_r2, 4) = MR_tfield(0, MR_tempr2, 4);
	MR_tfield(0, MR_r2, 5) = MR_tfield(0, MR_tempr2, 5);
	MR_tfield(0, MR_r2, 6) = MR_tfield(0, MR_tempr2, 6);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr2, 0) = MR_tfield(0, MR_tempr1, 0);
	MR_tfield(0, MR_tempr2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_tempr2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_tfield(0, MR_tempr2, 3) = MR_tfield(0, MR_tempr1, 3);
	MR_tfield(0, MR_tempr2, 4) = MR_tfield(0, MR_tempr1, 4);
	MR_tfield(0, MR_tempr2, 5) = MR_tfield(0, MR_tempr1, 5);
	MR_tfield(0, MR_tempr2, 6) = MR_tfield(0, MR_tempr1, 6);
	MR_tfield(0, MR_tempr2, 7) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tempr2;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module130)
	MR_init_entry1(hlds__hlds_goal__goal_list_nonlocals_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_list_nonlocals_2_0);
	MR_init_label1(hlds__hlds_goal__goal_list_nonlocals_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_list_nonlocals'/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__hlds__hlds_goal__goal_list_nonlocals_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__goal_list_nonlocals_2_0_i3);
MR_def_label(hlds__hlds_goal__goal_list_nonlocals_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,4);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,3,1);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_hlds__instmap__type_ctor_info_instmap_delta_0;

MR_BEGIN_MODULE(hlds__hlds_goal_module131)
	MR_init_entry1(hlds__hlds_goal__goal_list_instmap_delta_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_list_instmap_delta_2_0);
	MR_init_label1(hlds__hlds_goal__goal_list_instmap_delta_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_list_instmap_delta'/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__hlds__hlds_goal__goal_list_instmap_delta_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_reachable_1_0,
		hlds__hlds_goal__goal_list_instmap_delta_2_0_i2);
MR_def_label(hlds__hlds_goal__goal_list_instmap_delta_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__instmap, instmap_delta);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,3,2);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module132)
	MR_init_entry1(hlds__hlds_goal__goal_list_determinism_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_list_determinism_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_list_determinism'/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__hlds__hlds_goal__goal_list_determinism_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, determinism);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,3,3);
	MR_r4 = MR_tempr1;
	MR_r5 = (MR_Integer) 0;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module133)
	MR_init_entry1(hlds__hlds_goal__goal_list_purity_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__goal_list_purity_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_list_purity'/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__hlds__hlds_goal__goal_list_purity_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, purity);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,3,4);
	MR_r4 = MR_tempr1;
	MR_r5 = (MR_Integer) 0;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__map_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module134)
	MR_init_entry1(hlds__hlds_goal__set_goal_contexts_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__set_goal_contexts_3_0);
	MR_init_label10(hlds__hlds_goal__set_goal_contexts_3_0,2,6,4,11,9,15,16,17,14,21)
	MR_init_label10(hlds__hlds_goal__set_goal_contexts_3_0,20,25,24,31,33,30,38,39,37,43)
	MR_init_label3(hlds__hlds_goal__set_goal_contexts_3_0,28,49,47)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'set_goal_contexts'/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__hlds__hlds_goal__set_goal_contexts_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r2, 0);
	MR_r2 = MR_tfield(0, MR_r2, 1);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_context_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i2);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i4);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,5);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(hlds__hlds_goal__set_goal_contexts_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(1) = MR_tfield(3, MR_tempr2, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_r1;
	MR_r4 = MR_tfield(3, MR_tempr2, 2);
	}
	MR_np_call_localret_ent(list__map_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i6);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 1) = MR_sv(1);
	MR_tfield(3, MR_r2, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i9);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,6);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(hlds__hlds_goal__set_goal_contexts_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_r1;
	MR_r4 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(list__map_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i11);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i14);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_tfield(3, MR_tempr1, 1);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(5) = MR_tfield(3, MR_tempr1, 4);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i15);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i16);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(5);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i17);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 4) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i20);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i21);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i24);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 1);
	MR_r1 = MR_tempr2;
	MR_r2 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i25);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 5;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i28);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(3, MR_sv(2), 1);
	MR_r3 = MR_tempr1;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i30);
	}
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_tfield(1, MR_tempr1, 0);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 1);
	MR_sv(5) = MR_tfield(1, MR_tempr1, 2);
	MR_sv(6) = MR_tfield(1, MR_tempr1, 3);
	MR_sv(7) = MR_tfield(1, MR_tempr1, 5);
	MR_sv(8) = MR_tfield(1, MR_tempr1, 6);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(1, MR_tempr1, 4);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i31);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,7);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(hlds__hlds_goal__set_goal_contexts_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_r1;
	MR_r4 = MR_sv(7);
	}
	MR_np_call_localret_ent(list__map_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i33);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 7);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 2) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 3) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 4) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 5) = MR_r1;
	MR_tfield(1, MR_tempr1, 6) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r3,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i37);
	}
	MR_sv(2) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_tempr1, 1);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i38);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(3);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i39);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_tempr2 = MR_r3;
	MR_sv(1) = MR_tfield(2, MR_tempr2, 0);
	MR_sv(3) = MR_tfield(2, MR_tempr2, 1);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tfield(2, MR_tempr2, 2);
	}
	MR_np_localcall_lab(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i43);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(2, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 7;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr2;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(hlds__hlds_goal__set_goal_contexts_3_0_i47);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,8);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(hlds__hlds_goal__set_case_contexts_3_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(1) = MR_tfield(3, MR_tempr2, 1);
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = MR_r1;
	MR_r4 = MR_tfield(3, MR_tempr2, 3);
	}
	MR_np_call_localret_ent(list__map_3_0,
		hlds__hlds_goal__set_goal_contexts_3_0_i49);
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 4);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(3, MR_tempr1, 3) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(hlds__hlds_goal__set_goal_contexts_3_0,47)
	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_r2;
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module135)
	MR_init_entry1(hlds__hlds_goal__create_atomic_complicated_unification_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__create_atomic_complicated_unification_7_0);
	MR_init_label4(hlds__hlds_goal__create_atomic_complicated_unification_7_0,4,6,7,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'create_atomic_complicated_unification'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__create_atomic_complicated_unification_7_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(7) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r4;
	MR_tfield(0, MR_tempr1, 1) = MR_r5;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r6;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,0,7);
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(3,6,0);
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		hlds__hlds_goal__create_atomic_complicated_unification_7_0_i4);
MR_def_label(hlds__hlds_goal__create_atomic_complicated_unification_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__create_atomic_complicated_unification_7_0_i6);
MR_def_label(hlds__hlds_goal__create_atomic_complicated_unification_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_np_call_localret_ent(set__init_1_0,
		hlds__hlds_goal__create_atomic_complicated_unification_7_0_i7);
MR_def_label(hlds__hlds_goal__create_atomic_complicated_unification_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_sv(11) = (MR_Integer) -1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_np_call_localret_ent(fn__map__init_0_0,
		hlds__hlds_goal__create_atomic_complicated_unification_7_0_i9);
MR_def_label(hlds__hlds_goal__create_atomic_complicated_unification_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 7);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 6) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(10);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(11);
	MR_tfield(0, MR_tempr1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 7) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_tfield(0, MR_r2, 2) = MR_sv(5);
	MR_tfield(0, MR_r2, 3) = MR_sv(6);
	MR_tfield(0, MR_r2, 4) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_tempr1;
	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__hlds_goal_module136)
	MR_init_entry1(hlds__hlds_goal__create_pure_atomic_complicated_unification_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__create_pure_atomic_complicated_unification_6_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'create_pure_atomic_complicated_unification'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__create_pure_atomic_complicated_unification_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r6 = (MR_Integer) 0;
	MR_np_tailcall_ent(hlds__hlds_goal__create_atomic_complicated_unification_7_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__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_1_0);
MR_decl_entry(fn__hlds__instmap__instmap_delta_bind_var_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module137)
	MR_init_entry1(hlds__hlds_goal__make_simple_assign_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_simple_assign_5_0);
	MR_init_label3(hlds__hlds_goal__make_simple_assign_5_0,11,12,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_simple_assign'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_simple_assign_5_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 2);
	MR_sv(4) = MR_tempr1;
	MR_tfield(2, MR_tempr1, 0) = MR_r1;
	MR_tfield(2, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_sv(5) = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_r3;
	MR_tfield(0, MR_tempr2, 1) = MR_r4;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_r2;
	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_r1;
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(0,0,10);
	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(fn__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_1_0,
		hlds__hlds_goal__make_simple_assign_5_0_i11);
MR_def_label(hlds__hlds_goal__make_simple_assign_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		hlds__hlds_goal__make_simple_assign_5_0_i12);
MR_def_label(hlds__hlds_goal__make_simple_assign_5_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 1;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		hlds__hlds_goal__make_simple_assign_5_0_i13);
MR_def_label(hlds__hlds_goal__make_simple_assign_5_0,13)
	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(2);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(7);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__instmap__instmap_delta_bind_no_var_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module138)
	MR_init_entry1(hlds__hlds_goal__make_simple_test_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_simple_test_5_0);
	MR_init_label3(hlds__hlds_goal__make_simple_test_5_0,10,11,12)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_simple_test'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_simple_test_5_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_sv(4) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	MR_tfield(3, MR_tempr1, 2) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_sv(5) = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_r3;
	MR_tfield(0, MR_tempr2, 1) = MR_r4;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_r2;
	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_r1;
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(0,0,11);
	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(fn__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_1_0,
		hlds__hlds_goal__make_simple_test_5_0_i10);
MR_def_label(hlds__hlds_goal__make_simple_test_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		hlds__hlds_goal__make_simple_test_5_0_i11);
MR_def_label(hlds__hlds_goal__make_simple_test_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 1;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		hlds__hlds_goal__make_simple_test_5_0_i12);
MR_def_label(hlds__hlds_goal__make_simple_test_5_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 1);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 3) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tempr1;
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(7);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(set__singleton_set_2_1);
MR_decl_entry(hlds__instmap__instmap_delta_insert_var_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module139)
	MR_init_entry1(hlds__hlds_goal__make_const_construction_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_const_construction_3_0);
	MR_init_label4(hlds__hlds_goal__make_const_construction_3_0,13,14,15,16)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_const_construction'/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__hlds__hlds_goal__make_const_construction_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_tempr1, 2) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_r2;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	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, 3, (MR_Integer) 3);
	MR_sv(3) = MR_tempr4;
	MR_tfield(3, MR_tempr4, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr4, 1) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr4, 2) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr3, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr3, 1) = MR_tempr4;
	MR_tag_alloc_heap(MR_tempr5, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr5, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr5, 1) = MR_tempr4;
	MR_tag_alloc_heap(MR_tempr6, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr6, 0) = MR_tempr3;
	MR_tfield(0, MR_tempr6, 1) = MR_tempr5;
	MR_tag_alloc_heap(MR_tempr7, 0, (MR_Integer) 7);
	MR_tfield(0, MR_tempr7, 0) = MR_r1;
	MR_tfield(0, MR_tempr7, 1) = MR_r2;
	MR_tfield(0, MR_tempr7, 2) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr7, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr7, 4) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(0, MR_tempr7, 5) = (MR_Integer) 0;
	MR_tfield(0, MR_tempr7, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr8, 0, (MR_Integer) 5);
	MR_sv(2) = MR_tempr8;
	MR_tfield(0, MR_tempr8, 0) = MR_r1;
	MR_tfield(0, MR_tempr8, 1) = MR_tempr1;
	MR_tfield(0, MR_tempr8, 2) = MR_tempr6;
	MR_tfield(0, MR_tempr8, 3) = MR_tempr7;
	MR_tfield(0, MR_tempr8, 4) = (MR_Word) MR_TAG_COMMON(0,0,6);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(1);
	}
	MR_np_call_localret_ent(set__singleton_set_2_1,
		hlds__hlds_goal__make_const_construction_3_0_i13);
MR_def_label(hlds__hlds_goal__make_const_construction_3_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_reachable_1_0,
		hlds__hlds_goal__make_const_construction_3_0_i14);
MR_def_label(hlds__hlds_goal__make_const_construction_3_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_insert_var_4_0,
		hlds__hlds_goal__make_const_construction_3_0_i15);
MR_def_label(hlds__hlds_goal__make_const_construction_3_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		hlds__hlds_goal__make_const_construction_3_0_i16);
MR_def_label(hlds__hlds_goal__make_const_construction_3_0,16)
	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_r2;
	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__hlds_goal_module140)
	MR_init_entry1(hlds__hlds_goal__make_int_const_construction_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_int_const_construction_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_int_const_construction'/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__hlds__hlds_goal__make_int_const_construction_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__make_const_construction_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__hlds_goal_module141)
	MR_init_entry1(hlds__hlds_goal__make_string_const_construction_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_string_const_construction_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_string_const_construction'/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__hlds__hlds_goal__make_string_const_construction_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__make_const_construction_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__hlds_goal_module142)
	MR_init_entry1(hlds__hlds_goal__make_float_const_construction_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_float_const_construction_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_float_const_construction'/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__hlds__hlds_goal__make_float_const_construction_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__make_const_construction_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__hlds_goal_module143)
	MR_init_entry1(hlds__hlds_goal__make_char_const_construction_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_char_const_construction_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_char_const_construction'/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__hlds__hlds_goal__make_char_const_construction_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_r2;
	MR_r2 = MR_tempr1;
	MR_np_tailcall_ent(hlds__hlds_goal__make_const_construction_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(varset__new_maybe_named_var_4_0);
MR_decl_entry(fn__parse_tree__builtin_lib_types__int_type_0_0);
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module144)
	MR_init_entry1(hlds__hlds_goal__make_int_const_construction_alloc_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_int_const_construction_alloc_8_0);
	MR_init_label4(hlds__hlds_goal__make_int_const_construction_alloc_8_0,2,3,5,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_int_const_construction_alloc'/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__hlds_goal__make_int_const_construction_alloc_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(varset__new_maybe_named_var_4_0,
		hlds__hlds_goal__make_int_const_construction_alloc_8_0_i2);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__int_type_0_0,
		hlds__hlds_goal__make_int_const_construction_alloc_8_0_i3);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(4);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		hlds__hlds_goal__make_int_const_construction_alloc_8_0_i5);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_int_const_construction_alloc_8_0_i7);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__parse_tree__builtin_lib_types__string_type_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module145)
	MR_init_entry1(hlds__hlds_goal__make_string_const_construction_alloc_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_string_const_construction_alloc_8_0);
	MR_init_label4(hlds__hlds_goal__make_string_const_construction_alloc_8_0,2,3,5,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_string_const_construction_alloc'/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__hlds_goal__make_string_const_construction_alloc_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(varset__new_maybe_named_var_4_0,
		hlds__hlds_goal__make_string_const_construction_alloc_8_0_i2);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__string_type_0_0,
		hlds__hlds_goal__make_string_const_construction_alloc_8_0_i3);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(4);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		hlds__hlds_goal__make_string_const_construction_alloc_8_0_i5);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_r2, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_string_const_construction_alloc_8_0_i7);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__parse_tree__builtin_lib_types__float_type_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module146)
	MR_init_entry1(hlds__hlds_goal__make_float_const_construction_alloc_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_float_const_construction_alloc_8_0);
	MR_init_label4(hlds__hlds_goal__make_float_const_construction_alloc_8_0,2,3,5,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_float_const_construction_alloc'/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__hlds_goal__make_float_const_construction_alloc_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(varset__new_maybe_named_var_4_0,
		hlds__hlds_goal__make_float_const_construction_alloc_8_0_i2);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__float_type_0_0,
		hlds__hlds_goal__make_float_const_construction_alloc_8_0_i3);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(4);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		hlds__hlds_goal__make_float_const_construction_alloc_8_0_i5);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_r2, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_float_const_construction_alloc_8_0_i7);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__parse_tree__builtin_lib_types__char_type_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module147)
	MR_init_entry1(hlds__hlds_goal__make_char_const_construction_alloc_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_char_const_construction_alloc_8_0);
	MR_init_label4(hlds__hlds_goal__make_char_const_construction_alloc_8_0,2,3,5,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_char_const_construction_alloc'/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__hlds_goal__make_char_const_construction_alloc_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(varset__new_maybe_named_var_4_0,
		hlds__hlds_goal__make_char_const_construction_alloc_8_0_i2);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__char_type_0_0,
		hlds__hlds_goal__make_char_const_construction_alloc_8_0_i3);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(4);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		hlds__hlds_goal__make_char_const_construction_alloc_8_0_i5);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_r2, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_char_const_construction_alloc_8_0_i7);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module148)
	MR_init_entry1(hlds__hlds_goal__make_const_construction_alloc_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_const_construction_alloc_9_0);
	MR_init_label3(hlds__hlds_goal__make_const_construction_alloc_9_0,2,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_const_construction_alloc'/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__hlds_goal__make_const_construction_alloc_9_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r5;
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_np_call_localret_ent(varset__new_maybe_named_var_4_0,
		hlds__hlds_goal__make_const_construction_alloc_9_0_i2);
MR_def_label(hlds__hlds_goal__make_const_construction_alloc_9_0,2)
	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(3);
	MR_sv(3) = MR_r2;
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		hlds__hlds_goal__make_const_construction_alloc_9_0_i4);
MR_def_label(hlds__hlds_goal__make_const_construction_alloc_9_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_const_construction_alloc_9_0_i5);
MR_def_label(hlds__hlds_goal__make_const_construction_alloc_9_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	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(hlds__hlds_pred__proc_info_create_var_from_type_5_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module149)
	MR_init_entry1(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0);
	MR_init_label3(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0,2,3,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_int_const_construction_alloc_in_proc'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__int_type_0_0,
		hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0_i2);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_create_var_from_type_5_0,
		hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0_i3);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0_i5);
MR_def_label(hlds__hlds_goal__make_int_const_construction_alloc_in_proc_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module150)
	MR_init_entry1(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0);
	MR_init_label3(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0,2,3,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_string_const_construction_alloc_in_proc'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__string_type_0_0,
		hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0_i2);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_create_var_from_type_5_0,
		hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0_i3);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 4;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0_i5);
MR_def_label(hlds__hlds_goal__make_string_const_construction_alloc_in_proc_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module151)
	MR_init_entry1(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0);
	MR_init_label3(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0,2,3,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_float_const_construction_alloc_in_proc'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__float_type_0_0,
		hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0_i2);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_create_var_from_type_5_0,
		hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0_i3);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0_i5);
MR_def_label(hlds__hlds_goal__make_float_const_construction_alloc_in_proc_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module152)
	MR_init_entry1(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0);
	MR_init_label3(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0,2,3,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_char_const_construction_alloc_in_proc'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__char_type_0_0,
		hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0_i2);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_create_var_from_type_5_0,
		hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0_i3);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr1, 1) = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0_i5);
MR_def_label(hlds__hlds_goal__make_char_const_construction_alloc_in_proc_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module153)
	MR_init_entry1(hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0);
	MR_init_label2(hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_const_construction_alloc_in_proc'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_create_var_from_type_5_0,
		hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0_i2);
MR_def_label(hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0_i3);
MR_def_label(hlds__hlds_goal__make_const_construction_alloc_in_proc_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module154)
	MR_init_entry1(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0);
	MR_init_label4(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0,7,4,3,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_pragma_foreign_var_names_2'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0_i2);
	}
MR_def_label(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(1, MR_r1, 0);
	if (MR_LTAGS_TESTR(MR_r3,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0_i4);
	}
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_GOTO_LAB(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0_i3);
MR_def_label(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(0, MR_tfield(1, MR_r3, 0), 0);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = MR_tempr1;
	}
MR_def_label(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0_i7);
	}
MR_def_label(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__reverse_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module155)
	MR_init_entry1(hlds__hlds_goal__get_pragma_foreign_var_names_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__get_pragma_foreign_var_names_2_0);
	MR_init_label1(hlds__hlds_goal__get_pragma_foreign_var_names_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_pragma_foreign_var_names'/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__hlds__hlds_goal__get_pragma_foreign_var_names_2_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(hlds__hlds_goal__get_pragma_foreign_var_names_2_3_0,
		hlds__hlds_goal__get_pragma_foreign_var_names_2_0_i2);
MR_def_label(hlds__hlds_goal__get_pragma_foreign_var_names_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(list__reverse_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__length_2_0);
MR_decl_entry(fn__parse_tree__prog_mode__ground_inst_0_0);
MR_decl_entry(fn__parse_tree__prog_mode__free_inst_0_0);
MR_decl_entry(list__duplicate_3_0);
MR_decl_entry(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module156)
	MR_init_entry1(hlds__hlds_goal__construct_functor_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__construct_functor_4_0);
	MR_init_label10(hlds__hlds_goal__construct_functor_4_0,3,5,6,8,9,12,13,15,16,19)
	MR_init_label3(hlds__hlds_goal__construct_functor_4_0,24,25,26)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'construct_functor'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__construct_functor_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__length_2_0,
		hlds__hlds_goal__construct_functor_4_0_i3);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_sv(5) = MR_tempr1;
	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_sv(3);
	MR_sv(4) = MR_r1;
	}
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i5);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i6);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(6);
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i8);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__free_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i9);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i12);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i13);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(7);
	MR_sv(7) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i15);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__free_inst_0_0,
		hlds__hlds_goal__construct_functor_4_0_i16);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(7);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, uni_mode);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(list__duplicate_3_0,
		hlds__hlds_goal__construct_functor_4_0_i19);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,19)
	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, 0, (MR_Integer) 7);
	MR_tempr4 = MR_sv(1);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tempr5 = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_tempr5;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(0, MR_tempr1, 5) = (MR_Integer) 0;
	MR_tfield(0, MR_tempr1, 6) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 5);
	MR_sv(2) = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr2, 3) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 4) = (MR_Word) MR_TAG_COMMON(0,0,6);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr4;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr5;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	}
	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__hlds_goal__construct_functor_4_0_i24);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tfield(0, MR_sv(2), 0);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		hlds__hlds_goal__construct_functor_4_0_i25);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		hlds__hlds_goal__construct_functor_4_0_i26);
MR_def_label(hlds__hlds_goal__construct_functor_4_0,26)
	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_r2;
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__instmap__instmap_delta_bind_vars_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module157)
	MR_init_entry1(hlds__hlds_goal__deconstruct_functor_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__deconstruct_functor_4_0);
	MR_init_label10(hlds__hlds_goal__deconstruct_functor_4_0,3,5,6,8,9,12,13,15,16,19)
	MR_init_label3(hlds__hlds_goal__deconstruct_functor_4_0,24,25,26)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'deconstruct_functor'/4 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury__hlds__hlds_goal__deconstruct_functor_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__length_2_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i3);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 3);
	MR_sv(5) = MR_tempr1;
	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_sv(3);
	MR_sv(4) = MR_r1;
	}
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i5);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i6);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(6);
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__free_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i8);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i9);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(7);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i12);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i13);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = MR_sv(7);
	MR_sv(7) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__free_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i15);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i16);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(7);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, uni_mode);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(list__duplicate_3_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i19);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,19)
	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) 6);
	MR_tempr4 = MR_sv(1);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr4;
	MR_tfield(1, MR_tempr1, 1) = MR_sv(2);
	MR_tempr5 = MR_sv(3);
	MR_tfield(1, MR_tempr1, 2) = MR_tempr5;
	MR_tfield(1, MR_tempr1, 3) = MR_r1;
	MR_tfield(1, MR_tempr1, 4) = (MR_Integer) 1;
	MR_tfield(1, MR_tempr1, 5) = (MR_Integer) 1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 2) = MR_sv(6);
	MR_tfield(0, MR_tempr2, 3) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 4) = (MR_Word) MR_TAG_COMMON(0,0,6);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr4;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	}
	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__hlds_goal__deconstruct_functor_4_0_i24);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i25);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_5_0,
		hlds__hlds_goal__deconstruct_functor_4_0_i26);
MR_def_label(hlds__hlds_goal__deconstruct_functor_4_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module158)
	MR_init_entry1(hlds__hlds_goal__construct_tuple_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__construct_tuple_3_0);
	MR_init_label1(hlds__hlds_goal__construct_tuple_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'construct_tuple'/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__hlds__hlds_goal__construct_tuple_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(list__length_2_0,
		hlds__hlds_goal__construct_tuple_3_0_i3);
MR_def_label(hlds__hlds_goal__construct_tuple_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_r2, 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(hlds__hlds_goal__construct_functor_4_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module159)
	MR_init_entry1(hlds__hlds_goal__deconstruct_tuple_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__deconstruct_tuple_3_0);
	MR_init_label1(hlds__hlds_goal__deconstruct_tuple_3_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'deconstruct_tuple'/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__hlds__hlds_goal__deconstruct_tuple_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_np_call_localret_ent(list__length_2_0,
		hlds__hlds_goal__deconstruct_tuple_3_0_i3);
MR_def_label(hlds__hlds_goal__deconstruct_tuple_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 2, (MR_Integer) 1);
	MR_tfield(2, MR_r2, 0) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(hlds__hlds_goal__deconstruct_functor_4_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_101_97_114_99_104_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module160)
	MR_init_entry1(hlds__hlds_goal__follow_subn_until_fixpoint_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__follow_subn_until_fixpoint_3_0);
	MR_init_label3(hlds__hlds_goal__follow_subn_until_fixpoint_3_0,18,4,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'follow_subn_until_fixpoint'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__follow_subn_until_fixpoint_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
MR_def_label(hlds__hlds_goal__follow_subn_until_fixpoint_3_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r5 = MR_tfield(0, MR_r1, 1);
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_r5;
	MR_sv(3) = 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_r2;
	MR_r4 = MR_sv(3);
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_115_101_97_114_99_104_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		hlds__hlds_goal__follow_subn_until_fixpoint_3_0_i4);
MR_def_label(hlds__hlds_goal__follow_subn_until_fixpoint_3_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(hlds__hlds_goal__follow_subn_until_fixpoint_3_0_i2);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(1);
	MR_tfield(0, MR_r1, 1) = MR_r2;
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(4);
	MR_GOTO_LAB(hlds__hlds_goal__follow_subn_until_fixpoint_3_0_i18);
MR_def_label(hlds__hlds_goal__follow_subn_until_fixpoint_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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_r2;
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_100_101_116_95_105_110_115_101_114_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module161)
	MR_init_entry1(hlds__hlds_goal__set_case_contexts_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__set_case_contexts_3_0);
	MR_init_label1(hlds__hlds_goal__set_case_contexts_3_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'set_case_contexts'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__set_case_contexts_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r2, 0);
	MR_sv(2) = MR_tfield(0, MR_r2, 1);
	MR_r2 = MR_tfield(0, MR_r2, 2);
	MR_np_call_localret_ent(hlds__hlds_goal__set_goal_contexts_3_0,
		hlds__hlds_goal__set_case_contexts_3_0_i2);
MR_def_label(hlds__hlds_goal__set_case_contexts_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_sv(2);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module162)
	MR_init_entry1(__Unify___hlds__hlds_goal__atomic_goal_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__atomic_goal_type_0_0);
MR_BEGIN_CODE

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

MR_decl_entry(private_builtin__builtin_compare_int_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module163)
	MR_init_entry1(__Compare___hlds__hlds_goal__atomic_goal_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__atomic_goal_type_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__atomic_goal_type_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___term__var_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module164)
	MR_init_entry1(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0,4,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0_i8);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__atomic_interface_vars_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	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(__Compare___term__var_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module165)
	MR_init_entry1(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__atomic_interface_vars_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0_i21);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module166)
	MR_init_entry1(__Unify___hlds__hlds_goal__builtin_state_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__builtin_state_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__hlds_goal__builtin_state_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__hlds_goal_module167)
	MR_init_entry1(__Compare___hlds__hlds_goal__builtin_state_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__builtin_state_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__hlds_goal__builtin_state_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__hlds_goal_module168)
	MR_init_entry1(__Unify___hlds__hlds_goal__call_unify_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__call_unify_context_0_0);
	MR_init_label4(__Unify___hlds__hlds_goal__call_unify_context_0_0,4,6,10,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__hlds_goal__call_unify_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__call_unify_context_0_0_i10);
	}
	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_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__call_unify_context_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__call_unify_context_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__call_unify_context_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__unify_rhs_0_0,
		__Unify___hlds__hlds_goal__call_unify_context_0_0_i6);
MR_def_label(__Unify___hlds__hlds_goal__call_unify_context_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__call_unify_context_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__unify_context_0_0);
MR_def_label(__Unify___hlds__hlds_goal__call_unify_context_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__call_unify_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_BEGIN_MODULE(hlds__hlds_goal_module169)
	MR_init_entry1(__Compare___hlds__hlds_goal__call_unify_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__call_unify_context_0_0);
	MR_init_label5(__Compare___hlds__hlds_goal__call_unify_context_0_0,3,2,5,9,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__call_unify_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__call_unify_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__hlds_goal__call_unify_context_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__call_unify_context_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__call_unify_context_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__call_unify_context_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__call_unify_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__call_unify_context_0_0_i29);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__unify_rhs_0_0,
		__Compare___hlds__hlds_goal__call_unify_context_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__call_unify_context_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__call_unify_context_0_0_i29);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__unify_context_0_0);
MR_def_label(__Compare___hlds__hlds_goal__call_unify_context_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module170)
	MR_init_entry1(__Unify___hlds__hlds_goal__can_cgc_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__can_cgc_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__hlds_goal__can_cgc_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__hlds_goal_module171)
	MR_init_entry1(__Compare___hlds__hlds_goal__can_cgc_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__can_cgc_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__hlds_goal__can_cgc_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_decl_entry(__Unify___parse_tree__prog_data__cons_id_0_0);
MR_decl_entry(__Unify___list__list_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module172)
	MR_init_entry1(__Unify___hlds__hlds_goal__case_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__case_0_0);
	MR_init_label4(__Unify___hlds__hlds_goal__case_0_0,4,6,10,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__hlds_goal__case_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__case_0_0_i10);
	}
	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_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__cons_id_0_0,
		__Unify___hlds__hlds_goal__case_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__case_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__case_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__case_0_0_i6);
MR_def_label(__Unify___hlds__hlds_goal__case_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__case_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__case_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__case_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___parse_tree__prog_data__cons_id_0_0);
MR_decl_entry(__Compare___list__list_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module173)
	MR_init_entry1(__Compare___hlds__hlds_goal__case_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__case_0_0);
	MR_init_label5(__Compare___hlds__hlds_goal__case_0_0,3,2,5,9,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__case_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__case_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__hlds_goal__case_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__case_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__case_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__cons_id_0_0,
		__Compare___hlds__hlds_goal__case_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__case_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__case_0_0_i29);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__case_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__case_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__case_0_0_i29);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__case_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module174)
	MR_init_entry1(__Unify___hlds__hlds_goal__cast_kind_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__cast_kind_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__hlds_goal__cast_kind_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__hlds_goal_module175)
	MR_init_entry1(__Compare___hlds__hlds_goal__cast_kind_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__cast_kind_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__hlds_goal__cast_kind_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__hlds_goal_module176)
	MR_init_entry1(__Unify___hlds__hlds_goal__catch_part_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__catch_part_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__catch_part_0_0,4,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__catch_part_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__catch_part_0_0_i8);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,
		__Unify___hlds__hlds_goal__catch_part_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__catch_part_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__catch_part_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__catch_part_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__catch_part_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module177)
	MR_init_entry1(__Compare___hlds__hlds_goal__catch_part_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__catch_part_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__catch_part_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__catch_part_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__catch_part_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__catch_part_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__catch_part_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__catch_part_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,
		__Compare___hlds__hlds_goal__catch_part_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__catch_part_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__catch_part_0_0_i21);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__catch_part_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module178)
	MR_init_entry1(__Unify___hlds__hlds_goal__cell_is_unique_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__cell_is_unique_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__hlds_goal__cell_is_unique_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__hlds_goal_module179)
	MR_init_entry1(__Compare___hlds__hlds_goal__cell_is_unique_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__cell_is_unique_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__hlds_goal__cell_is_unique_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__hlds_goal_module180)
	MR_init_entry1(__Unify___hlds__hlds_goal__cell_to_reuse_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__cell_to_reuse_0_0);
	MR_init_label4(__Unify___hlds__hlds_goal__cell_to_reuse_0_0,4,6,10,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__hlds_goal__cell_to_reuse_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__cell_to_reuse_0_0_i10);
	}
	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_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__cell_to_reuse_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__cell_to_reuse_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__cell_to_reuse_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__cell_to_reuse_0_0_i6);
MR_def_label(__Unify___hlds__hlds_goal__cell_to_reuse_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__cell_to_reuse_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, needs_update);
	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__hlds_goal__cell_to_reuse_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__cell_to_reuse_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module181)
	MR_init_entry1(__Compare___hlds__hlds_goal__cell_to_reuse_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__cell_to_reuse_0_0);
	MR_init_label5(__Compare___hlds__hlds_goal__cell_to_reuse_0_0,3,2,5,9,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__cell_to_reuse_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__cell_to_reuse_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__hlds_goal__cell_to_reuse_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__cell_to_reuse_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__cell_to_reuse_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__cell_to_reuse_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__cell_to_reuse_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__cell_to_reuse_0_0_i29);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__cell_to_reuse_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__cell_to_reuse_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__cell_to_reuse_0_0_i29);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, needs_update);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__cell_to_reuse_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module182)
	MR_init_entry1(__Unify___hlds__hlds_goal__conj_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__conj_type_0_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(hlds__hlds_goal_module183)
	MR_init_entry1(__Compare___hlds__hlds_goal__conj_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__conj_type_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__conj_type_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___maybe__maybe_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module184)
	MR_init_entry1(__Unify___hlds__hlds_goal__construct_sub_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__construct_sub_info_0_0);
	MR_init_label4(__Unify___hlds__hlds_goal__construct_sub_info_0_0,15,5,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__construct_sub_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__construct_sub_info_0_0_i15);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__construct_sub_info_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__construct_sub_info_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__construct_sub_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__construct_sub_info_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr2, 1);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,12);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__construct_sub_info_0_0_i8);
MR_def_label(__Unify___hlds__hlds_goal__construct_sub_info_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__construct_sub_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, term_size_value);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
MR_def_label(__Unify___hlds__hlds_goal__construct_sub_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___maybe__maybe_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module185)
	MR_init_entry1(__Compare___hlds__hlds_goal__construct_sub_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__construct_sub_info_0_0);
	MR_init_label6(__Compare___hlds__hlds_goal__construct_sub_info_0_0,25,7,5,9,12,17)
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__hlds_goal__construct_sub_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__construct_sub_info_0_0_i25);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__construct_sub_info_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__construct_sub_info_0_0_i7);
	}
MR_def_label(__Compare___hlds__hlds_goal__construct_sub_info_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__construct_sub_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__construct_sub_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__construct_sub_info_0_0_i9);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__construct_sub_info_0_0,9)
	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(1, MR_tempr5, 1);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,12);
	MR_r2 = MR_tfield(1, MR_tempr3, 0);
	MR_r3 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__construct_sub_info_0_0_i12);
MR_def_label(__Compare___hlds__hlds_goal__construct_sub_info_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__construct_sub_info_0_0_i17);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, term_size_value);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___maybe__maybe_1_0);
MR_def_label(__Compare___hlds__hlds_goal__construct_sub_info_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module186)
	MR_init_entry1(__Unify___hlds__hlds_goal__contains_trace_goal_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__contains_trace_goal_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__hlds_goal__contains_trace_goal_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__hlds_goal_module187)
	MR_init_entry1(__Compare___hlds__hlds_goal__contains_trace_goal_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__contains_trace_goal_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__hlds_goal__contains_trace_goal_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_decl_entry(__Unify___set_ordlist__set_ordlist_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module188)
	MR_init_entry1(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__ctgc_goal_info_0_0);
	MR_init_label4(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0,5,7,11,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__hlds_goal__ctgc_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0_i11);
	}
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__ctgc_goal_info_0_0_i5);
MR_def_label(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__ctgc_goal_info_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__reuse_description_0_0);
MR_def_label(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__ctgc_goal_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(6);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___set_ordlist__set_ordlist_1_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module189)
	MR_init_entry1(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__ctgc_goal_info_0_0);
	MR_init_label5(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0,3,2,6,11,40)
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__hlds_goal__ctgc_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0_i3);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__ctgc_goal_info_0_0_i6);
MR_def_label(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0_i40);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__ctgc_goal_info_0_0_i11);
MR_def_label(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0_i40);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__reuse_description_0_0);
MR_def_label(__Compare___hlds__hlds_goal__ctgc_goal_info_0_0,40)
	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__hlds_goal_module190)
	MR_init_entry1(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0);
	MR_init_label2(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0,4,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__hlds_goal__dp_coverage_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0_i4);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	if ((MR_r1 != MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0_i1);
	}
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	MR_r2 = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = (MR_r1 == MR_r2);
	MR_decr_sp(2);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp(2);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__dp_coverage_goal_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp(2);
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module191)
	MR_init_entry1(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0_i21);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__dp_coverage_goal_info_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module192)
	MR_init_entry1(__Unify___hlds__hlds_goal__dp_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__dp_goal_info_0_0);
	MR_init_label2(__Unify___hlds__hlds_goal__dp_goal_info_0_0,6,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__dp_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__dp_goal_info_0_0_i6);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_tempr3 = MR_tfield(0, MR_tempr1, 0);
	MR_tempr4 = MR_tfield(0, MR_tempr2, 0);
	if ((MR_tempr3 != MR_tempr4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__dp_goal_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, dp_coverage_goal_info);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tfield(0, MR_tempr2, 1);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
	}
MR_def_label(__Unify___hlds__hlds_goal__dp_goal_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__dp_goal_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module193)
	MR_init_entry1(__Compare___hlds__hlds_goal__dp_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__dp_goal_info_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__dp_goal_info_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__dp_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__dp_goal_info_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__dp_goal_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__dp_goal_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__dp_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__dp_goal_info_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__dp_goal_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__dp_goal_info_0_0_i21);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, dp_coverage_goal_info);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___maybe__maybe_1_0);
MR_def_label(__Compare___hlds__hlds_goal__dp_goal_info_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module194)
	MR_init_entry1(__Unify___hlds__hlds_goal__force_pruning_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__force_pruning_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__hlds_goal__force_pruning_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__hlds_goal_module195)
	MR_init_entry1(__Compare___hlds__hlds_goal__force_pruning_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__force_pruning_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__hlds_goal__force_pruning_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_decl_entry(__Unify___parse_tree__prog_data__mer_type_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module196)
	MR_init_entry1(__Unify___hlds__hlds_goal__foreign_arg_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__foreign_arg_0_0);
	MR_init_label5(__Unify___hlds__hlds_goal__foreign_arg_0_0,4,7,9,11,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__hlds_goal__foreign_arg_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__foreign_arg_0_0_i11);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__foreign_arg_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__foreign_arg_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__foreign_arg_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__foreign_arg_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__foreign_arg_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__foreign_arg_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__mer_type_0_0,
		__Unify___hlds__hlds_goal__foreign_arg_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__foreign_arg_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__foreign_arg_0_0_i1);
	}
	MR_r1 = (MR_sv(3) == MR_sv(6));
	MR_decr_sp_and_return(7);
MR_def_label(__Unify___hlds__hlds_goal__foreign_arg_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__foreign_arg_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___parse_tree__prog_data__mer_type_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module197)
	MR_init_entry1(__Compare___hlds__hlds_goal__foreign_arg_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__foreign_arg_0_0);
	MR_init_label6(__Compare___hlds__hlds_goal__foreign_arg_0_0,3,2,5,10,14,50)
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__hlds_goal__foreign_arg_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__foreign_arg_0_0_i3);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__foreign_arg_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__foreign_arg_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__foreign_arg_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(6) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__foreign_arg_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__foreign_arg_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__foreign_arg_0_0_i50);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__foreign_arg_0_0_i10);
MR_def_label(__Compare___hlds__hlds_goal__foreign_arg_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__foreign_arg_0_0_i50);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__mer_type_0_0,
		__Compare___hlds__hlds_goal__foreign_arg_0_0_i14);
MR_def_label(__Compare___hlds__hlds_goal__foreign_arg_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__foreign_arg_0_0_i50);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__foreign_arg_0_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module198)
	MR_init_entry1(__Unify___hlds__hlds_goal__from_ground_term_kind_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__from_ground_term_kind_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__hlds_goal__from_ground_term_kind_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__hlds_goal_module199)
	MR_init_entry1(__Compare___hlds__hlds_goal__from_ground_term_kind_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__from_ground_term_kind_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__hlds_goal__from_ground_term_kind_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_decl_entry(__Unify___parse_tree__prog_data__class_id_0_0);
MR_decl_entry(__Unify___parse_tree__prog_data__simple_call_id_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module200)
	MR_init_entry1(__Unify___hlds__hlds_goal__generic_call_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__generic_call_0_0);
	MR_init_label8(__Unify___hlds__hlds_goal__generic_call_0_0,5,9,11,7,33,15,18,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__hlds_goal__generic_call_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i33);
	}
	MR_incr_sp(7);
	MR_sv(7) = (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,3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_tempr1, 0);
	MR_r2 = MR_tfield(3, MR_tempr2, 0);
	MR_r1 = (MR_r1 == MR_r2);
	MR_decr_sp(7);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i7);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(1, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(1, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(1, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(1, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__generic_call_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(4))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__class_id_0_0,
		__Unify___hlds__hlds_goal__generic_call_0_0_i11);
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Unify___parse_tree__prog_data__simple_call_id_0_0);
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i15);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(2, MR_sv(1), 0);
	MR_tempr2 = MR_tfield(2, MR_sv(2), 0);
	MR_r1 = (strcmp((char *) (MR_Word *) MR_tempr1, (char *) (MR_Word *) MR_tempr2) == 0);
	MR_decr_sp_and_return(7);
	}
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__generic_call_0_0_i18);
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(4))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	if ((MR_sv(2) != MR_sv(5))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__generic_call_0_0_i1);
	}
	MR_r1 = (MR_sv(3) == MR_sv(6));
	MR_decr_sp_and_return(7);
MR_def_label(__Unify___hlds__hlds_goal__generic_call_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___parse_tree__prog_data__class_id_0_0);
MR_decl_entry(__Compare___parse_tree__prog_data__simple_call_id_0_0);
MR_decl_entry(private_builtin__builtin_compare_string_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module201)
	MR_init_entry1(__Compare___hlds__hlds_goal__generic_call_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__generic_call_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__generic_call_0_0,3,2,7,9,5,13,16,20,24,14)
	MR_init_label10(__Compare___hlds__hlds_goal__generic_call_0_0,11,34,95,35,32,39,40,41,43,47)
	MR_init_label2(__Compare___hlds__hlds_goal__generic_call_0_0,51,182)
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__hlds_goal__generic_call_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i3);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i7);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 0);
	MR_r2 = MR_tfield(3, MR_sv(2), 0);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i9);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i95);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i11);
	}
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i13);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i14);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(6) = MR_tfield(1, MR_tempr5, 1);
	MR_sv(5) = MR_tfield(1, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(1, MR_tempr5, 3);
	MR_tempr6 = MR_sv(2);
	MR_sv(3) = MR_tfield(1, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(1, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr3, 0);
	MR_r3 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__generic_call_0_0_i16);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i182);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__generic_call_0_0_i20);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i182);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__class_id_0_0,
		__Compare___hlds__hlds_goal__generic_call_0_0_i24);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i182);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Compare___parse_tree__prog_data__simple_call_id_0_0);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i95);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i32);
	}
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i34);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i35);
	}
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i95);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_3_0);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i39);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i40);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i41);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,41)
	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_sv(6) = MR_tfield(0, MR_tempr5, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 3);
	MR_tempr6 = MR_sv(2);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__generic_call_0_0_i43);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i182);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__generic_call_0_0_i47);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i182);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__generic_call_0_0_i51);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__generic_call_0_0_i182);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__generic_call_0_0,182)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module202)
	MR_init_entry1(__Unify___hlds__hlds_goal__goal_feature_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__goal_feature_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__hlds_goal__goal_feature_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__hlds_goal_module203)
	MR_init_entry1(__Compare___hlds__hlds_goal__goal_feature_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__goal_feature_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__hlds_goal__goal_feature_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__hlds_goal_module204)
	MR_init_entry1(__Unify___hlds__hlds_goal__goal_is_mdprof_inst_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__goal_is_mdprof_inst_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__hlds_goal__goal_is_mdprof_inst_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__hlds_goal_module205)
	MR_init_entry1(__Compare___hlds__hlds_goal__goal_is_mdprof_inst_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__goal_is_mdprof_inst_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__hlds_goal__goal_is_mdprof_inst_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__hlds_goal_module206)
	MR_init_entry1(__Unify___hlds__hlds_goal__goal_trivial_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__goal_trivial_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__hlds_goal__goal_trivial_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__hlds_goal_module207)
	MR_init_entry1(__Compare___hlds__hlds_goal__goal_trivial_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__goal_trivial_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__hlds_goal__goal_trivial_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__hlds_goal_module208)
	MR_init_entry1(__Unify___hlds__hlds_goal__has_subgoals_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__has_subgoals_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__hlds_goal__has_subgoals_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__hlds_goal_module209)
	MR_init_entry1(__Compare___hlds__hlds_goal__has_subgoals_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__has_subgoals_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__hlds_goal__has_subgoals_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__hlds_goal_module210)
	MR_init_entry1(__Unify___hlds__hlds_goal__hlds_goal_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__hlds_goal_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__hlds_goal_0_0,4,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__hlds_goal_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_0_0_i8);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_info_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module211)
	MR_init_entry1(__Compare___hlds__hlds_goal__hlds_goal_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__hlds_goal_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__hlds_goal_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__hlds_goal_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_0_0_i21);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_info_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___hlds__hlds_llds__llds_code_gen_details_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module212)
	MR_init_entry1(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,12,5,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i12);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i1);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_llds__llds_code_gen_details_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___hlds__hlds_llds__llds_code_gen_details_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module213)
	MR_init_entry1(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,18,7,5,9)
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__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i18);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i7);
	}
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0_i9);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_llds__llds_code_gen_details_0_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___mdbcomp__prim_data__sym_name_0_0);
MR_decl_entry(__Unify___pair__pair_2_0);
MR_decl_entry(__Unify___parse_tree__prog_data__pragma_foreign_proc_attributes_0_0);
MR_decl_entry(__Unify___parse_tree__prog_data__pragma_foreign_code_impl_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module214)
	MR_init_entry1(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__hlds_goal_expr_0_0);
	MR_init_label10(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,7,10,12,5,17,19,14,25,27,29)
	MR_init_label10(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,31,23,37,39,41,44,35,48,52,59)
	MR_init_label10(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,61,63,56,67,73,71,140,77,82,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__hlds_goal__hlds_goal_expr_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i140);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_tempr3 = MR_tempr1;
	MR_sv(1) = MR_tfield(2, MR_tempr3, 1);
	MR_tempr4 = MR_tempr2;
	MR_sv(2) = MR_tfield(2, MR_tempr3, 2);
	MR_sv(3) = MR_tfield(2, MR_tempr3, 3);
	MR_sv(4) = MR_tfield(2, MR_tempr4, 1);
	MR_sv(5) = MR_tfield(2, MR_tempr4, 2);
	MR_sv(6) = MR_tfield(2, MR_tempr4, 3);
	MR_r1 = MR_tfield(2, MR_tempr3, 0);
	MR_r2 = MR_tfield(2, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__generic_call_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i10);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i12);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_sv(3) == MR_sv(6));
	MR_decr_sp_and_return(13);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i14);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(1, MR_tempr3, 0);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(1, MR_tempr4, 0);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_tempr1 = MR_tfield(1, MR_tempr3, 1);
	MR_tempr2 = MR_tfield(1, MR_tempr4, 1);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_tempr1 = MR_tempr3;
	MR_sv(1) = MR_tfield(1, MR_tempr1, 3);
	MR_tempr2 = MR_tempr4;
	MR_sv(2) = MR_tfield(1, MR_tempr1, 4);
	MR_sv(3) = MR_tfield(1, MR_tempr1, 5);
	MR_sv(4) = MR_tfield(1, MR_tempr2, 3);
	MR_sv(5) = MR_tfield(1, MR_tempr2, 4);
	MR_sv(6) = MR_tfield(1, MR_tempr2, 5);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(1, MR_tempr1, 2);
	MR_r3 = MR_tfield(1, MR_tempr2, 2);
	}
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i17);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(4))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, call_unify_context);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i19);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___mdbcomp__prim_data__sym_name_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i23);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 4);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i25);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__unify_rhs_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i27);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___pair__pair_2_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i29);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__unification_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i31);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(8);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__unify_context_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i35);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr1, 4);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 5);
	MR_sv(5) = MR_tfield(3, MR_tempr1, 6);
	MR_sv(6) = MR_tfield(3, MR_tempr1, 7);
	MR_sv(7) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(8) = MR_tfield(3, MR_tempr2, 3);
	MR_sv(9) = MR_tfield(3, MR_tempr2, 4);
	MR_sv(10) = MR_tfield(3, MR_tempr2, 5);
	MR_sv(11) = MR_tfield(3, MR_tempr2, 6);
	MR_sv(12) = MR_tfield(3, MR_tempr2, 7);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__pragma_foreign_proc_attributes_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i37);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(7))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	if ((MR_sv(2) != MR_sv(8))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_sv(1) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i39);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(10);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i41);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(11);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i44);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(12);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___parse_tree__prog_data__pragma_foreign_code_impl_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i48);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr3, 1);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr4, 1);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tfield(3, MR_tempr3, 2);
	MR_r3 = MR_tfield(3, MR_tempr4, 2);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i52);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tfield(3, MR_sv(1), 1);
	MR_r3 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,6)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i56);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr1, 4);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(5) = MR_tfield(3, MR_tempr2, 3);
	MR_sv(6) = MR_tfield(3, MR_tempr2, 4);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i59);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i61);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i63);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i67);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,5)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i71);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__scope_reason_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i73);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,7)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i77);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,140)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i82);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(3))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_expr_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	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(__Compare___mdbcomp__prim_data__sym_name_0_0);
MR_decl_entry(__Compare___pair__pair_2_0);
MR_decl_entry(__Compare___parse_tree__prog_data__pragma_foreign_proc_attributes_0_0);
MR_decl_entry(__Compare___parse_tree__prog_data__pragma_foreign_code_impl_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module215)
	MR_init_entry1(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__hlds_goal_expr_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,3,2,9,14,18,7,25,26,27,28)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,29,30,31,32,5,36,39,43,48,52)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,56,37,65,66,67,68,69,70,71,34)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,75,76,79,83,87,91,77,99,100,101)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,102,103,104,73,108,109,110,113,117,121)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,125,129,134,111,144,145,146,147,148,106)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,152,153,154,155,158,156,163,164,165,166)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,150,170,171,172,173,174,175,177,178,179)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,168,183,184,185,186,187,188,192,196,200)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,189,207,208,181,212,213,214,215,216,217)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,218,219,221,210,225,226,227,228,229,230)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,231,232,235,233,223,243,244,245,246,247)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,248,249,250,251,241,255,256,257,258,259)
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,416,260,261,262,263,420,264,266,270,1257)
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__hlds_goal__hlds_goal_expr_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i3);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(6) = MR_tfield(2, MR_tempr5, 1);
	MR_sv(5) = MR_tfield(2, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(2, MR_tempr5, 3);
	MR_tempr6 = MR_sv(2);
	MR_sv(3) = MR_tfield(2, MR_tempr6, 3);
	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___hlds__hlds_goal__generic_call_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i14);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i18);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i25);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i26);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i27);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i28);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i29);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i30);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i31);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i32);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i420);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i34);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i36);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i37);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(10) = MR_tfield(1, MR_tempr5, 1);
	MR_sv(9) = MR_tfield(1, MR_tempr5, 2);
	MR_sv(8) = MR_tfield(1, MR_tempr5, 3);
	MR_sv(7) = MR_tfield(1, MR_tempr5, 4);
	MR_sv(6) = MR_tfield(1, MR_tempr5, 5);
	MR_tempr6 = MR_sv(2);
	MR_sv(5) = MR_tfield(1, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(1, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(1, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(1, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(1, 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(1, MR_tempr3, 0);
	MR_r2 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i39);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i43);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i48);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i52);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, call_unify_context);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i56);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___mdbcomp__prim_data__sym_name_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i65);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i66);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i67);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i68);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i69);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i70);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i71);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i420);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i73);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i75);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i76);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i77);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(8) = MR_tfield(0, MR_tempr5, 1);
	MR_sv(7) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 4);
	MR_tempr6 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i79);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__unify_rhs_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i83);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___pair__pair_2_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i87);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__unification_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i91);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__unify_context_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i99);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i100);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,100)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i101);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i102);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,102)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i103);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i104);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i420);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i106);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i108);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i109);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,109)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i110);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i111);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(12) = MR_tfield(3, MR_tempr5, 2);
	MR_sv(11) = MR_tfield(3, MR_tempr5, 3);
	MR_sv(10) = MR_tfield(3, MR_tempr5, 4);
	MR_sv(9) = MR_tfield(3, MR_tempr5, 5);
	MR_sv(8) = MR_tfield(3, MR_tempr5, 6);
	MR_sv(7) = MR_tfield(3, MR_tempr5, 7);
	MR_tempr6 = MR_sv(2);
	MR_sv(6) = MR_tfield(3, MR_tempr6, 7);
	MR_sv(5) = MR_tfield(3, MR_tempr6, 6);
	MR_sv(4) = MR_tfield(3, MR_tempr6, 5);
	MR_sv(3) = MR_tfield(3, MR_tempr6, 4);
	MR_tempr1 = MR_tfield(3, MR_tempr6, 3);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__pragma_foreign_proc_attributes_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i113);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(12);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i117);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i121);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,121)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i125);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,125)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i129);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,129)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i134);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,134)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___parse_tree__prog_data__pragma_foreign_code_impl_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i144);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,144)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i145);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,145)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i146);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,146)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i147);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,147)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i148);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,148)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i420);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i150);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i152);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,152)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i153);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,153)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i154);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,154)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i155);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,155)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i156);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i158);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,158)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,156)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i163);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,163)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i164);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,164)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i165);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,165)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i166);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,166)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i420);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,150)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i168);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i170);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,170)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i171);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,171)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i172);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,172)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i173);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,173)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i174);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,174)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i175);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tfield(3, MR_sv(1), 1);
	MR_r3 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,175)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i177);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,177)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i178);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,178)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i179);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,179)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i420);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,168)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i181);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i183);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,183)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i184);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,184)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i185);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,185)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i186);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,186)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i187);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,187)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i188);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,188)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i189);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(6) = MR_tfield(3, MR_tempr5, 2);
	MR_sv(5) = MR_tfield(3, MR_tempr5, 3);
	MR_sv(4) = MR_tfield(3, MR_tempr5, 4);
	MR_tempr6 = MR_sv(2);
	MR_sv(3) = MR_tfield(3, MR_tempr6, 4);
	MR_tempr1 = MR_tfield(3, MR_tempr6, 3);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(3, MR_tempr3, 1);
	MR_r3 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i192);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,192)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i196);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,196)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i200);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,200)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,189)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i207);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,207)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i208);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,208)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i416);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,181)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i210);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i212);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,212)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i213);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,213)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i214);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,214)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i215);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,215)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i216);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,216)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i217);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,217)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i218);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,218)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i219);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,219)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i221);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,221)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i416);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,210)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i223);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i225);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,225)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i226);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,226)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i227);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,227)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i228);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,228)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i229);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,229)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i230);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,230)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i231);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,231)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i232);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,232)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i233);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__scope_reason_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i235);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,235)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,233)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i416);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,223)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i241);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i243);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,243)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i244);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,244)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i245);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,245)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i246);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,246)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i247);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,247)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i248);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,248)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i249);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,249)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i250);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,250)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i251);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,251)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i416);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,241)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i255);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,255)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i256);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,256)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i257);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,257)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i258);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,258)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i259);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,259)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i260);
	}
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,416)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,260)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,6)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i261);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,261)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i262);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,262)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i263);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,263)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,7)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i264);
	}
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,420)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,264)
	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_sv(4) = MR_tfield(3, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(3, MR_tempr5, 3);
	MR_tempr6 = MR_sv(2);
	MR_tempr1 = MR_tfield(3, MR_tempr6, 3);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_tempr3, 1);
	MR_r3 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i266);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,266)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i270);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,270)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0_i1257);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_expr_0_0,1257)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(__Unify___term__context_0_0);
MR_decl_entry(__Unify___mdbcomp__goal_path__reverse_goal_path_0_0);
MR_decl_entry(__Unify___tree234__tree234_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module216)
	MR_init_entry1(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0);
	MR_init_label8(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,4,6,10,12,14,16,20,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i20);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(9) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(10) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(11) = MR_tfield(0, MR_tempr2, 5);
	MR_sv(12) = MR_tfield(0, MR_tempr2, 6);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__context_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___mdbcomp__goal_path__reverse_goal_path_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i6);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(8);
	MR_np_call_localret_ent(__Unify___tree234__tree234_2_0,
		__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i10);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, ctgc_goal_info);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i12);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, rbmm_goal_info);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(10);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i14);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, mode_constr_goal_info);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(11);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i16);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, dp_goal_info);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(12);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	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(__Compare___term__context_0_0);
MR_decl_entry(__Compare___mdbcomp__goal_path__reverse_goal_path_0_0);
MR_decl_entry(__Compare___tree234__tree234_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module217)
	MR_init_entry1(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0);
	MR_init_label9(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,3,2,5,9,15,19,23,27,84)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i3);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(12) = MR_tfield(0, MR_tempr5, 6);
	MR_sv(11) = MR_tfield(0, MR_tempr5, 5);
	MR_sv(10) = MR_tfield(0, MR_tempr5, 4);
	MR_sv(9) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(8) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(7) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(6) = MR_tfield(0, MR_tempr6, 6);
	MR_sv(5) = MR_tfield(0, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__context_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i84);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(__Compare___mdbcomp__goal_path__reverse_goal_path_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i84);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(8);
	MR_np_call_localret_ent(__Compare___tree234__tree234_2_0,
		__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i15);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i84);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, ctgc_goal_info);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i19);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i84);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, rbmm_goal_info);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(10);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i23);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i84);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, mode_constr_goal_info);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(11);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i27);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0_i84);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, dp_goal_info);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(12);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___maybe__maybe_1_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(__Unify___hlds__instmap__instmap_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module218)
	MR_init_entry1(__Unify___hlds__hlds_goal__hlds_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__hlds_goal_info_0_0);
	MR_init_label6(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,4,7,9,11,15,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__hlds_goal__hlds_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i15);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_tempr3 = MR_tfield(0, MR_tempr1, 0);
	MR_tempr4 = MR_tfield(0, MR_tempr2, 0);
	if ((MR_tempr3 != MR_tempr4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	MR_tempr3 = MR_tempr1;
	MR_sv(1) = MR_tfield(0, MR_tempr3, 2);
	MR_tempr4 = MR_tempr2;
	MR_sv(2) = MR_tfield(0, MR_tempr3, 3);
	MR_sv(3) = MR_tfield(0, MR_tempr3, 4);
	MR_sv(4) = MR_tfield(0, MR_tempr3, 5);
	MR_sv(5) = MR_tfield(0, MR_tempr3, 6);
	MR_sv(6) = MR_tfield(0, MR_tempr3, 7);
	MR_sv(7) = MR_tfield(0, MR_tempr4, 2);
	MR_sv(8) = MR_tfield(0, MR_tempr4, 3);
	MR_sv(9) = MR_tfield(0, MR_tempr4, 4);
	MR_sv(10) = MR_tfield(0, MR_tempr4, 5);
	MR_sv(11) = MR_tfield(0, MR_tempr4, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr4, 7);
	MR_r1 = MR_tfield(0, MR_tempr3, 1);
	MR_r2 = MR_tfield(0, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__instmap__instmap_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	if ((MR_sv(2) != MR_sv(8))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	if ((MR_sv(4) != MR_sv(10))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(11);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,
		__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i11);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__hlds_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(12);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_extra_info_0_0);
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__hlds_goal_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	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(__Compare___hlds__instmap__instmap_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module219)
	MR_init_entry1(__Compare___hlds__hlds_goal__hlds_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__hlds_goal_info_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,3,2,5,9,14,18,22,26,30,94)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__hlds_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i3);
	}
	MR_incr_sp(15);
	MR_sv(15) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(14) = MR_tfield(0, MR_tempr5, 7);
	MR_sv(13) = MR_tfield(0, MR_tempr5, 6);
	MR_sv(12) = MR_tfield(0, MR_tempr5, 5);
	MR_sv(11) = MR_tfield(0, MR_tempr5, 4);
	MR_sv(10) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(9) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(8) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(7) = MR_tfield(0, MR_tempr6, 7);
	MR_sv(6) = MR_tfield(0, MR_tempr6, 6);
	MR_sv(5) = MR_tfield(0, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_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__hlds_goal__hlds_goal_info_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(__Compare___hlds__instmap__instmap_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i14);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i18);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(11);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i22);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(12);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i26);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(13);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__hlds_goal_code_gen_info_0_0,
		__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i30);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__hlds_goal_info_0_0_i94);
	}
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(14);
	MR_succip_word = MR_sv(15);
	MR_decr_sp(15);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_extra_info_0_0);
MR_def_label(__Compare___hlds__hlds_goal__hlds_goal_info_0_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(15);
#ifdef MR_maybe_local_thread_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__hlds_goal_module220)
	MR_init_entry1(__Unify___hlds__hlds_goal__hlds_goals_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__hlds_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__hlds_goal__hlds_goals_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module221)
	MR_init_entry1(__Compare___hlds__hlds_goal__hlds_goals_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__hlds_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__hlds_goal__hlds_goals_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module222)
	MR_init_entry1(__Unify___hlds__hlds_goal__ho_values_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__ho_values_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__hlds_goal__ho_values_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module223)
	MR_init_entry1(__Compare___hlds__hlds_goal__ho_values_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__ho_values_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__hlds_goal__ho_values_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,1);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module224)
	MR_init_entry1(__Unify___hlds__hlds_goal__how_to_construct_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__how_to_construct_0_0);
	MR_init_label5(__Unify___hlds__hlds_goal__how_to_construct_0_0,5,6,22,7,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__how_to_construct_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__how_to_construct_0_0_i22);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__how_to_construct_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__how_to_construct_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__how_to_construct_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___hlds__hlds_goal__how_to_construct_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__how_to_construct_0_0_i7);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__how_to_construct_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_r3 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__how_to_construct_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__how_to_construct_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__how_to_construct_0_0_i1);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__cell_to_reuse_0_0);
MR_def_label(__Unify___hlds__hlds_goal__how_to_construct_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module225)
	MR_init_entry1(__Compare___hlds__hlds_goal__how_to_construct_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__how_to_construct_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__how_to_construct_0_0,7,8,5,79,12,50,10,17,18,15)
	MR_init_label3(__Compare___hlds__hlds_goal__how_to_construct_0_0,22,23,24)
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__hlds_goal__how_to_construct_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i50);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp(3);
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i8);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i79);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i10);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i12);
	}
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i79);
	}
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i15);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i17);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i18);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i79);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_r3 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i22);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i23);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__how_to_construct_0_0_i24);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__how_to_construct_0_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__cell_to_reuse_0_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module226)
	MR_init_entry1(__Unify___hlds__hlds_goal__is_conditional_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__is_conditional_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__hlds_goal__is_conditional_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__hlds_goal_module227)
	MR_init_entry1(__Compare___hlds__hlds_goal__is_conditional_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__is_conditional_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__hlds_goal__is_conditional_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__hlds_goal_module228)
	MR_init_entry1(__Unify___hlds__hlds_goal__is_existential_construction_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__is_existential_construction_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__hlds_goal__is_existential_construction_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__hlds_goal_module229)
	MR_init_entry1(__Compare___hlds__hlds_goal__is_existential_construction_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__is_existential_construction_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__hlds_goal__is_existential_construction_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__hlds_goal_module230)
	MR_init_entry1(__Unify___hlds__hlds_goal__is_first_disjunct_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__is_first_disjunct_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__hlds_goal__is_first_disjunct_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__hlds_goal_module231)
	MR_init_entry1(__Compare___hlds__hlds_goal__is_first_disjunct_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__is_first_disjunct_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__hlds_goal__is_first_disjunct_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__hlds_goal_module232)
	MR_init_entry1(__Unify___hlds__hlds_goal__missed_message_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__missed_message_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__hlds_goal__missed_message_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (strcmp((char *) (MR_Word *) MR_r1, (char *) (MR_Word *) MR_r2) == 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module233)
	MR_init_entry1(__Compare___hlds__hlds_goal__missed_message_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__missed_message_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__hlds_goal__missed_message_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_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__hlds_goal_module234)
	MR_init_entry1(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__mode_constr_goal_info_0_0);
	MR_init_label6(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,5,7,9,11,15,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__hlds_goal__mode_constr_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i15);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i5);
MR_def_label(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i11);
MR_def_label(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(8);
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(__Unify___set_ordlist__set_ordlist_1_0);
MR_def_label(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__mode_constr_goal_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module235)
	MR_init_entry1(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__mode_constr_goal_info_0_0);
	MR_init_label7(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,3,2,6,11,16,21,65)
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__hlds_goal__mode_constr_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i3);
	}
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(8) = MR_tfield(0, MR_tempr5, 4);
	MR_sv(7) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i6);
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i11);
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i16);
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i21);
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(8);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Compare___set_ordlist__set_ordlist_1_0);
MR_def_label(__Compare___hlds__hlds_goal__mode_constr_goal_info_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module236)
	MR_init_entry1(__Unify___hlds__hlds_goal__needs_update_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__needs_update_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__hlds_goal__needs_update_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__hlds_goal_module237)
	MR_init_entry1(__Compare___hlds__hlds_goal__needs_update_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__needs_update_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__hlds_goal__needs_update_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__hlds_goal_module238)
	MR_init_entry1(__Unify___hlds__hlds_goal__port_counts_give_coverage_after_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__port_counts_give_coverage_after_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__hlds_goal__port_counts_give_coverage_after_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__hlds_goal_module239)
	MR_init_entry1(__Compare___hlds__hlds_goal__port_counts_give_coverage_after_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__port_counts_give_coverage_after_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__hlds_goal__port_counts_give_coverage_after_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__hlds_goal_module240)
	MR_init_entry1(__Unify___hlds__hlds_goal__promise_solutions_kind_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__promise_solutions_kind_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__hlds_goal__promise_solutions_kind_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__hlds_goal_module241)
	MR_init_entry1(__Compare___hlds__hlds_goal__promise_solutions_kind_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__promise_solutions_kind_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__hlds_goal__promise_solutions_kind_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__hlds_goal_module242)
	MR_init_entry1(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__rbmm_goal_info_0_0);
	MR_init_label6(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,5,7,9,11,15,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__hlds_goal__rbmm_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i15);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i5);
MR_def_label(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___set_ordlist__set_ordlist_1_0,
		__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i11);
MR_def_label(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(8);
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(__Unify___set_ordlist__set_ordlist_1_0);
MR_def_label(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__rbmm_goal_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module243)
	MR_init_entry1(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__rbmm_goal_info_0_0);
	MR_init_label7(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,3,2,6,11,16,21,65)
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__hlds_goal__rbmm_goal_info_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i3);
	}
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(8) = MR_tfield(0, MR_tempr5, 4);
	MR_sv(7) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(6) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i6);
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i11);
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i16);
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Compare___set_ordlist__set_ordlist_1_0,
		__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i21);
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0_i65);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(8);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Compare___set_ordlist__set_ordlist_1_0);
MR_def_label(__Compare___hlds__hlds_goal__rbmm_goal_info_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module244)
	MR_init_entry1(__Unify___hlds__hlds_goal__removable_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__removable_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__hlds_goal__removable_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__hlds_goal_module245)
	MR_init_entry1(__Compare___hlds__hlds_goal__removable_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__removable_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__hlds_goal__removable_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__hlds_goal_module246)
	MR_init_entry1(__Unify___hlds__hlds_goal__reuse_description_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__reuse_description_0_0);
	MR_init_label6(__Unify___hlds__hlds_goal__reuse_description_0_0,5,6,7,29,11,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__hlds_goal__reuse_description_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i29);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__reuse_description_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___hlds__hlds_goal__reuse_description_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i7);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_r3 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__reuse_description_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i11);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i1);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__short_reuse_description_0_0);
MR_def_label(__Unify___hlds__hlds_goal__reuse_description_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__reuse_description_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__reuse_description_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 0);
	MR_r2 = MR_tfield(3, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__short_reuse_description_0_0);
MR_def_label(__Unify___hlds__hlds_goal__reuse_description_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module247)
	MR_init_entry1(__Compare___hlds__hlds_goal__reuse_description_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__reuse_description_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__reuse_description_0_0,7,8,9,5,13,71,14,15,119,11)
	MR_init_label10(__Compare___hlds__hlds_goal__reuse_description_0_0,19,20,17,26,27,28,83,24,32,33)
	MR_init_label1(__Compare___hlds__hlds_goal__reuse_description_0_0,34)
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__hlds_goal__reuse_description_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i71);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp(3);
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i8);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i9);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i119);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i11);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i13);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i14);
	}
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i17);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i19);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i20);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i119);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_r3 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i24);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i26);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i27);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i28);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i119);
	}
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_mask_field(MR_sv(1), 0);
	MR_r2 = MR_mask_field(MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__short_reuse_description_0_0);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i32);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i33);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i34);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__reuse_description_0_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__reuse_description_0_0_i83);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module248)
	MR_init_entry1(__Unify___hlds__hlds_goal__scope_reason_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__scope_reason_0_0);
	MR_init_label10(__Unify___hlds__hlds_goal__scope_reason_0_0,5,10,15,12,17,19,23,21,25,72)
	MR_init_label6(__Unify___hlds__hlds_goal__scope_reason_0_0,29,33,36,38,40,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__hlds_goal__scope_reason_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i72);
	}
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i10);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(2, MR_sv(1), 0);
	MR_tempr2 = MR_tfield(2, MR_sv(2), 0);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i12);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr2, 1);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__scope_reason_0_0_i15);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(9);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i17);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_r1 = (MR_r1 == MR_r2);
	MR_decr_sp_and_return(9);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i19);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_r1 = (MR_r1 == MR_r2);
	MR_decr_sp_and_return(9);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i21);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__scope_reason_0_0_i23);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(9);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i25);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_sv(1), 1);
	MR_r3 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i29);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_sv(1), 1);
	MR_tempr2 = MR_tfield(3, MR_sv(2), 1);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(9);
	}
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,5)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr1, 4);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 5);
	MR_sv(5) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(3, MR_tempr2, 3);
	MR_sv(7) = MR_tfield(3, MR_tempr2, 4);
	MR_sv(8) = MR_tfield(3, MR_tempr2, 5);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__scope_reason_0_0_i33);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__scope_reason_0_0_i36);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__scope_reason_0_0_i38);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, trace_mutable_var_hlds);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__scope_reason_0_0_i40);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__scope_reason_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(8);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__scope_reason_0_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_BEGIN_MODULE(hlds__hlds_goal_module249)
	MR_init_entry1(__Compare___hlds__hlds_goal__scope_reason_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__scope_reason_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,3,2,7,10,11,12,13,14,15,5)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,19,20,22,23,24,25,26,17,30,31)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,35,32,40,41,42,43,28,47,48,49)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,50,52,53,54,45,58,59,60,61,62)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,64,65,56,69,70,71,72,73,76,74)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,81,67,85,86,87,88,89,90,91,83)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,96,97,98,99,100,101,299,102,94,106)
	MR_init_label10(__Compare___hlds__hlds_goal__scope_reason_0_0,107,108,109,110,111,112,113,116,121,125)
	MR_init_label2(__Compare___hlds__hlds_goal__scope_reason_0_0,129,733)
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__hlds_goal__scope_reason_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i3);
	}
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i7);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(0, MR_sv(1), 0);
	MR_r3 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i10);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i11);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i12);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i13);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i14);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i17);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i19);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i20);
	}
	MR_r1 = MR_tfield(2, MR_sv(1), 0);
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i22);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i23);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i24);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i25);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i26);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i28);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i30);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i31);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i32);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(1, MR_tempr5, 1);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_tfield(1, MR_tempr3, 0);
	MR_r3 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__scope_reason_0_0_i35);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i733);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i40);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i41);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i42);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i43);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i45);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i47);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i48);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i49);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i50);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i52);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i53);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i54);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i56);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i58);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i59);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i60);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i61);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i62);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i64);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i65);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i67);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i69);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i70);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i71);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i72);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i73);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i74);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_tempr3, 1);
	MR_r3 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__scope_reason_0_0_i76);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i733);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i81);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i83);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i85);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i86);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i87);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i88);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i89);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i90);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i91);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_sv(1), 1);
	MR_r3 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i94);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i96);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i97);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i98);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i99);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i100);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,100)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i101);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i102);
	}
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,299)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,102)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i299);
	}
	MR_r1 = MR_tfield(3, MR_sv(1), 1);
	MR_r2 = MR_tfield(3, MR_sv(2), 1);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i106);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i107);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,107)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i108);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,3)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i109);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,109)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i110);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,4)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i111);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i112);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i113);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(9);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,113)
	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_sv(8) = MR_tfield(3, MR_tempr5, 2);
	MR_sv(7) = MR_tfield(3, MR_tempr5, 3);
	MR_sv(6) = MR_tfield(3, MR_tempr5, 4);
	MR_sv(5) = MR_tfield(3, MR_tempr5, 5);
	MR_tempr6 = MR_sv(2);
	MR_sv(4) = MR_tfield(3, MR_tempr6, 5);
	MR_sv(3) = MR_tfield(3, MR_tempr6, 4);
	MR_tempr1 = MR_tfield(3, MR_tempr6, 3);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r2 = MR_tfield(3, MR_tempr3, 1);
	MR_r3 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__scope_reason_0_0_i116);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i733);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__scope_reason_0_0_i121);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,121)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i733);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__scope_reason_0_0_i125);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,125)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i733);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, trace_mutable_var_hlds);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__scope_reason_0_0_i129);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,129)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__scope_reason_0_0_i733);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(9);
	MR_decr_sp(9);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__scope_reason_0_0,733)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(9);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module250)
	MR_init_entry1(__Unify___hlds__hlds_goal__short_reuse_description_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__short_reuse_description_0_0);
	MR_init_label6(__Unify___hlds__hlds_goal__short_reuse_description_0_0,5,8,10,26,6,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__short_reuse_description_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i26);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(7);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__short_reuse_description_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i6);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(1, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(1, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(1, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(1, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__short_reuse_description_0_0_i8);
MR_def_label(__Unify___hlds__hlds_goal__short_reuse_description_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(4))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__short_reuse_description_0_0_i10);
MR_def_label(__Unify___hlds__hlds_goal__short_reuse_description_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, needs_update);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__short_reuse_description_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__short_reuse_description_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(2, MR_tempr3, 0);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(2, MR_tempr4, 0);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__short_reuse_description_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = MR_tfield(2, MR_tempr3, 1);
	MR_r3 = MR_tfield(2, MR_tempr4, 1);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
MR_def_label(__Unify___hlds__hlds_goal__short_reuse_description_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module251)
	MR_init_entry1(__Compare___hlds__hlds_goal__short_reuse_description_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__short_reuse_description_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__short_reuse_description_0_0,54,55,5,11,14,18,22,9,30,31)
	MR_init_label2(__Compare___hlds__hlds_goal__short_reuse_description_0_0,33,38)
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__hlds_goal__short_reuse_description_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i54);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i55);
	}
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i9);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i11);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i55);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(6) = MR_tfield(1, MR_tempr5, 1);
	MR_sv(5) = MR_tfield(1, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(1, MR_tempr5, 3);
	MR_tempr6 = MR_sv(2);
	MR_sv(3) = MR_tfield(1, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(1, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr3, 0);
	MR_r3 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__short_reuse_description_0_0_i14);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i38);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__short_reuse_description_0_0_i18);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i38);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, cons_id);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__short_reuse_description_0_0_i22);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i38);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, needs_update);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(3);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i30);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i31);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(7);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,31)
	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(2, MR_tempr5, 1);
	MR_tempr6 = MR_sv(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(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__short_reuse_description_0_0_i33);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__short_reuse_description_0_0_i38);
	}
	MR_r1 = (MR_Word) MR_INT_CTOR_ADDR;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__short_reuse_description_0_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module252)
	MR_init_entry1(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__shorthand_goal_expr_0_0);
	MR_init_label10(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,7,9,13,15,17,5,23,48,21,28)
	MR_init_label2(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,30,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__hlds_goal__shorthand_goal_expr_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i48);
	}
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_tempr3 = MR_tfield(1, MR_tempr1, 0);
	MR_tempr4 = MR_tfield(1, MR_tempr2, 0);
	if ((MR_tempr3 != MR_tempr4)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_tempr3 = MR_tempr1;
	MR_sv(1) = MR_tfield(1, MR_tempr3, 2);
	MR_tempr4 = MR_tempr2;
	MR_sv(2) = MR_tfield(1, MR_tempr3, 3);
	MR_sv(3) = MR_tfield(1, MR_tempr3, 4);
	MR_sv(4) = MR_tfield(1, MR_tempr3, 5);
	MR_sv(5) = MR_tfield(1, MR_tempr3, 6);
	MR_sv(6) = MR_tfield(1, MR_tempr4, 2);
	MR_sv(7) = MR_tfield(1, MR_tempr4, 3);
	MR_sv(8) = MR_tfield(1, MR_tempr4, 4);
	MR_sv(9) = MR_tfield(1, MR_tempr4, 5);
	MR_sv(10) = MR_tfield(1, MR_tempr4, 6);
	MR_r1 = MR_tfield(1, MR_tempr3, 1);
	MR_r2 = MR_tfield(1, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__atomic_interface_vars_0_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,15);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i13);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i15);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i17);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, atomic_interface_vars);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(10);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i21);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i23);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_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_Word) MR_CTOR0_ADDR(hlds__hlds_goal, try_io_state_vars);
	MR_r2 = MR_tfield(2, MR_tempr1, 0);
	MR_r3 = MR_tfield(2, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___maybe__maybe_1_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i28);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i30);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__shorthand_goal_expr_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module253)
	MR_init_entry1(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__shorthand_goal_expr_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,3,2,9,13,17,23,27,31,7,5)
	MR_init_label9(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,96,44,47,42,53,54,56,60,181)
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__hlds_goal__shorthand_goal_expr_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i3);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(12) = MR_tfield(1, MR_tempr5, 1);
	MR_sv(11) = MR_tfield(1, MR_tempr5, 2);
	MR_sv(10) = MR_tfield(1, MR_tempr5, 3);
	MR_sv(9) = MR_tfield(1, MR_tempr5, 4);
	MR_sv(8) = MR_tfield(1, MR_tempr5, 5);
	MR_sv(7) = MR_tfield(1, MR_tempr5, 6);
	MR_tempr6 = MR_sv(2);
	MR_sv(6) = MR_tfield(1, MR_tempr6, 6);
	MR_sv(5) = MR_tfield(1, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(1, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(1, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(1, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(1, 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(1, MR_tempr3, 0);
	MR_r2 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = MR_sv(12);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i13);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__atomic_interface_vars_0_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i17);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,15);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i23);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i27);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i31);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, atomic_interface_vars);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(6);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i96);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i42);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i44);
	}
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i96);
	}
	{
	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(__Compare___hlds__hlds_goal__hlds_goal_0_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i47);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i53);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i54);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,54)
	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_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_Word) MR_CTOR0_ADDR(hlds__hlds_goal, try_io_state_vars);
	MR_r2 = MR_tfield(2, MR_tempr3, 0);
	MR_r3 = MR_tfield(2, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___maybe__maybe_1_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i56);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i60);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0_i181);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__shorthand_goal_expr_0_0,181)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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(__Unify___hlds__hlds_data__tagged_cons_id_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module254)
	MR_init_entry1(__Unify___hlds__hlds_goal__tagged_case_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__tagged_case_0_0);
	MR_init_label4(__Unify___hlds__hlds_goal__tagged_case_0_0,4,6,10,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__hlds_goal__tagged_case_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__tagged_case_0_0_i10);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_data__tagged_cons_id_0_0,
		__Unify___hlds__hlds_goal__tagged_case_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__tagged_case_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__tagged_case_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, tagged_cons_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__tagged_case_0_0_i6);
MR_def_label(__Unify___hlds__hlds_goal__tagged_case_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__tagged_case_0_0_i1);
	}
	if ((MR_sv(2) != MR_sv(5))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__tagged_case_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__tagged_case_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__tagged_case_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___hlds__hlds_data__tagged_cons_id_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module255)
	MR_init_entry1(__Compare___hlds__hlds_goal__tagged_case_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__tagged_case_0_0);
	MR_init_label6(__Compare___hlds__hlds_goal__tagged_case_0_0,3,2,5,9,13,37)
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__hlds_goal__tagged_case_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__tagged_case_0_0_i3);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__tagged_case_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__tagged_case_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__tagged_case_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(6) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_data__tagged_cons_id_0_0,
		__Compare___hlds__hlds_goal__tagged_case_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__tagged_case_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__tagged_case_0_0_i37);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_data, tagged_cons_id);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__tagged_case_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__tagged_case_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__tagged_case_0_0_i37);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__tagged_case_0_0_i13);
MR_def_label(__Compare___hlds__hlds_goal__tagged_case_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__tagged_case_0_0_i37);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__tagged_case_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module256)
	MR_init_entry1(__Unify___hlds__hlds_goal__term_size_value_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__term_size_value_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__term_size_value_0_0,14,5,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__term_size_value_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__term_size_value_0_0_i14);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__term_size_value_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__term_size_value_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
	}
MR_def_label(__Unify___hlds__hlds_goal__term_size_value_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__term_size_value_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__term_size_value_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(0, MR_sv(1), 0);
	MR_tempr2 = MR_tfield(0, MR_sv(2), 0);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(3);
	}
MR_def_label(__Unify___hlds__hlds_goal__term_size_value_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module257)
	MR_init_entry1(__Compare___hlds__hlds_goal__term_size_value_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__term_size_value_0_0);
	MR_init_label5(__Compare___hlds__hlds_goal__term_size_value_0_0,3,2,7,5,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__term_size_value_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__term_size_value_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__term_size_value_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__term_size_value_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__term_size_value_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__term_size_value_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__term_size_value_0_0_i7);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_sv(1), 0);
	MR_r3 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__term_size_value_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__term_size_value_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__term_size_value_0_0_i10);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__term_size_value_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_sv(1), 0);
	MR_r2 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_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__hlds_goal_module258)
	MR_init_entry1(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_init_label2(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0,4,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__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0_i4);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	if ((strcmp((char *) (MR_Word *) MR_r1, (char *) (MR_Word *) MR_r2) != 0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0_i1);
	}
	MR_r1 = MR_tfield(0, MR_tempr1, 1);
	MR_r2 = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = (strcmp((char *) (MR_Word *) MR_r1, (char *) (MR_Word *) MR_r2) == 0);
	MR_decr_sp(2);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp(2);
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__trace_mutable_var_hlds_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp(2);
	MR_r1 = MR_FALSE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module259)
	MR_init_entry1(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(private_builtin__builtin_compare_string_3_0,
		__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0_i21);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_3_0);
MR_def_label(__Compare___hlds__hlds_goal__trace_mutable_var_hlds_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module260)
	MR_init_entry1(__Unify___hlds__hlds_goal__try_io_state_vars_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__try_io_state_vars_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__try_io_state_vars_0_0,4,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__try_io_state_vars_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__try_io_state_vars_0_0_i8);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__try_io_state_vars_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__try_io_state_vars_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__try_io_state_vars_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__try_io_state_vars_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__try_io_state_vars_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module261)
	MR_init_entry1(__Compare___hlds__hlds_goal__try_io_state_vars_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__try_io_state_vars_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__try_io_state_vars_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__try_io_state_vars_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__try_io_state_vars_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__try_io_state_vars_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__try_io_state_vars_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__try_io_state_vars_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__try_io_state_vars_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__try_io_state_vars_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__try_io_state_vars_0_0_i21);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__try_io_state_vars_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module262)
	MR_init_entry1(__Unify___hlds__hlds_goal__uni_mode_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__uni_mode_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__uni_mode_0_0,4,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__uni_mode_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__uni_mode_0_0_i8);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r1 = MR_sv(3);
	MR_r2 = MR_r1;
	MR_r3 = MR_tfield(0, MR_tempr1, 0);
	MR_r4 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___pair__pair_2_0,
		__Unify___hlds__hlds_goal__uni_mode_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__uni_mode_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__uni_mode_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(__Unify___pair__pair_2_0);
MR_def_label(__Unify___hlds__hlds_goal__uni_mode_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__uni_mode_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module263)
	MR_init_entry1(__Compare___hlds__hlds_goal__uni_mode_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__uni_mode_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__uni_mode_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__uni_mode_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__uni_mode_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__uni_mode_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__uni_mode_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__uni_mode_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_r1;
	MR_r3 = MR_tfield(0, MR_tempr3, 0);
	MR_r4 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___pair__pair_2_0,
		__Compare___hlds__hlds_goal__uni_mode_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__uni_mode_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__uni_mode_0_0_i21);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___pair__pair_2_0);
MR_def_label(__Compare___hlds__hlds_goal__uni_mode_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module264)
	MR_init_entry1(__Unify___hlds__hlds_goal__unification_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unification_0_0);
	MR_init_label10(__Unify___hlds__hlds_goal__unification_0_0,7,5,14,16,18,20,22,11,29,31)
	MR_init_label8(__Unify___hlds__hlds_goal__unification_0_0,33,35,26,39,76,37,45,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__hlds_goal__unification_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i76);
	}
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_tempr3 = MR_tempr1;
	MR_sv(1) = MR_tfield(2, MR_tempr3, 1);
	MR_tempr4 = MR_tempr2;
	MR_sv(2) = MR_tfield(2, MR_tempr4, 1);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tfield(2, MR_tempr3, 0);
	MR_r3 = MR_tfield(2, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(14);
	MR_decr_sp(14);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i11);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(0, MR_tempr1, 5);
	MR_sv(6) = MR_tfield(0, MR_tempr1, 6);
	MR_sv(7) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(8) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(9) = MR_tfield(0, MR_tempr2, 3);
	MR_sv(10) = MR_tfield(0, MR_tempr2, 4);
	MR_sv(11) = MR_tfield(0, MR_tempr2, 5);
	MR_sv(12) = MR_tfield(0, MR_tempr2, 6);
	MR_sv(13) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i14);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__cons_id_0_0,
		__Unify___hlds__hlds_goal__unification_0_0_i16);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(8);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i18);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, uni_mode);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(9);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i20);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__how_to_construct_0_0,
		__Unify___hlds__hlds_goal__unification_0_0_i22);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	if ((MR_sv(5) != MR_sv(11))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(12);
	MR_succip_word = MR_sv(14);
	MR_decr_sp(14);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__construct_sub_info_0_0);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i26);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(1, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(1, MR_tempr1, 4);
	MR_sv(5) = MR_tfield(1, MR_tempr1, 5);
	MR_sv(6) = MR_tfield(1, MR_tempr2, 1);
	MR_sv(7) = MR_tfield(1, MR_tempr2, 2);
	MR_sv(8) = MR_tfield(1, MR_tempr2, 3);
	MR_sv(9) = MR_tfield(1, MR_tempr2, 4);
	MR_sv(10) = MR_tfield(1, MR_tempr2, 5);
	MR_sv(11) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i29);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__cons_id_0_0,
		__Unify___hlds__hlds_goal__unification_0_0_i31);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i33);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, uni_mode);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(8);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i35);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	if ((MR_sv(4) != MR_sv(9))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = (MR_sv(5) == MR_sv(10));
	MR_decr_sp_and_return(14);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i37);
	}
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(3) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(4) = MR_tfield(3, MR_tempr2, 3);
	MR_r1 = MR_tfield(3, MR_tempr1, 1);
	MR_r2 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__uni_mode_0_0,
		__Unify___hlds__hlds_goal__unification_0_0_i39);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(3))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(14);
	MR_decr_sp(14);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(3, MR_tempr1, 2);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(3, MR_tempr2, 2);
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tfield(3, MR_tempr1, 1);
	MR_r3 = MR_tfield(3, MR_tempr2, 1);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___hlds__hlds_goal__unification_0_0_i45);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unification_0_0_i1);
	}
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(14);
	MR_decr_sp(14);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__unification_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(14);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module265)
	MR_init_entry1(__Compare___hlds__hlds_goal__unification_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unification_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__unification_0_0,3,2,9,7,14,15,5,19,22,26)
	MR_init_label10(__Compare___hlds__hlds_goal__unification_0_0,31,35,39,43,20,53,17,57,58,61)
	MR_init_label10(__Compare___hlds__hlds_goal__unification_0_0,65,70,74,78,59,55,90,91,92,95)
	MR_init_label10(__Compare___hlds__hlds_goal__unification_0_0,99,88,107,108,155,109,156,110,112,372)
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__hlds_goal__unification_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i3);
	}
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(2, MR_tempr5, 1);
	MR_tempr6 = MR_sv(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_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(2, MR_tempr3, 0);
	MR_r3 = MR_tfield(2, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i14);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i15);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i156);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i17);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i19);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i20);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(12) = MR_tfield(0, MR_tempr5, 1);
	MR_sv(11) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(10) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(9) = MR_tfield(0, MR_tempr5, 4);
	MR_sv(8) = MR_tfield(0, MR_tempr5, 5);
	MR_sv(7) = MR_tfield(0, MR_tempr5, 6);
	MR_tempr6 = MR_sv(2);
	MR_sv(6) = MR_tfield(0, MR_tempr6, 6);
	MR_sv(5) = MR_tfield(0, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(0, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i22);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(12);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__cons_id_0_0,
		__Compare___hlds__hlds_goal__unification_0_0_i26);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i31);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, uni_mode);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i35);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__how_to_construct_0_0,
		__Compare___hlds__hlds_goal__unification_0_0_i39);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unification_0_0_i43);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(6);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__construct_sub_info_0_0);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i53);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i156);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i55);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i57);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i58);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i59);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(10) = MR_tfield(1, MR_tempr5, 1);
	MR_sv(9) = MR_tfield(1, MR_tempr5, 2);
	MR_sv(8) = MR_tfield(1, MR_tempr5, 3);
	MR_sv(7) = MR_tfield(1, MR_tempr5, 4);
	MR_sv(6) = MR_tfield(1, MR_tempr5, 5);
	MR_tempr6 = MR_sv(2);
	MR_sv(5) = MR_tfield(1, MR_tempr6, 5);
	MR_sv(4) = MR_tfield(1, MR_tempr6, 4);
	MR_sv(3) = MR_tfield(1, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(1, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(1, MR_tempr3, 0);
	MR_r3 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i61);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__cons_id_0_0,
		__Compare___hlds__hlds_goal__unification_0_0_i65);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i70);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, uni_mode);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i74);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unification_0_0_i78);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(5);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i156);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i88);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i90);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i91);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i92);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,92)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i155);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(4) = MR_tfield(3, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(3, MR_tempr5, 3);
	MR_tempr6 = MR_sv(2);
	MR_tempr1 = MR_tfield(3, MR_tempr6, 3);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(3, MR_tempr3, 1);
	MR_r2 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__uni_mode_0_0,
		__Compare___hlds__hlds_goal__unification_0_0_i95);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unification_0_0_i99);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i107);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,107)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i108);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i109);
	}
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,155)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,109)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i110);
	}
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,156)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(13);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(3, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(3, MR_tempr6, 2);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(3, MR_tempr3, 1);
	MR_r3 = MR_tfield(3, MR_tempr4, 1);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___hlds__hlds_goal__unification_0_0_i112);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unification_0_0_i372);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_succip_word = MR_sv(13);
	MR_decr_sp(13);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__unification_0_0,372)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	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_BEGIN_MODULE(hlds__hlds_goal_module266)
	MR_init_entry1(__Unify___hlds__hlds_goal__unify_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unify_context_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__unify_context_0_0,4,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__unify_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_context_0_0_i8);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_goal__unify_main_context_0_0,
		__Unify___hlds__hlds_goal__unify_context_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__unify_context_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_context_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, unify_sub_context);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__unify_context_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__unify_context_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module267)
	MR_init_entry1(__Compare___hlds__hlds_goal__unify_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unify_context_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__unify_context_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__unify_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_context_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_context_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__unify_context_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__unify_context_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_goal__unify_main_context_0_0,
		__Compare___hlds__hlds_goal__unify_context_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__unify_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_context_0_0_i21);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, unify_sub_context);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_context_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___hlds__hlds_pred__call_id_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module268)
	MR_init_entry1(__Unify___hlds__hlds_goal__unify_main_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unify_main_context_0_0);
	MR_init_label7(__Unify___hlds__hlds_goal__unify_main_context_0_0,5,6,9,7,26,11,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__hlds_goal__unify_main_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i26);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i5);
	}
	MR_r1 = (MR_sv(2) == MR_tempr1);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i6);
	}
	MR_r1 = (MR_sv(2) == MR_sv(1));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i7);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_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_tempr2, 1);
	MR_r1 = MR_tfield(2, MR_tempr1, 0);
	MR_r2 = MR_tfield(2, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__call_id_0_0,
		__Unify___hlds__hlds_goal__unify_main_context_0_0_i9);
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i11);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_sv(1), 0);
	MR_tempr2 = MR_tfield(1, MR_sv(2), 0);
	MR_r1 = (MR_tempr1 == MR_tempr2);
	MR_decr_sp_and_return(3);
	}
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),3)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_main_context_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_sv(1), 0);
	MR_tempr2 = MR_tfield(3, MR_sv(2), 0);
	MR_r1 = (strcmp((char *) (MR_Word *) MR_tempr1, (char *) (MR_Word *) MR_tempr2) == 0);
	MR_decr_sp_and_return(3);
	}
MR_def_label(__Unify___hlds__hlds_goal__unify_main_context_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___hlds__hlds_pred__call_id_0_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module269)
	MR_init_entry1(__Compare___hlds__hlds_goal__unify_main_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unify_main_context_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__unify_main_context_0_0,7,8,9,5,13,77,14,15,11,19)
	MR_init_label10(__Compare___hlds__hlds_goal__unify_main_context_0_0,20,23,21,17,31,32,89,33,29,37)
	MR_init_label4(__Compare___hlds__hlds_goal__unify_main_context_0_0,38,39,40,42)
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__hlds_goal__unify_main_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i77);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i5);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i7);
	}
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp(3);
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i8);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i9);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i89);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i11);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i13);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i14);
	}
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i15);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i89);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i17);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i19);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i20);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i21);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(2, MR_tempr5, 1);
	MR_tempr6 = MR_sv(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___hlds__hlds_pred__call_id_0_0,
		__Compare___hlds__hlds_goal__unify_main_context_0_0_i23);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i42);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i89);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i29);
	}
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i31);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i32);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i33);
	}
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i89);
	}
	MR_r1 = MR_tfield(1, MR_sv(1), 0);
	MR_r2 = MR_tfield(1, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i37);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i38);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i39);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_main_context_0_0_i40);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(3, MR_sv(1), 0);
	MR_r2 = MR_tfield(3, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_string_3_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_main_context_0_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module270)
	MR_init_entry1(__Unify___hlds__hlds_goal__unify_mode_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unify_mode_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__hlds_goal__unify_mode_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___pair__pair_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module271)
	MR_init_entry1(__Compare___hlds__hlds_goal__unify_mode_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unify_mode_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__hlds_goal__unify_mode_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___pair__pair_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module272)
	MR_init_entry1(__Unify___hlds__hlds_goal__unify_rhs_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unify_rhs_0_0);
	MR_init_label8(__Unify___hlds__hlds_goal__unify_rhs_0_0,7,5,15,17,19,42,12,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__hlds_goal__unify_rhs_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i42);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_tempr3 = MR_tempr1;
	MR_sv(1) = MR_tfield(1, MR_tempr3, 1);
	MR_tempr4 = MR_tempr2;
	MR_sv(2) = MR_tfield(1, MR_tempr3, 2);
	MR_sv(3) = MR_tfield(1, MR_tempr4, 1);
	MR_sv(4) = MR_tfield(1, MR_tempr4, 2);
	MR_r1 = MR_tfield(1, MR_tempr3, 0);
	MR_r2 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__cons_id_0_0,
		__Unify___hlds__hlds_goal__unify_rhs_0_0_i7);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	if ((MR_sv(1) != MR_sv(3))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(__Unify___list__list_1_0);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i12);
	}
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr3 = MR_sv(1);
	MR_tempr1 = MR_tfield(2, MR_tempr3, 0);
	MR_tempr4 = MR_sv(2);
	MR_tempr2 = MR_tfield(2, MR_tempr4, 0);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_tempr1 = MR_tfield(2, MR_tempr3, 1);
	MR_tempr2 = MR_tfield(2, MR_tempr4, 1);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_tempr1 = MR_tfield(2, MR_tempr3, 2);
	MR_tempr2 = MR_tfield(2, MR_tempr4, 2);
	if ((MR_tempr1 != MR_tempr2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_tempr1 = MR_tempr3;
	MR_sv(1) = MR_tfield(2, MR_tempr1, 5);
	MR_tempr2 = MR_tempr4;
	MR_sv(2) = MR_tfield(2, MR_tempr1, 6);
	MR_sv(3) = MR_tfield(2, MR_tempr1, 7);
	MR_sv(4) = MR_tfield(2, MR_tempr1, 8);
	MR_sv(5) = MR_tfield(2, MR_tempr2, 5);
	MR_sv(6) = MR_tfield(2, MR_tempr2, 6);
	MR_sv(7) = MR_tfield(2, MR_tempr2, 7);
	MR_sv(8) = MR_tfield(2, MR_tempr2, 8);
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_tfield(2, MR_tempr1, 4);
	MR_r3 = MR_tfield(2, MR_tempr2, 4);
	}
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unify_rhs_0_0_i15);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unify_rhs_0_0_i17);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___hlds__hlds_goal__unify_rhs_0_0_i19);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	if ((MR_sv(3) != MR_sv(7))) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(8);
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(__Unify___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_rhs_0_0_i1);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_sv(1), 0);
	MR_r3 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(__Unify___term__var_1_0);
MR_def_label(__Unify___hlds__hlds_goal__unify_rhs_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module273)
	MR_init_entry1(__Compare___hlds__hlds_goal__unify_rhs_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unify_rhs_0_0);
	MR_init_label10(__Compare___hlds__hlds_goal__unify_rhs_0_0,3,2,9,13,7,5,93,23,26,30)
	MR_init_label9(__Compare___hlds__hlds_goal__unify_rhs_0_0,34,39,44,48,52,21,64,65,182)
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__hlds_goal__unify_rhs_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i3);
	}
	MR_incr_sp(15);
	MR_sv(15) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(4) = MR_tfield(1, MR_tempr5, 1);
	MR_sv(3) = MR_tfield(1, MR_tempr5, 2);
	MR_tempr6 = MR_sv(2);
	MR_tempr1 = MR_tfield(1, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(1, 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(1, MR_tempr3, 0);
	MR_r2 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__cons_id_0_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i9);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i13);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(15);
	MR_decr_sp(15);
	MR_np_tailcall_ent(__Compare___list__list_1_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i93);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(15);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i21);
	}
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i23);
	}
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(15);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i93);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_sv(14) = MR_tfield(2, MR_tempr5, 1);
	MR_sv(13) = MR_tfield(2, MR_tempr5, 2);
	MR_sv(12) = MR_tfield(2, MR_tempr5, 4);
	MR_sv(11) = MR_tfield(2, MR_tempr5, 5);
	MR_sv(10) = MR_tfield(2, MR_tempr5, 6);
	MR_sv(9) = MR_tfield(2, MR_tempr5, 7);
	MR_sv(8) = MR_tfield(2, MR_tempr5, 8);
	MR_tempr6 = MR_sv(2);
	MR_sv(7) = MR_tfield(2, MR_tempr6, 8);
	MR_sv(6) = MR_tfield(2, MR_tempr6, 7);
	MR_sv(5) = MR_tfield(2, MR_tempr6, 6);
	MR_sv(4) = MR_tfield(2, MR_tempr6, 5);
	MR_sv(3) = MR_tfield(2, MR_tempr6, 4);
	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(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i26);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = MR_sv(14);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i30);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i34);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(12);
	MR_r3 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i39);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i44);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i48);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(6);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___hlds__hlds_goal__unify_rhs_0_0_i52);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i182);
	}
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(7);
	MR_succip_word = MR_sv(15);
	MR_decr_sp(15);
	MR_np_tailcall_ent(__Compare___hlds__hlds_goal__hlds_goal_0_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i64);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(15);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_rhs_0_0_i65);
	}
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(15);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_sv(1), 0);
	MR_r3 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(15);
	MR_decr_sp(15);
	MR_np_tailcall_ent(__Compare___term__var_1_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_rhs_0_0,182)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(15);
#ifdef MR_maybe_local_thread_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__hlds_goal_module274)
	MR_init_entry1(__Unify___hlds__hlds_goal__unify_sub_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unify_sub_context_0_0);
	MR_init_label3(__Unify___hlds__hlds_goal__unify_sub_context_0_0,4,6,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__unify_sub_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_sub_context_0_0_i6);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr2, 1);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__cons_id_0_0,
		__Unify___hlds__hlds_goal__unify_sub_context_0_0_i4);
MR_def_label(__Unify___hlds__hlds_goal__unify_sub_context_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___hlds__hlds_goal__unify_sub_context_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___hlds__hlds_goal__unify_sub_context_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___hlds__hlds_goal__unify_sub_context_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module275)
	MR_init_entry1(__Compare___hlds__hlds_goal__unify_sub_context_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unify_sub_context_0_0);
	MR_init_label4(__Compare___hlds__hlds_goal__unify_sub_context_0_0,3,2,5,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__unify_sub_context_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_sub_context_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_sub_context_0_0_i2);
MR_def_label(__Compare___hlds__hlds_goal__unify_sub_context_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___hlds__hlds_goal__unify_sub_context_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_tempr1 = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__cons_id_0_0,
		__Compare___hlds__hlds_goal__unify_sub_context_0_0_i5);
MR_def_label(__Compare___hlds__hlds_goal__unify_sub_context_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___hlds__hlds_goal__unify_sub_context_0_0_i21);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___hlds__hlds_goal__unify_sub_context_0_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module276)
	MR_init_entry1(__Unify___hlds__hlds_goal__unify_sub_contexts_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___hlds__hlds_goal__unify_sub_contexts_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Unify___hlds__hlds_goal__unify_sub_contexts_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, unify_sub_context);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(hlds__hlds_goal_module277)
	MR_init_entry1(__Compare___hlds__hlds_goal__unify_sub_contexts_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___hlds__hlds_goal__unify_sub_contexts_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_define_entry(mercury____Compare___hlds__hlds_goal__unify_sub_contexts_0_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, unify_sub_context);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___list__list_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_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_117_110_105_111_110_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module278)
	MR_init_entry1(hlds__hlds_goal__IntroducedFrom__pred__goal_list_nonlocals__3364__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__IntroducedFrom__pred__goal_list_nonlocals__3364__1_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__goal_list_nonlocals__3364__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_nonlocals__3364__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,0);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tfield(0, MR_tfield(0, MR_tempr1, 1), 2);
	MR_np_tailcall_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_117_110_105_111_110_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_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(hlds__instmap__instmap_delta_apply_instmap_delta_4_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module279)
	MR_init_entry1(hlds__hlds_goal__IntroducedFrom__pred__goal_list_instmap_delta__3373__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__IntroducedFrom__pred__goal_list_instmap_delta__3373__1_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__goal_list_instmap_delta__3373__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_instmap_delta__3373__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_tempr1, 1), 1);
	MR_r3 = (MR_Integer) 2;
	MR_np_tailcall_ent(hlds__instmap__instmap_delta_apply_instmap_delta_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_data__det_conjunction_detism_3_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module280)
	MR_init_entry1(hlds__hlds_goal__IntroducedFrom__pred__goal_list_determinism__3382__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__IntroducedFrom__pred__goal_list_determinism__3382__1_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__goal_list_determinism__3382__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_determinism__3382__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_tempr1, 1), 0);
	MR_np_tailcall_ent(parse_tree__prog_data__det_conjunction_detism_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(fn__parse_tree__prog_data__worst_purity_2_0);

MR_BEGIN_MODULE(hlds__hlds_goal_module281)
	MR_init_entry1(hlds__hlds_goal__IntroducedFrom__pred__goal_list_purity__3390__1_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__hlds__hlds_goal__IntroducedFrom__pred__goal_list_purity__3390__1_3_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__goal_list_purity__3390__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(hlds__hlds_goal__IntroducedFrom__pred__goal_list_purity__3390__1_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_tfield(0, MR_tfield(0, MR_tempr1, 1), 3);
	MR_np_tailcall_ent(fn__parse_tree__prog_data__worst_purity_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

static void mercury__hlds__hlds_goal_maybe_bunch_0(void)
{
	hlds__hlds_goal_module0();
	hlds__hlds_goal_module1();
	hlds__hlds_goal_module2();
	hlds__hlds_goal_module3();
	hlds__hlds_goal_module4();
	hlds__hlds_goal_module5();
	hlds__hlds_goal_module6();
	hlds__hlds_goal_module7();
	hlds__hlds_goal_module8();
	hlds__hlds_goal_module9();
	hlds__hlds_goal_module10();
	hlds__hlds_goal_module11();
	hlds__hlds_goal_module12();
	hlds__hlds_goal_module13();
	hlds__hlds_goal_module14();
	hlds__hlds_goal_module15();
	hlds__hlds_goal_module16();
	hlds__hlds_goal_module17();
	hlds__hlds_goal_module18();
	hlds__hlds_goal_module19();
	hlds__hlds_goal_module20();
	hlds__hlds_goal_module21();
	hlds__hlds_goal_module22();
	hlds__hlds_goal_module23();
	hlds__hlds_goal_module24();
	hlds__hlds_goal_module25();
	hlds__hlds_goal_module26();
	hlds__hlds_goal_module27();
	hlds__hlds_goal_module28();
	hlds__hlds_goal_module29();
	hlds__hlds_goal_module30();
	hlds__hlds_goal_module31();
	hlds__hlds_goal_module32();
	hlds__hlds_goal_module33();
	hlds__hlds_goal_module34();
	hlds__hlds_goal_module35();
	hlds__hlds_goal_module36();
	hlds__hlds_goal_module37();
	hlds__hlds_goal_module38();
	hlds__hlds_goal_module39();
}

static void mercury__hlds__hlds_goal_maybe_bunch_1(void)
{
	hlds__hlds_goal_module40();
	hlds__hlds_goal_module41();
	hlds__hlds_goal_module42();
	hlds__hlds_goal_module43();
	hlds__hlds_goal_module44();
	hlds__hlds_goal_module45();
	hlds__hlds_goal_module46();
	hlds__hlds_goal_module47();
	hlds__hlds_goal_module48();
	hlds__hlds_goal_module49();
	hlds__hlds_goal_module50();
	hlds__hlds_goal_module51();
	hlds__hlds_goal_module52();
	hlds__hlds_goal_module53();
	hlds__hlds_goal_module54();
	hlds__hlds_goal_module55();
	hlds__hlds_goal_module56();
	hlds__hlds_goal_module57();
	hlds__hlds_goal_module58();
	hlds__hlds_goal_module59();
	hlds__hlds_goal_module60();
	hlds__hlds_goal_module61();
	hlds__hlds_goal_module62();
	hlds__hlds_goal_module63();
	hlds__hlds_goal_module64();
	hlds__hlds_goal_module65();
	hlds__hlds_goal_module66();
	hlds__hlds_goal_module67();
	hlds__hlds_goal_module68();
	hlds__hlds_goal_module69();
	hlds__hlds_goal_module70();
	hlds__hlds_goal_module71();
	hlds__hlds_goal_module72();
	hlds__hlds_goal_module73();
	hlds__hlds_goal_module74();
	hlds__hlds_goal_module75();
	hlds__hlds_goal_module76();
	hlds__hlds_goal_module77();
	hlds__hlds_goal_module78();
	hlds__hlds_goal_module79();
}

static void mercury__hlds__hlds_goal_maybe_bunch_2(void)
{
	hlds__hlds_goal_module80();
	hlds__hlds_goal_module81();
	hlds__hlds_goal_module82();
	hlds__hlds_goal_module83();
	hlds__hlds_goal_module84();
	hlds__hlds_goal_module85();
	hlds__hlds_goal_module86();
	hlds__hlds_goal_module87();
	hlds__hlds_goal_module88();
	hlds__hlds_goal_module89();
	hlds__hlds_goal_module90();
	hlds__hlds_goal_module91();
	hlds__hlds_goal_module92();
	hlds__hlds_goal_module93();
	hlds__hlds_goal_module94();
	hlds__hlds_goal_module95();
	hlds__hlds_goal_module96();
	hlds__hlds_goal_module97();
	hlds__hlds_goal_module98();
	hlds__hlds_goal_module99();
	hlds__hlds_goal_module100();
	hlds__hlds_goal_module101();
	hlds__hlds_goal_module102();
	hlds__hlds_goal_module103();
	hlds__hlds_goal_module104();
	hlds__hlds_goal_module105();
	hlds__hlds_goal_module106();
	hlds__hlds_goal_module107();
	hlds__hlds_goal_module108();
	hlds__hlds_goal_module109();
	hlds__hlds_goal_module110();
	hlds__hlds_goal_module111();
	hlds__hlds_goal_module112();
	hlds__hlds_goal_module113();
	hlds__hlds_goal_module114();
	hlds__hlds_goal_module115();
	hlds__hlds_goal_module116();
	hlds__hlds_goal_module117();
	hlds__hlds_goal_module118();
	hlds__hlds_goal_module119();
}

static void mercury__hlds__hlds_goal_maybe_bunch_3(void)
{
	hlds__hlds_goal_module120();
	hlds__hlds_goal_module121();
	hlds__hlds_goal_module122();
	hlds__hlds_goal_module123();
	hlds__hlds_goal_module124();
	hlds__hlds_goal_module125();
	hlds__hlds_goal_module126();
	hlds__hlds_goal_module127();
	hlds__hlds_goal_module128();
	hlds__hlds_goal_module129();
	hlds__hlds_goal_module130();
	hlds__hlds_goal_module131();
	hlds__hlds_goal_module132();
	hlds__hlds_goal_module133();
	hlds__hlds_goal_module134();
	hlds__hlds_goal_module135();
	hlds__hlds_goal_module136();
	hlds__hlds_goal_module137();
	hlds__hlds_goal_module138();
	hlds__hlds_goal_module139();
	hlds__hlds_goal_module140();
	hlds__hlds_goal_module141();
	hlds__hlds_goal_module142();
	hlds__hlds_goal_module143();
	hlds__hlds_goal_module144();
	hlds__hlds_goal_module145();
	hlds__hlds_goal_module146();
	hlds__hlds_goal_module147();
	hlds__hlds_goal_module148();
	hlds__hlds_goal_module149();
	hlds__hlds_goal_module150();
	hlds__hlds_goal_module151();
	hlds__hlds_goal_module152();
	hlds__hlds_goal_module153();
	hlds__hlds_goal_module154();
	hlds__hlds_goal_module155();
	hlds__hlds_goal_module156();
	hlds__hlds_goal_module157();
	hlds__hlds_goal_module158();
	hlds__hlds_goal_module159();
}

static void mercury__hlds__hlds_goal_maybe_bunch_4(void)
{
	hlds__hlds_goal_module160();
	hlds__hlds_goal_module161();
	hlds__hlds_goal_module162();
	hlds__hlds_goal_module163();
	hlds__hlds_goal_module164();
	hlds__hlds_goal_module165();
	hlds__hlds_goal_module166();
	hlds__hlds_goal_module167();
	hlds__hlds_goal_module168();
	hlds__hlds_goal_module169();
	hlds__hlds_goal_module170();
	hlds__hlds_goal_module171();
	hlds__hlds_goal_module172();
	hlds__hlds_goal_module173();
	hlds__hlds_goal_module174();
	hlds__hlds_goal_module175();
	hlds__hlds_goal_module176();
	hlds__hlds_goal_module177();
	hlds__hlds_goal_module178();
	hlds__hlds_goal_module179();
	hlds__hlds_goal_module180();
	hlds__hlds_goal_module181();
	hlds__hlds_goal_module182();
	hlds__hlds_goal_module183();
	hlds__hlds_goal_module184();
	hlds__hlds_goal_module185();
	hlds__hlds_goal_module186();
	hlds__hlds_goal_module187();
	hlds__hlds_goal_module188();
	hlds__hlds_goal_module189();
	hlds__hlds_goal_module190();
	hlds__hlds_goal_module191();
	hlds__hlds_goal_module192();
	hlds__hlds_goal_module193();
	hlds__hlds_goal_module194();
	hlds__hlds_goal_module195();
	hlds__hlds_goal_module196();
	hlds__hlds_goal_module197();
	hlds__hlds_goal_module198();
	hlds__hlds_goal_module199();
}

static void mercury__hlds__hlds_goal_maybe_bunch_5(void)
{
	hlds__hlds_goal_module200();
	hlds__hlds_goal_module201();
	hlds__hlds_goal_module202();
	hlds__hlds_goal_module203();
	hlds__hlds_goal_module204();
	hlds__hlds_goal_module205();
	hlds__hlds_goal_module206();
	hlds__hlds_goal_module207();
	hlds__hlds_goal_module208();
	hlds__hlds_goal_module209();
	hlds__hlds_goal_module210();
	hlds__hlds_goal_module211();
	hlds__hlds_goal_module212();
	hlds__hlds_goal_module213();
	hlds__hlds_goal_module214();
	hlds__hlds_goal_module215();
	hlds__hlds_goal_module216();
	hlds__hlds_goal_module217();
	hlds__hlds_goal_module218();
	hlds__hlds_goal_module219();
	hlds__hlds_goal_module220();
	hlds__hlds_goal_module221();
	hlds__hlds_goal_module222();
	hlds__hlds_goal_module223();
	hlds__hlds_goal_module224();
	hlds__hlds_goal_module225();
	hlds__hlds_goal_module226();
	hlds__hlds_goal_module227();
	hlds__hlds_goal_module228();
	hlds__hlds_goal_module229();
	hlds__hlds_goal_module230();
	hlds__hlds_goal_module231();
	hlds__hlds_goal_module232();
	hlds__hlds_goal_module233();
	hlds__hlds_goal_module234();
	hlds__hlds_goal_module235();
	hlds__hlds_goal_module236();
	hlds__hlds_goal_module237();
	hlds__hlds_goal_module238();
	hlds__hlds_goal_module239();
}

static void mercury__hlds__hlds_goal_maybe_bunch_6(void)
{
	hlds__hlds_goal_module240();
	hlds__hlds_goal_module241();
	hlds__hlds_goal_module242();
	hlds__hlds_goal_module243();
	hlds__hlds_goal_module244();
	hlds__hlds_goal_module245();
	hlds__hlds_goal_module246();
	hlds__hlds_goal_module247();
	hlds__hlds_goal_module248();
	hlds__hlds_goal_module249();
	hlds__hlds_goal_module250();
	hlds__hlds_goal_module251();
	hlds__hlds_goal_module252();
	hlds__hlds_goal_module253();
	hlds__hlds_goal_module254();
	hlds__hlds_goal_module255();
	hlds__hlds_goal_module256();
	hlds__hlds_goal_module257();
	hlds__hlds_goal_module258();
	hlds__hlds_goal_module259();
	hlds__hlds_goal_module260();
	hlds__hlds_goal_module261();
	hlds__hlds_goal_module262();
	hlds__hlds_goal_module263();
	hlds__hlds_goal_module264();
	hlds__hlds_goal_module265();
	hlds__hlds_goal_module266();
	hlds__hlds_goal_module267();
	hlds__hlds_goal_module268();
	hlds__hlds_goal_module269();
	hlds__hlds_goal_module270();
	hlds__hlds_goal_module271();
	hlds__hlds_goal_module272();
	hlds__hlds_goal_module273();
	hlds__hlds_goal_module274();
	hlds__hlds_goal_module275();
	hlds__hlds_goal_module276();
	hlds__hlds_goal_module277();
	hlds__hlds_goal_module278();
	hlds__hlds_goal_module279();
}

static void mercury__hlds__hlds_goal_maybe_bunch_7(void)
{
	hlds__hlds_goal_module280();
	hlds__hlds_goal_module281();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__hlds__hlds_goal__init(void);
void mercury__hlds__hlds_goal__init_type_tables(void);
void mercury__hlds__hlds_goal__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__hlds__hlds_goal__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__hlds__hlds_goal__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__hlds__hlds_goal__init_threadscope_string_table(void);
#endif

void mercury__hlds__hlds_goal__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__hlds__hlds_goal_maybe_bunch_0();
	mercury__hlds__hlds_goal_maybe_bunch_1();
	mercury__hlds__hlds_goal_maybe_bunch_2();
	mercury__hlds__hlds_goal_maybe_bunch_3();
	mercury__hlds__hlds_goal_maybe_bunch_4();
	mercury__hlds__hlds_goal_maybe_bunch_5();
	mercury__hlds__hlds_goal_maybe_bunch_6();
	mercury__hlds__hlds_goal_maybe_bunch_7();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_atomic_goal_type_0,
		hlds__hlds_goal__atomic_goal_type_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0,
		hlds__hlds_goal__atomic_interface_vars_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_builtin_state_0,
		hlds__hlds_goal__builtin_state_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_call_unify_context_0,
		hlds__hlds_goal__call_unify_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_can_cgc_0,
		hlds__hlds_goal__can_cgc_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_case_0,
		hlds__hlds_goal__case_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_cast_kind_0,
		hlds__hlds_goal__cast_kind_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_catch_part_0,
		hlds__hlds_goal__catch_part_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_cell_is_unique_0,
		hlds__hlds_goal__cell_is_unique_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_cell_to_reuse_0,
		hlds__hlds_goal__cell_to_reuse_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_conj_type_0,
		hlds__hlds_goal__conj_type_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_construct_sub_info_0,
		hlds__hlds_goal__construct_sub_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_contains_trace_goal_0,
		hlds__hlds_goal__contains_trace_goal_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0,
		hlds__hlds_goal__ctgc_goal_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0,
		hlds__hlds_goal__dp_coverage_goal_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_dp_goal_info_0,
		hlds__hlds_goal__dp_goal_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_force_pruning_0,
		hlds__hlds_goal__force_pruning_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0,
		hlds__hlds_goal__foreign_arg_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_from_ground_term_kind_0,
		hlds__hlds_goal__from_ground_term_kind_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_generic_call_0,
		hlds__hlds_goal__generic_call_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0,
		hlds__hlds_goal__goal_feature_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_goal_is_mdprof_inst_0,
		hlds__hlds_goal__goal_is_mdprof_inst_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_goal_trivial_0,
		hlds__hlds_goal__goal_trivial_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_has_subgoals_0,
		hlds__hlds_goal__has_subgoals_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0,
		hlds__hlds_goal__hlds_goal_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_code_gen_info_0,
		hlds__hlds_goal__hlds_goal_code_gen_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0,
		hlds__hlds_goal__hlds_goal_expr_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_extra_info_0,
		hlds__hlds_goal__hlds_goal_extra_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_info_0,
		hlds__hlds_goal__hlds_goal_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goals_0,
		hlds__hlds_goal__hlds_goals_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_ho_values_0,
		hlds__hlds_goal__ho_values_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_how_to_construct_0,
		hlds__hlds_goal__how_to_construct_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0,
		hlds__hlds_goal__is_conditional_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_is_existential_construction_0,
		hlds__hlds_goal__is_existential_construction_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_is_first_disjunct_0,
		hlds__hlds_goal__is_first_disjunct_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_missed_message_0,
		hlds__hlds_goal__missed_message_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0,
		hlds__hlds_goal__mode_constr_goal_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_needs_update_0,
		hlds__hlds_goal__needs_update_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_port_counts_give_coverage_after_0,
		hlds__hlds_goal__port_counts_give_coverage_after_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_promise_solutions_kind_0,
		hlds__hlds_goal__promise_solutions_kind_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0,
		hlds__hlds_goal__rbmm_goal_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_removable_0,
		hlds__hlds_goal__removable_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_reuse_description_0,
		hlds__hlds_goal__reuse_description_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_scope_reason_0,
		hlds__hlds_goal__scope_reason_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0,
		hlds__hlds_goal__short_reuse_description_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_shorthand_goal_expr_0,
		hlds__hlds_goal__shorthand_goal_expr_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_tagged_case_0,
		hlds__hlds_goal__tagged_case_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_term_size_value_0,
		hlds__hlds_goal__term_size_value_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0,
		hlds__hlds_goal__trace_mutable_var_hlds_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_try_io_state_vars_0,
		hlds__hlds_goal__try_io_state_vars_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0,
		hlds__hlds_goal__uni_mode_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unification_0,
		hlds__hlds_goal__unification_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0,
		hlds__hlds_goal__unify_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0,
		hlds__hlds_goal__unify_main_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unify_mode_0,
		hlds__hlds_goal__unify_mode_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0,
		hlds__hlds_goal__unify_rhs_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0,
		hlds__hlds_goal__unify_sub_context_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_contexts_0,
		hlds__hlds_goal__unify_sub_contexts_0_0);
	mercury__hlds__hlds_goal__init_debugger();
}

void mercury__hlds__hlds_goal__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_atomic_goal_type_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_atomic_interface_vars_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_builtin_state_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_call_unify_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_can_cgc_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_case_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_cast_kind_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_catch_part_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_cell_is_unique_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_cell_to_reuse_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_conj_type_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_construct_sub_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_contains_trace_goal_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_ctgc_goal_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_dp_coverage_goal_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_dp_goal_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_force_pruning_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_from_ground_term_kind_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_generic_call_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_goal_is_mdprof_inst_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_goal_trivial_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_has_subgoals_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_code_gen_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_expr_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_extra_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goals_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_ho_values_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_how_to_construct_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_is_conditional_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_is_existential_construction_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_is_first_disjunct_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_missed_message_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_mode_constr_goal_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_needs_update_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_port_counts_give_coverage_after_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_promise_solutions_kind_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_rbmm_goal_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_removable_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_reuse_description_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_scope_reason_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_short_reuse_description_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_shorthand_goal_expr_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_tagged_case_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_term_size_value_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_trace_mutable_var_hlds_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_try_io_state_vars_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_uni_mode_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unification_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unify_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unify_main_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unify_mode_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unify_rhs_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_context_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_hlds__hlds_goal__type_ctor_info_unify_sub_contexts_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__hlds__hlds_goal__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__hlds_goal);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__hlds__hlds_goal__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__hlds__hlds_goal__init_threadscope_string_table(void)
{
}

#endif

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