/*
** Automatically generated from `rbmm.condition_renaming.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__transform_hlds__rbmm__condition_renaming__init
ENDINIT
*/

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

#line 28 "transform_hlds.rbmm.condition_renaming.c"
#line 536 "../library/io.int"
#include "time.mh"

#line 32 "transform_hlds.rbmm.condition_renaming.c"
#line 537 "../library/io.int"
#include "string.mh"

#line 36 "transform_hlds.rbmm.condition_renaming.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 40 "transform_hlds.rbmm.condition_renaming.c"
#line 31 "../library/bitmap.int2"
#include "bitmap.mh"

#line 44 "transform_hlds.rbmm.condition_renaming.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 48 "transform_hlds.rbmm.condition_renaming.c"
#line 49 "transform_hlds.rbmm.condition_renaming.c"
#include "transform_hlds.rbmm.condition_renaming.mh"

#line 52 "transform_hlds.rbmm.condition_renaming.c"
#line 53 "transform_hlds.rbmm.condition_renaming.c"
#ifndef TRANSFORM_HLDS__RBMM__CONDITION_RENAMING_DECL_GUARD
#define TRANSFORM_HLDS__RBMM__CONDITION_RENAMING_DECL_GUARD

#line 57 "transform_hlds.rbmm.condition_renaming.c"
#line 58 "transform_hlds.rbmm.condition_renaming.c"

#endif
#line 61 "transform_hlds.rbmm.condition_renaming.c"

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

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

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

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

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

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

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

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

struct mercury_type_7 {
	MR_Word * f1;
	MR_Code * f2;
	MR_Integer f3;
};
MR_STATIC_LINKAGE const struct mercury_type_7 mercury_common_7[];

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

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

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

extern const MR_TypeCtorInfo_Struct
	mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_goal_path_regions_table_0,
	mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_proc_goal_path_regions_table_0;
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0, 53,3,4,5,8,11,16,18,13,10)
MR_decl_label2(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0, 24,7)
MR_decl_label1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0, 3)
MR_decl_label8(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0, 2,3,4,8,11,5,14,15)
MR_decl_label4(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0, 2,5,7,3)
MR_decl_label1(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0, 5)
MR_decl_label7(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0, 5,6,10,13,16,17,18)
MR_decl_label3(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0, 5,7,3)
MR_decl_label1(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0, 5)
MR_decl_label5(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0, 4,6,9,15,7)
MR_decl_label6(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0, 5,8,9,11,17,10)
MR_decl_label1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0, 6)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0, 95,3,4,10,16,18,19,17,21,23)
MR_decl_label3(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0, 24,26,32)
MR_decl_label6(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0, 2,5,6,9,7,4)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0, 3,12,22,23,21,25,27,29,35,88)
MR_decl_label6(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0, 2,3,4,5,8,9)
MR_decl_label3(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0, 2,6,7)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0, 3,4,9,14,16,17,18,19,15,20)
MR_decl_label4(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0, 22,23,25,30)
MR_decl_label2(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0, 2,3)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0, 5,3,7,8,9,10,13,14,19,15)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0, 23,24,28,25,32,34,35,36,37,39)
MR_decl_label6(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0, 38,42,43,45,44,48)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0, 2,5,7,8,9,10,14,11,18,20)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0, 21,23,24,25,28,26,30,31,32,34)
MR_decl_label3(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0, 35,36,4)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0, 3,11,20,21,19,23,25,27,32,85)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0, 2,5,7,8,9,13,10,17,19,20)
MR_decl_label9(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0, 22,25,23,27,28,29,31,32,4)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0, 3,11,20,21,19,23,25,27,32,85)
MR_decl_label4(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0, 22,3,6,4)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0, 2,3,4,8,11,14,16,13,10,20)
MR_decl_label3(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0, 5,22,23)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0, 48,3,9,11,7,13,16,15,19,4)
MR_decl_label10(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0, 45,3,8,10,6,11,13,12,16,4)
MR_decl_label3(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0, 4,5,3)
MR_def_extern_entry(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0)
MR_def_extern_entry(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0)
MR_def_extern_entry(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0)
MR_def_extern_entry(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_case_10_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_case_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_case_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_case_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__record_ite_renaming_6_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_case_5_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_exec_path_9_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0)
MR_def_extern_entry(__Unify___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0)
MR_def_extern_entry(__Compare___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0)
MR_def_extern_entry(__Unify___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0)
MR_def_extern_entry(__Compare___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0)
MR_decl_static(transform_hlds__rbmm__condition_renaming__IntroducedFrom__pred__collect_ite_annotation_region_names__1060__1_2_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0)

extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__points_to_info__type_ctor_info_rpta_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__smm_common__type_ctor_info_program_point_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_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_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;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__smm_common__type_ctor_info_program_point_0;
extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0;
extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0;
static const struct mercury_type_0 mercury_common_0[26] =
{
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_info, rpta_info)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(1,0)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,1)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_COMMON(1,1)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(0,3)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,4)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(1,2)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,6)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path),
MR_COMMON(1,3)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,8)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path),
MR_TAG_COMMON(0,1,4)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_TAG_COMMON(0,0,10)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path),
MR_COMMON(1,3)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_TAG_COMMON(0,1,5)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_TAG_COMMON(0,0,13)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_TAG_COMMON(0,0,14)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(1,7)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_TAG_COMMON(0,1,8)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_TAG_COMMON(0,0,18)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_STRING_CTOR_ADDR,
MR_COMMON(1,1)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(1,0)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(0,3)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(1,2)
}
},
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_TAG_COMMON(0,1,9)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal)
}
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_set_ordlist__type_ctor_info_set_ordlist_1;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__points_to_graph__type_ctor_info_rptg_node_0;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__region_instruction__type_ctor_info_region_instr_0;
extern const MR_TypeCtorInfo_Struct mercury_data_set_ordlist__type_ctor_info_set_ordlist_1;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__region_instruction__type_ctor_info_region_instr_0;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__points_to_graph__type_ctor_info_rptg_node_0;
static const struct mercury_type_1 mercury_common_1[15] =
{
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_STRING_CTOR_ADDR
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(transform_hlds__rbmm__region_instruction, region_instr)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_STRING_CTOR_ADDR
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_STRING_CTOR_ADDR
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_STRING_CTOR_ADDR
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(0,16)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(1,6)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_CTOR0_ADDR(transform_hlds__rbmm__region_instruction, region_instr)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node)
}
},
{
{
MR_CTOR1_ADDR(set_ordlist, set_ordlist),
MR_STRING_CTOR_ADDR
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_TAG_COMMON(0,0,25)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_TAG_COMMON(0,1,11)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(1,6)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(0,16)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_module_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
static const struct mercury_type_2 mercury_common_2[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0_1,
(MR_Word *) (MR_Integer) 0
},
11,
{
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_COMMON(0,0),
MR_COMMON(0,2),
MR_COMMON(0,2),
MR_COMMON(0,5),
MR_COMMON(0,7),
MR_INT_CTOR_ADDR,
MR_COMMON(0,9),
MR_COMMON(0,9),
MR_COMMON(0,9),
MR_COMMON(0,9)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__points_to_graph__type_ctor_info_rpt_graph_0;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__points_to_graph__type_ctor_info_rptg_node_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__region_instruction__type_ctor_info_region_instr_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_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__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_case_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_3;
static const struct mercury_type_3 mercury_common_3[14] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,9),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,12),
MR_COMMON(0,9),
MR_COMMON(0,9)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,20),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_2,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,20),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_3,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__region_instruction, region_instr),
MR_COMMON(1,10),
MR_COMMON(1,10),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,20),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_2,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,20),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_3,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__region_instruction, region_instr),
MR_COMMON(1,10),
MR_COMMON(1,10),
MR_COMMON(1,10),
MR_COMMON(1,10)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path),
MR_COMMON(1,10),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_2,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_3,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(hlds__hlds_goal, case),
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_1,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_2,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_3,
(MR_Word *) (MR_Integer) 0
},
5,
{
MR_COMMON(0,12),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(hlds__hlds_goal, case),
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__smm_common__type_ctor_info_program_point_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_string_0;
static const MR_UserClosureId
mercury_data__closure_layout__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_1;
static const struct mercury_type_4 mercury_common_4[3] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0_1,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_COMMON(0,0),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,12),
MR_COMMON(0,5),
MR_COMMON(0,5)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_1,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_INT_CTOR_ADDR,
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_STRING_CTOR_ADDR,
MR_COMMON(0,22),
MR_COMMON(0,22)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_1,
(MR_Word *) (MR_Integer) 0
},
6,
{
MR_CTOR0_ADDR(transform_hlds__smm_common, program_point),
MR_COMMON(0,22),
MR_INT_CTOR_ADDR,
MR_STRING_CTOR_ADDR,
MR_COMMON(0,23),
MR_COMMON(0,23)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_1;
static const struct mercury_type_5 mercury_common_5[8] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_COMMON(0,17),
MR_COMMON(0,0),
MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id),
MR_COMMON(0,12),
MR_COMMON(0,5),
MR_COMMON(0,5),
MR_COMMON(0,7),
MR_COMMON(0,7)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_2,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_3,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, case),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_2,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_3,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, case),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_1,
(MR_Word *) (MR_Integer) 0
},
8,
{
MR_COMMON(1,13),
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path),
MR_COMMON(1,10),
MR_COMMON(0,22),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_COMMON(0,23)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0_1;
static const struct mercury_type_6 mercury_common_6[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0_1,
(MR_Word *) (MR_Integer) 0
},
12,
{
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_INT_CTOR_ADDR,
MR_COMMON(0,0),
MR_COMMON(0,2),
MR_COMMON(0,2),
MR_COMMON(0,5),
MR_COMMON(0,7),
MR_INT_CTOR_ADDR,
MR_COMMON(0,9),
MR_COMMON(0,9),
MR_COMMON(0,9),
MR_COMMON(0,9)
}
},
};

static const struct mercury_type_7 mercury_common_7[2] =
{
{
MR_COMMON(3,3),
MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0),
0
},
{
MR_COMMON(3,6),
MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0),
0
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_3;
static const struct mercury_type_8 mercury_common_8[3] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_1,
(MR_Word *) (MR_Integer) 0
},
10,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,12),
MR_COMMON(0,12),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_2,
(MR_Word *) (MR_Integer) 0
},
10,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_COMMON(0,12),
MR_COMMON(0,12),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_3,
(MR_Word *) (MR_Integer) 0
},
10,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_COMMON(0,21),
MR_COMMON(0,21),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_CTOR0_ADDR(hlds__hlds_goal, case),
MR_COMMON(0,12),
MR_COMMON(0,12),
MR_COMMON(0,12),
MR_COMMON(0,12)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_goal_path_step_0;
static const struct mercury_type_9 mercury_common_9[1] =
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(mdbcomp__goal_path, goal_path_step),
MR_CTOR0_ADDR(mdbcomp__goal_path, goal_path_step)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_2;
static const struct mercury_type_10 mercury_common_10[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_2,
(MR_Word *) (MR_Integer) 0
},
9,
{
MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rpt_graph),
MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path),
MR_COMMON(1,10),
MR_INT_CTOR_ADDR,
MR_COMMON(1,14),
MR_COMMON(0,22),
MR_COMMON(0,22),
MR_COMMON(0,23),
MR_COMMON(0,23)
}
},
};

static const MR_FA_TypeInfo_Struct1 mercury_data_set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0 = {
	&mercury_data_set_ordlist__type_ctor_info_set_ordlist_1,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_string_0
}};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0,
	(MR_TypeInfo) &mercury_data_set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_goal_path_regions_table_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0)),
	"transform_hlds.rbmm.condition_renaming",
	"goal_path_regions_table",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0 },
	-1,
	0,
	NULL
};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2hlds__hlds_pred__type_ctor_info_pred_proc_id_0tree234__ti_tree234_2mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0,
	(MR_TypeInfo) &mercury_data_tree234__ti_tree234_2mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_proc_goal_path_regions_table_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0)),
	"transform_hlds.rbmm.condition_renaming",
	"proc_goal_path_regions_table",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2hlds__hlds_pred__type_ctor_info_pred_proc_id_0tree234__ti_tree234_2mdbcomp__goal_path__type_ctor_info_reverse_goal_path_0set_ordlist__ti_set_ordlist_1builtin__type_ctor_info_string_0 },
	-1,
	0,
	NULL
};


static const MR_UserClosureId
mercury_data__closure_layout__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"introduce_reverse_renaming",
6,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
1123,
"44"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_annotation_exec_path",
9,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
1064,
"25"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"lambda_rbmm_condition_renaming_m_1060",
2,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
1060,
"14"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_annotation_region_names",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
1044,
"14"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_case",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
839,
"31"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_goal",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
835,
"27"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_goal",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
831,
"23"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_in_condition_case",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
945,
"23"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_in_condition",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
940,
"18"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_in_condition",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
935,
"12"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"record_ite_renaming",
6,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
899,
"19"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renamed_regions_ite",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
764,
"10"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_and_in_cond_regions_case",
10,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
270,
"64"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_and_in_cond_regions_goal",
10,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
278,
"77"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_and_in_cond_regions_goal",
10,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
253,
"12"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_regions_created_in_condition_case",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
685,
"26"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_regions_created_in_condition",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
678,
"21"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_regions_created_in_condition",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
671,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"renaming_annotation_to_regions",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
608,
"31"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"apply_region_renaming",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
600,
"24"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"apply_region_renaming",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
600,
"24"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_regions_in_ite_case",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
506,
"26"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_regions_in_ite",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
499,
"21"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_regions_in_ite",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
492,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_3 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"renaming_annotation_to_regions",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
381,
"35"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_2 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"apply_region_renaming",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
371,
"25"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"apply_region_renaming",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
371,
"25"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_and_in_cond_regions_proc",
12,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
176,
"15"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_annotation_proc",
8,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
1029,
"8"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renaming_proc",
6,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
799,
"6"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_ite_renamed_regions_proc",
5,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
753,
"5"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0_1 = {
{
MR_PREDICATE,
"transform_hlds.rbmm.condition_renaming",
"transform_hlds.rbmm.condition_renaming",
"collect_non_local_and_in_cond_regions_pred",
11,
0
},
"transform_hlds.rbmm.condition_renaming",
"rbmm.condition_renaming.m",
157,
"11"
};


MR_decl_entry(hlds__hlds_module__module_info_get_valid_predids_3_0);
MR_decl_entry(fn__map__init_0_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_id_0;
MR_decl_entry(list__foldl2_6_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module0)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0);
	MR_init_label3(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0,2,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_and_in_cond_regions'/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__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_valid_predids_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 9);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(2,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 6;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 8) = MR_sv(6);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tempr1;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0_i6);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0_i7);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,11);
	MR_r3 = MR_r2;
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_tempr1;
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(list__foldl2_6_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__foldl_4_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module1)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0);
	MR_init_label1(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renamed_regions'/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__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(2) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_r2;
	MR_sv(1) = MR_r1;
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(3);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,0,11);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_tempr1;
	MR_succip_word = MR_sv(4);
	MR_decr_sp(4);
	MR_np_tailcall_ent(map__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(transform_hlds__rbmm__condition_renaming_module2)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0);
	MR_init_label1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming'/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__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_sv(2) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(4,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_sv(1) = MR_r3;
	MR_sv(3) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0_i6);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,0,15);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_tempr1;
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(map__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(map__foldl2_6_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module3)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0);
	MR_init_label1(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_annotation'/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__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_sv(3) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(5,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r2;
	MR_tfield(0, MR_tempr1, 4) = MR_r3;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r4;
	MR_sv(4) = (MR_Word) MR_LIST_CTOR_ADDR;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,0,18);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,0,15);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,0,19);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(1);
	MR_r7 = MR_sv(2);
	MR_r8 = MR_tempr1;
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(map__foldl2_6_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_pred_info_3_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_non_imported_procids_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_proc_id_0;

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module4)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0);
	MR_init_label2(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_and_in_cond_regions_pred'/11 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r7;
	MR_sv(7) = MR_tempr1;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_info_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_non_imported_procids_1_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0_i3);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_pred_11_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 10);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(6,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 7;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 6) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 7) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 8) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 9) = MR_sv(6);
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_id);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,11);
	MR_r3 = MR_r2;
	MR_r5 = MR_tempr2;
	MR_r6 = MR_sv(8);
	MR_r7 = MR_sv(9);
	MR_succip_word = MR_sv(10);
	MR_decr_sp(10);
	MR_np_tailcall_ent(list__foldl2_6_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__search_3_0);
MR_decl_entry(set__union_3_0);
MR_decl_entry(set__difference_3_0);
MR_decl_entry(set__empty_1_0);
MR_decl_entry(map__set_4_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module5)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,48,3,9,11,7,13,16,15,19,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'record_non_local_regions'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i3);
	}
	MR_r1 = MR_r4;
	MR_decr_sp_and_return(7);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	if (MR_LTAGS_TESTR(MR_tempr1,0,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i4);
	}
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_tfield(1, MR_r1, 1);
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(4) = MR_tempr1;
	MR_tempr2 = MR_r4;
	MR_sv(6) = MR_tempr2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i7);
	}
	MR_sv(5) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(5);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(set__union_3_0,
		transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i11);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(set__difference_3_0,
		transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i13);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(set__difference_3_0,
		transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i13);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_sv(5) = MR_r2;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(set__empty_1_0,
		transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i16);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i15);
	}
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r1 = MR_sv(3);
	MR_r4 = MR_sv(6);
	MR_succip_word = MR_sv(7);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i48);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	MR_np_call_localret_ent(map__set_4_0,
		transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i19);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r4 = MR_tempr1;
	MR_succip_word = MR_sv(7);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i48);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_succip_word = MR_sv(7);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0_i48);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0);
MR_decl_entry(fn__transform_hlds__smm_common__program_point_init_1_0);
MR_decl_entry(map__lookup_3_0);
MR_decl_entry(fn__set__init_0_0);
MR_decl_entry(set__fold_4_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module6)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,2,5,7,8,9,10,14,11,18,20)
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,21,23,24,25,28,26,30,31,32,34)
	MR_init_label3(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,35,36,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_regions_in_ite'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(8) = MR_r7;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i4);
	}
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(fn__transform_hlds__smm_common__program_point_init_1_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(6) = MR_tfield(0, MR_r1, 1);
	MR_sv(9) = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node);
	MR_sv(10) = (MR_Word) MR_CTOR1_ADDR(set_ordlist, set_ordlist);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,1,9);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i7);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(set__difference_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,9)
	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(9);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__difference_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i10);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i14);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i11);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_sv(7) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i20);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i18);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_sv(7) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i21);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,21)
	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(10);
	MR_tfield(0, MR_r2, 1) = MR_sv(11);
	MR_sv(10) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__fold_4_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i23);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i24);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__fold_4_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i25);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,8);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i28);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i26);
	}
	MR_sv(3) = MR_r2;
	MR_r1 = MR_sv(11);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i30);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_sv(11);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i31);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i32);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__region_instruction, region_instr);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_r2;
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,7,0);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl2_6_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i34);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(set__union_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i35);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_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(11);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__union_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0_i36);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,36)
	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_sv(1);
	MR_r4 = MR_sv(8);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__record_non_local_regions_5_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(8);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(list__foldl_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_case_0;
MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module7)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,3,11,20,21,19,23,25,27,32,85)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_regions_in_ite_compound_goal'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(0, MR_r6, 0);
	MR_r8 = MR_tempr1;
	if (MR_RTAGS_TESTR(MR_tempr1,3,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i3);
	}
	MR_tempr2 = MR_tfield(3, MR_tempr1, 2);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i85);
	}
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr3, 0) = (MR_Word) MR_COMMON(5,1);
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
	MR_tfield(0, MR_tempr3, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr3, 3) = MR_r1;
	MR_tfield(0, MR_tempr3, 4) = MR_r2;
	MR_tfield(0, MR_tempr3, 5) = MR_r3;
	MR_tfield(0, MR_tempr3, 6) = MR_r4;
	MR_tfield(0, MR_tempr3, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr3;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_r7;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i11);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_r8, 1);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i85);
	}
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr2, 0) = (MR_Word) MR_COMMON(5,2);
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
	MR_tfield(0, MR_tempr2, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr2, 3) = MR_r1;
	MR_tfield(0, MR_tempr2, 4) = MR_r2;
	MR_tfield(0, MR_tempr2, 5) = MR_r3;
	MR_tfield(0, MR_tempr2, 6) = MR_r4;
	MR_tfield(0, MR_tempr2, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_r7;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,6)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i19);
	}
	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_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(6) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(7) = MR_tfield(3, MR_tempr1, 4);
	MR_r6 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i20);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i21);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_tempr1;
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,4)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i23);
	}
	MR_r6 = MR_tfield(3, MR_r8, 1);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,5)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i25);
	}
	MR_r6 = MR_tfield(3, MR_r8, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,3)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i27);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(5,3);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_case_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_tfield(0, MR_tempr1, 5) = MR_r3;
	MR_tfield(0, MR_tempr1, 6) = MR_r4;
	MR_tfield(0, MR_tempr1, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tfield(3, MR_r8, 3);
	MR_r5 = MR_r7;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i32);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_non_local_regions_in_ite_compound_goal\'/8", 99);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r8,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0_i85);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_non_local_regions_in_ite_compound_goal\'/8", 99);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_compound_goal_8_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_non_local_regions_in_ite_compound_goal\'/8", 99);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module8)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,45,3,8,10,6,11,13,12,16,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'record_regions_created_in_condition'/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(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i3);
	}
	MR_r1 = MR_r3;
	MR_decr_sp_and_return(6);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i4);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(5) = MR_r3;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i6);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(set__union_3_0,
		transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i10);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r1;
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i11);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r2;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(set__empty_1_0,
		transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i13);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i12);
	}
	MR_r2 = MR_sv(2);
	MR_r1 = MR_sv(3);
	MR_r3 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i45);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_np_call_localret_ent(map__set_4_0,
		transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i16);
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r3 = MR_tempr1;
	MR_succip_word = MR_sv(6);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i45);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_succip_word = MR_sv(6);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0_i45);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module9)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,2,5,7,8,9,13,10,17,19,20)
	MR_init_label9(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,22,25,23,27,28,29,31,32,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_regions_created_in_condition'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(8) = MR_r7;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i4);
	}
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(fn__transform_hlds__smm_common__program_point_init_1_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(6) = MR_tfield(0, MR_r1, 1);
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_graph, rptg_node);
	MR_sv(9) = (MR_Word) MR_CTOR1_ADDR(set_ordlist, set_ordlist);
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,1,9);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i7);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	}
	MR_np_call_localret_ent(set__difference_3_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i13);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i10);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,4);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_sv(1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i19);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i17);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(3,5);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r2, 3) = MR_sv(1);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_sv(1) = MR_r2;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i20);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,20)
	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(9);
	MR_tfield(0, MR_r2, 1) = MR_sv(4);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r2;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr2;
	}
	MR_np_call_localret_ent(set__fold_4_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i22);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,8);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i25);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i23);
	}
	MR_sv(2) = MR_r2;
	MR_r1 = MR_sv(4);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i27);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_sv(4);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i28);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i29);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__region_instruction, region_instr);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_r2;
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,7,1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__foldl2_6_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i31);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__union_3_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0_i32);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,32)
	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_sv(8);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__record_regions_created_in_condition_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(8);
	MR_succip_word = MR_sv(11);
	MR_decr_sp(11);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module10)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,3,11,20,21,19,23,25,27,32,85)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_regions_created_in_condition_compound_goal'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(0, MR_r6, 0);
	MR_r8 = MR_tempr1;
	if (MR_RTAGS_TESTR(MR_tempr1,3,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i3);
	}
	MR_tempr2 = MR_tfield(3, MR_tempr1, 2);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i85);
	}
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr3, 0) = (MR_Word) MR_COMMON(5,4);
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
	MR_tfield(0, MR_tempr3, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr3, 3) = MR_r1;
	MR_tfield(0, MR_tempr3, 4) = MR_r2;
	MR_tfield(0, MR_tempr3, 5) = MR_r3;
	MR_tfield(0, MR_tempr3, 6) = MR_r4;
	MR_tfield(0, MR_tempr3, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr3;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_r7;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i11);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(3, MR_r8, 1);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i85);
	}
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr2, 0) = (MR_Word) MR_COMMON(5,5);
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
	MR_tfield(0, MR_tempr2, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr2, 3) = MR_r1;
	MR_tfield(0, MR_tempr2, 4) = MR_r2;
	MR_tfield(0, MR_tempr2, 5) = MR_r3;
	MR_tfield(0, MR_tempr2, 6) = MR_r4;
	MR_tfield(0, MR_tempr2, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_r7;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,6)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i19);
	}
	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_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(6) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(7) = MR_tfield(3, MR_tempr1, 4);
	MR_r6 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i20);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,
		transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i21);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_tempr1;
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,4)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i23);
	}
	MR_r6 = MR_tfield(3, MR_r8, 1);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,5)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i25);
	}
	MR_r6 = MR_tfield(3, MR_r8, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,3)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i27);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(5,6);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_case_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_tfield(0, MR_tempr1, 5) = MR_r3;
	MR_tfield(0, MR_tempr1, 6) = MR_r4;
	MR_tfield(0, MR_tempr1, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tfield(3, MR_r8, 3);
	MR_r5 = MR_r7;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r8,3,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i32);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_regions_created_in_condition_compound_goal\'/8", 103);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r8,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0_i85);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_regions_created_in_condition_compound_goal\'/8", 103);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_compound_goal_8_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_regions_created_in_condition_compound_goal\'/8", 103);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module11)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_and_in_cond_regions_goal'/10 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r6 = MR_tfield(0, MR_r6, 0);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module12)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,3,4,9,14,16,17,18,19,15,20)
	MR_init_label4(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,22,23,25,30)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_and_in_cond_regions_expr'/10 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i3);
	}
	MR_r1 = MR_r7;
	MR_r2 = MR_r8;
	MR_proceed();
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_tfield(0, MR_tempr1, 5) = MR_r3;
	MR_tfield(0, MR_tempr1, 6) = MR_r4;
	MR_tfield(0, MR_tempr1, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_r2;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tfield(3, MR_r6, 2);
	MR_r6 = MR_r7;
	MR_r7 = MR_r8;
	MR_np_tailcall_ent(list__foldl2_6_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i9);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_tfield(0, MR_tempr1, 5) = MR_r3;
	MR_tfield(0, MR_tempr1, 6) = MR_r4;
	MR_tfield(0, MR_tempr1, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_r2;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tfield(3, MR_r6, 1);
	MR_r6 = MR_r7;
	MR_r7 = MR_r8;
	MR_np_tailcall_ent(list__foldl2_6_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r6,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i14);
	}
	MR_r1 = MR_r7;
	MR_r2 = MR_r8;
	MR_proceed();
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,6)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i15);
	}
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(7) = MR_tfield(3, MR_tempr1, 2);
	MR_sv(8) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(9) = MR_tfield(3, MR_tempr1, 4);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_r8;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i16);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i17);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(8);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_tempr2;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i18);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_tempr2;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i19);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_decr_sp_and_return(10);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,4)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i20);
	}
	MR_r6 = MR_tfield(3, MR_r6, 1);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r6,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i22);
	}
	MR_r1 = MR_r7;
	MR_r2 = MR_r8;
	MR_proceed();
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,5)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i23);
	}
	MR_r6 = MR_tfield(3, MR_r6, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r6,3,3)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i25);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 8);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(8,2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_case_10_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 5;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_tfield(0, MR_tempr1, 5) = MR_r3;
	MR_tfield(0, MR_tempr1, 6) = MR_r4;
	MR_tfield(0, MR_tempr1, 7) = MR_r5;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_r2;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tfield(3, MR_r6, 3);
	MR_r6 = MR_r7;
	MR_r7 = MR_r8;
	MR_np_tailcall_ent(list__foldl2_6_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r6,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0_i30);
	}
	MR_r1 = MR_r7;
	MR_r2 = MR_r8;
	MR_proceed();
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_non_local_and_in_cond_regions_expr\'/10", 96);
	MR_r3 = (MR_Word) MR_string_const("shorthand", 9);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(transform_hlds__smm_common__some_are_special_preds_2_0);
MR_decl_entry(hlds__hlds_module__module_info_proc_info_3_0);
MR_decl_entry(hlds__goal_path__fill_goal_path_slots_in_proc_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_goal_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__rbmm__points_to_info__type_ctor_info_rpta_info_0;
MR_decl_entry(fn__map__count_1_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module13)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,5,3,7,8,9,10,13,14,19,15)
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,23,24,28,25,32,34,35,36,37,39)
	MR_init_label6(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,38,42,43,45,44,48)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_and_in_cond_regions_proc'/12 mode 0 */
#ifdef MR_maybe_local_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(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(7) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = MR_r8;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_r7;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(1);
	}
	MR_np_call_localret_ent(transform_hlds__smm_common__some_are_special_preds_2_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i3);
	}
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(9);
	MR_decr_sp_and_return(13);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_proc_info_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i7);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__goal_path__fill_goal_path_slots_in_proc_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(11) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r1 = MR_sv(11);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_info, rpta_info);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(7);
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i10);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	MR_sv(10) = (MR_Word) MR_CTOR1_ADDR(set_ordlist, set_ordlist);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(0,0,24);
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(7);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i13);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,24);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(7);
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i14);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(7);
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i19);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i15);
	}
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_sv(11);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i24);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i23);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(11);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r4;
	MR_sv(11) = MR_r1;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,18);
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i28);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i25);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(10);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(6) = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i34);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,8);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i32);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(10);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r2;
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i35);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = MR_sv(12);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i36);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(1);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_goal_10_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i37);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = MR_sv(12);
	MR_r3 = MR_sv(1);
	MR_np_call_localret_ent(fn__map__count_1_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i39);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i38);
	}
	MR_r3 = MR_sv(2);
	MR_sv(1) = MR_sv(8);
	MR_r2 = MR_sv(12);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i43);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_CTOR_ADDR(tree234, tree234, 2);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_tfield(0, MR_r2, 2) = MR_sv(12);
	MR_r1 = MR_sv(11);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(8);
	MR_np_call_localret_ent(map__set_4_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i42);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_sv(1) = MR_r1;
	MR_r2 = MR_sv(12);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	MR_sv(12) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_np_call_localret_ent(fn__map__count_1_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i45);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i44);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(9);
	MR_decr_sp_and_return(13);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_CTOR_ADDR(tree234, tree234, 2);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_tfield(0, MR_r2, 2) = MR_sv(12);
	MR_r1 = MR_sv(11);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(9);
	MR_np_call_localret_ent(map__set_4_0,
		transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0_i48);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_proc_12_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(13);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module14)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_case_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_case_10_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_and_in_cond_regions_case'/10 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_case_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r6 = MR_tfield(0, MR_tfield(0, MR_r6, 2), 0);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_and_in_cond_regions_expr_10_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__transform_hlds__rbmm__points_to_graph__rptg_lookup_region_name_2_0);
MR_decl_entry(fn__list__det_last_1_0);
MR_decl_entry(set__insert_3_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module15)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0);
	MR_init_label4(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0,2,5,7,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'apply_region_renaming'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r4;
	MR_r2 = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__rbmm__points_to_graph__rptg_lookup_region_name_2_0,
		transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_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_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0_i3);
	}
	MR_sv(1) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__list__det_last_1_0,
		transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0_i7);
MR_def_label(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(set__insert_3_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__apply_region_renaming_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(set__insert_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(transform_hlds__rbmm__condition_renaming_module16)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0);
	MR_init_label3(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0,4,5,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'renaming_annotation_to_regions'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0_i3);
	}
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(2, MR_r1, 0);
	MR_sv(2) = MR_r3;
	MR_sv(3) = (MR_Word) MR_STRING_CTOR_ADDR;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tfield(2, MR_tempr1, 1);
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(set__insert_3_0,
		transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0_i4);
MR_def_label(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_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(3);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(set__insert_3_0,
		transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(4);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__renaming_annotation_to_regions_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.renaming_annotation_to_regions\'/5", 83);
	MR_r3 = (MR_Word) MR_string_const("annotation is not assignment", 28);
	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(transform_hlds__rbmm__condition_renaming_module17)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_case_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_case_8_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_non_local_regions_in_ite_case'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_case_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r6 = MR_tfield(0, MR_r6, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_non_local_regions_in_ite_8_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module18)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_case_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_case_8_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_regions_created_in_condition_case'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_case_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r6 = MR_tfield(0, MR_r6, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_regions_created_in_condition_8_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module19)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0);
	MR_init_label6(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,5,8,9,11,17,10)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renamed_regions_proc'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(0,0,10);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_i17);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(4) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,7);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_r2;
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__foldl_4_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_np_call_localret_ent(fn__map__count_1_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_i11);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0_i10);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_decr_sp_and_return(8);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_proc_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(map__set_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(set__intersect_3_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module20)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0);
	MR_init_label5(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0,4,6,9,15,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renamed_regions_ite'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,1,4);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0_i4);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0_i15);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r1 = MR_sv(2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__intersect_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0_i6);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(set__empty_1_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0_i7);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(3);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renamed_regions_ite_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(3);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(map__set_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(transform_hlds__rbmm__condition_renaming_module21)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0);
	MR_init_label4(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,22,3,6,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_closest_condition_in_goal_path'/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(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(2);
MR_def_label(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(1, MR_r1, 1);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0_i4);
	}
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r3;
	}
	MR_np_localcall_lab(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,
		transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0_i6);
MR_def_label(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = ((MR_Integer) MR_r2 + (MR_Integer) 1);
	MR_decr_sp_and_return(2);
MR_def_label(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r3;
	MR_succip_word = MR_sv(2);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0_i22);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module22)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
	MR_init_label6(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,2,5,6,9,7,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming_in_condition'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(5) = MR_r4;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_expr_has_subgoals_1_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_i4);
	}
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__transform_hlds__smm_common__program_point_init_1_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_i6);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r2;
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0_i7);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(4,1);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__record_ite_renaming_6_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(2);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(set__fold_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(5);
	MR_decr_sp_and_return(6);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(5);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_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(transform_hlds__rbmm__condition_renaming_module23)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,3,12,22,23,21,25,27,29,35,88)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming_in_condition_compound_goal'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_tfield(0, MR_r3, 0);
	MR_r5 = MR_tempr1;
	if (MR_RTAGS_TESTR(MR_tempr1,3,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i3);
	}
	MR_tempr2 = MR_tfield(3, MR_tempr1, 2);
	if (MR_LTAGS_TEST(MR_tempr2,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i88);
	}
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr3;
	MR_tfield(0, MR_tempr3, 0) = (MR_Word) MR_COMMON(3,8);
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
	MR_tfield(0, MR_tempr3, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr3, 3) = MR_r1;
	MR_tfield(0, MR_tempr3, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_tempr4;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i12);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(3, MR_r5, 1);
	if (MR_LTAGS_TEST(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i88);
	}
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = (MR_Word) MR_COMMON(3,9);
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
	MR_tfield(0, MR_tempr2, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr2, 3) = MR_r1;
	MR_tfield(0, MR_tempr2, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_tempr3 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr3;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,6)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i21);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 4);
	MR_r3 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i22);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i23);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_tempr1;
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,4)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i25);
	}
	MR_r3 = MR_tfield(3, MR_r5, 1);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,5)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i27);
	}
	MR_r3 = MR_tfield(3, MR_r5, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,3)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i29);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,10);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_case_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tfield(3, MR_r5, 3);
	MR_r5 = MR_tempr2;
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i35);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_ite_renaming_in_condition_compound_goal\'/5", 100);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0_i88);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_ite_renaming_in_condition_compound_goal\'/5", 100);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_compound_goal_5_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_ite_renaming_in_condition_compound_goal\'/5", 100);
	MR_r3 = (MR_Word) MR_string_const("atomic or unsupported goal", 26);
	MR_np_tailcall_ent(require__unexpected_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module24)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,95,3,4,10,16,18,19,17,21,23)
	MR_init_label3(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,24,26,32)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming_goal'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r3, 0);
	MR_r5 = MR_tempr1;
	if (MR_RTAGS_TESTR(MR_tempr1,3,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i3);
	}
	MR_r1 = MR_r4;
	MR_decr_sp_and_return(5);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i4);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,11);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tfield(3, MR_r5, 2);
	MR_r5 = MR_tempr2;
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i10);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,12);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tfield(3, MR_r5, 1);
	MR_r5 = MR_tempr2;
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,2)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i16);
	}
	MR_r1 = MR_r4;
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,6)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i17);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(3) = MR_tfield(3, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(3, MR_tempr1, 4);
	MR_r3 = MR_tfield(3, MR_tempr1, 2);
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_5_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i18);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	}
	MR_np_localcall_lab(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i19);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_tempr1;
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i95);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,4)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i21);
	}
	MR_r3 = MR_tfield(3, MR_r5, 1);
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i95);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i23);
	}
	MR_r1 = MR_r4;
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,5)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i24);
	}
	MR_r3 = MR_tfield(3, MR_r5, 2);
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i95);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r5,3,3)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i26);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(3,13);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_case_5_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r1;
	MR_tfield(0, MR_tempr1, 4) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, case);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tfield(3, MR_r5, 3);
	MR_r5 = MR_tempr2;
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(list__foldl_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r5,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0_i32);
	}
	MR_r1 = MR_r4;
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_ite_renaming_goal\'/5", 78);
	MR_r3 = (MR_Word) MR_string_const("shorthand", 9);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	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(transform_hlds__rbmm__condition_renaming_module25)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0);
	MR_init_label6(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,2,3,4,5,8,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming_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_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_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_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_proc_info_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__goal_path__fill_goal_path_slots_in_proc_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0_i3);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0_i4);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_info, rpta_info);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_5_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0_i9);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_proc_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(map__set_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(transform_hlds__rbmm__condition_renaming_module26)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_case_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_case_5_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming_case'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_case_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(0, MR_r3, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_goal_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(transform_hlds__rbmm__condition_renaming_module27)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__record_ite_renaming_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__record_ite_renaming_6_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'record_ite_renaming'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__record_ite_renaming_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r4;
	MR_r4 = MR_r5;
	MR_np_tailcall_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module28)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_case_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_case_5_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_renaming_in_condition_case'/5 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_case_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_tfield(0, MR_r3, 2);
	MR_np_tailcall_ent(transform_hlds__rbmm__condition_renaming__collect_ite_renaming_in_condition_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(transform_hlds__rbmm__condition_renaming_module29)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0);
	MR_init_label7(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,5,6,10,13,16,17,18)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_annotation_proc'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,12);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,5)
	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(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__rbmm__points_to_info, rpta_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(2);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i6);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(8) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(9) = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(2);
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i10);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(5,7);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 4) = MR_tfield(0, MR_sv(4), 0);
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_tempr1;
	MR_sv(10) = (MR_Word) MR_TAG_COMMON(0,1,8);
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(10);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i13);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_TAG_COMMON(0,0,18);
	MR_tempr2 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, reverse_goal_path);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_tempr2;
	}
	MR_np_call_localret_ent(map__foldl2_6_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i16);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,18);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(6);
	}
	MR_np_call_localret_ent(map__set_4_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i17);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,17)
	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(hlds__hlds_pred, pred_proc_id);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	}
	MR_np_call_localret_ent(map__set_4_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0_i18);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_proc_8_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(require__expect_4_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module30)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0);
	MR_init_label3(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0,5,7,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_annotation_region_names'/8 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_i3);
	}
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(9,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__IntroducedFrom__pred__collect_ite_annotation_region_names__1060__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tempr2 = MR_r3;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(1, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tempr2;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_tfield(1, MR_tempr2, 1);
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r3 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_ite_annotation_region_names\'/8", 88);
	MR_r4 = (MR_Word) MR_string_const("not step_ite_cond", 17);
	}
	MR_np_call_localret_ent(require__expect_4_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_i5);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(5);
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__condition_renaming__get_closest_condition_in_goal_path_4_0,
		transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0_i7);
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 7);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(10,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_exec_path_9_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 4;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 6) = MR_r2;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,11);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,14);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,0,18);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(list__foldl2_6_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_region_names_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.collect_ite_annotation_region_names\'/8", 88);
	MR_r3 = (MR_Word) MR_string_const("empty path to condition", 23);
	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(transform_hlds__rbmm__condition_renaming_module31)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_exec_path_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__collect_ite_annotation_exec_path_9_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'collect_ite_annotation_exec_path'/9 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__collect_ite_annotation_exec_path_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_r4 = MR_r5;
	MR_r5 = MR_r6;
	MR_r6 = MR_r7;
	MR_np_tailcall_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__string__int_to_string_1_0);
MR_decl_entry(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
MR_decl_entry(fn__list__length_1_0);
MR_decl_entry(transform_hlds__rbmm__region_resurrection_renaming__make_renaming_instruction_3_0);
MR_decl_entry(transform_hlds__rbmm__region_resurrection_renaming__record_annotation_4_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module32)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0);
	MR_init_label10(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,2,3,4,8,11,14,16,13,10,20)
	MR_init_label3(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,5,22,23)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'introduce_reverse_renaming'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_r1 = MR_r3;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i2);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("_ite_", 5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i3);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i4);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i8);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i5);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(5);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i11);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i10);
	}
	MR_sv(3) = MR_r2;
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_np_call_localret_ent(fn__list__length_1_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i14);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i13);
	}
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(fn__list__det_last_1_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i16);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__rbmm__region_resurrection_renaming__make_renaming_instruction_3_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i20);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.rbmm.condition_renaming", 38);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.rbmm.condition_renaming.introduce_reverse_renaming\'/6", 79);
	MR_r3 = (MR_Word) MR_string_const("more than one renaming", 22);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i23);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(transform_hlds__rbmm__region_resurrection_renaming__make_renaming_instruction_3_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i20);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(transform_hlds__rbmm__region_resurrection_renaming__record_annotation_4_0);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(transform_hlds__rbmm__region_resurrection_renaming__make_renaming_instruction_3_0,
		transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0_i22);
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	}
MR_def_label(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(6);
	MR_decr_sp(6);
	MR_np_tailcall_ent(transform_hlds__rbmm__region_resurrection_renaming__record_annotation_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(__Unify___tree234__tree234_2_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module33)
	MR_init_entry1(__Unify___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_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___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_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(mdbcomp__goal_path, reverse_goal_path);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___tree234__tree234_2_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module34)
	MR_init_entry1(__Compare___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_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___transform_hlds__rbmm__condition_renaming__goal_path_regions_table_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(mdbcomp__goal_path, reverse_goal_path);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,1,4);
	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(transform_hlds__rbmm__condition_renaming_module35)
	MR_init_entry1(__Unify___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_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___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_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_pred, pred_proc_id);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	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(transform_hlds__rbmm__condition_renaming_module36)
	MR_init_entry1(__Compare___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_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___transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_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_pred, pred_proc_id);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,10);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___tree234__tree234_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___mdbcomp__goal_path__goal_path_step_0_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module37)
	MR_init_entry1(transform_hlds__rbmm__condition_renaming__IntroducedFrom__pred__collect_ite_annotation_region_names__1060__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__rbmm__condition_renaming__IntroducedFrom__pred__collect_ite_annotation_region_names__1060__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__collect_ite_annotation_region_names__1060__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__rbmm__condition_renaming__IntroducedFrom__pred__collect_ite_annotation_region_names__1060__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(__Unify___mdbcomp__goal_path__goal_path_step_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(transform_hlds__rbmm__condition_renaming_module38)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0);
	MR_init_label8(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,2,3,4,8,11,5,14,15)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__record_ite_renaming__[3]_0'/6 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i2);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("_ite_", 5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i3);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i4);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(map__search_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i5);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_r5 = MR_tempr2;
	}
	MR_np_call_localret_ent(map__set_4_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(1);
	MR_r4 = MR_r1;
	MR_r5 = MR_sv(4);
	MR_r2 = MR_sv(6);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(map__set_4_0);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = MR_tempr1;
	MR_sv(5) = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(0,1,5);
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	}
	MR_np_call_localret_ent(fn__map__init_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i14);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__set_4_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0_i15);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_99_111_114_100_95_105_116_101_95_114_101_110_97_109_105_110_103_95_95_91_51_93_95_48_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(1);
	MR_r4 = MR_r1;
	MR_r5 = MR_sv(4);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(map__set_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(transform_hlds__rbmm__condition_renaming_module39)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0);
	MR_init_label1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__collect_ite_annotation_exec_path__[1]_0'/9 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r4,0,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0_i3);
	}
	MR_r1 = MR_r5;
	MR_r2 = MR_r6;
	MR_proceed();
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_95_91_49_93_95_48_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r4;
	MR_r4 = MR_tfield(0, MR_tfield(1, MR_r4, 0), 0);
	MR_tempr2 = MR_r5;
	MR_r5 = MR_tfield(1, MR_tempr1, 1);
	MR_tempr1 = MR_r6;
	MR_r6 = MR_tempr2;
	MR_r7 = MR_tempr1;
	MR_np_tailcall_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_mdbcomp__goal_path__type_ctor_info_goal_path_step_0;
MR_decl_entry(list__reverse_2_0);
MR_decl_entry(list__append_3_3);
MR_decl_entry(list__member_2_0);

MR_BEGIN_MODULE(transform_hlds__rbmm__condition_renaming_module40)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0);
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,53,3,4,5,8,11,16,18,13,10)
	MR_init_label2(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,24,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__collect_ite_annotation_exec_path_2__[1]_0'/10 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(11);
	MR_sv(11) = (MR_Word) MR_succip;
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i3);
	}
	MR_r1 = MR_r6;
	MR_r2 = MR_r7;
	MR_decr_sp_and_return(11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r6;
	MR_sv(6) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r5;
	MR_sv(7) = MR_tfield(0, MR_tfield(1, MR_tempr1, 0), 0);
	MR_sv(8) = MR_tfield(1, MR_tempr1, 1);
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(mdbcomp__goal_path, goal_path_step);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tfield(0, MR_sv(7), 1);
	}
	MR_np_call_localret_ent(list__reverse_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i4);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(list__reverse_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i5);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(9);
	}
	MR_np_call_localret_ent(list__append_3_3,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i7);
	}
	MR_r1 = MR_sv(10);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__member_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i10);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = (MR_Word) MR_TAG_COMMON(0,0,13);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__search_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i16);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i13);
	}
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__smm_common, program_point);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	}
	MR_np_call_localret_ent(map__set_4_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i18);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r7 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_tempr1;
	MR_succip_word = MR_sv(11);
	MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i53);
	}
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r7 = MR_sv(6);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(5);
	MR_succip_word = MR_sv(11);
	MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i53);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 6);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(4,2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__rbmm__condition_renaming__introduce_reverse_renaming_6_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 3;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 4) = MR_sv(5);
	MR_tfield(0, MR_tempr1, 5) = MR_sv(3);
	MR_r1 = (MR_Word) MR_STRING_CTOR_ADDR;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,0,18);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(6);
	}
	MR_np_call_localret_ent(set__fold_4_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i24);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	MR_decr_sp_and_return(11);
	}
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_succip_word = MR_sv(11);
	MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_114_98_109_109_95_95_99_111_110_100_105_116_105_111_110_95_114_101_110_97_109_105_110_103_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_111_108_108_101_99_116_95_105_116_101_95_97_110_110_111_116_97_116_105_111_110_95_101_120_101_99_95_112_97_116_104_95_50_95_95_91_49_93_95_48_10_0_i53);
#ifdef MR_maybe_local_thread_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__transform_hlds__rbmm__condition_renaming_maybe_bunch_0(void)
{
	transform_hlds__rbmm__condition_renaming_module0();
	transform_hlds__rbmm__condition_renaming_module1();
	transform_hlds__rbmm__condition_renaming_module2();
	transform_hlds__rbmm__condition_renaming_module3();
	transform_hlds__rbmm__condition_renaming_module4();
	transform_hlds__rbmm__condition_renaming_module5();
	transform_hlds__rbmm__condition_renaming_module6();
	transform_hlds__rbmm__condition_renaming_module7();
	transform_hlds__rbmm__condition_renaming_module8();
	transform_hlds__rbmm__condition_renaming_module9();
	transform_hlds__rbmm__condition_renaming_module10();
	transform_hlds__rbmm__condition_renaming_module11();
	transform_hlds__rbmm__condition_renaming_module12();
	transform_hlds__rbmm__condition_renaming_module13();
	transform_hlds__rbmm__condition_renaming_module14();
	transform_hlds__rbmm__condition_renaming_module15();
	transform_hlds__rbmm__condition_renaming_module16();
	transform_hlds__rbmm__condition_renaming_module17();
	transform_hlds__rbmm__condition_renaming_module18();
	transform_hlds__rbmm__condition_renaming_module19();
	transform_hlds__rbmm__condition_renaming_module20();
	transform_hlds__rbmm__condition_renaming_module21();
	transform_hlds__rbmm__condition_renaming_module22();
	transform_hlds__rbmm__condition_renaming_module23();
	transform_hlds__rbmm__condition_renaming_module24();
	transform_hlds__rbmm__condition_renaming_module25();
	transform_hlds__rbmm__condition_renaming_module26();
	transform_hlds__rbmm__condition_renaming_module27();
	transform_hlds__rbmm__condition_renaming_module28();
	transform_hlds__rbmm__condition_renaming_module29();
	transform_hlds__rbmm__condition_renaming_module30();
	transform_hlds__rbmm__condition_renaming_module31();
	transform_hlds__rbmm__condition_renaming_module32();
	transform_hlds__rbmm__condition_renaming_module33();
	transform_hlds__rbmm__condition_renaming_module34();
	transform_hlds__rbmm__condition_renaming_module35();
	transform_hlds__rbmm__condition_renaming_module36();
	transform_hlds__rbmm__condition_renaming_module37();
	transform_hlds__rbmm__condition_renaming_module38();
	transform_hlds__rbmm__condition_renaming_module39();
}

static void mercury__transform_hlds__rbmm__condition_renaming_maybe_bunch_1(void)
{
	transform_hlds__rbmm__condition_renaming_module40();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__transform_hlds__rbmm__condition_renaming__init(void);
void mercury__transform_hlds__rbmm__condition_renaming__init_type_tables(void);
void mercury__transform_hlds__rbmm__condition_renaming__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__transform_hlds__rbmm__condition_renaming__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__transform_hlds__rbmm__condition_renaming__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__transform_hlds__rbmm__condition_renaming__init_threadscope_string_table(void);
#endif

void mercury__transform_hlds__rbmm__condition_renaming__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__transform_hlds__rbmm__condition_renaming_maybe_bunch_0();
	mercury__transform_hlds__rbmm__condition_renaming_maybe_bunch_1();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_goal_path_regions_table_0,
		transform_hlds__rbmm__condition_renaming__goal_path_regions_table_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_proc_goal_path_regions_table_0,
		transform_hlds__rbmm__condition_renaming__proc_goal_path_regions_table_0_0);
	mercury__transform_hlds__rbmm__condition_renaming__init_debugger();
}

void mercury__transform_hlds__rbmm__condition_renaming__init_type_tables(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_goal_path_regions_table_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__rbmm__condition_renaming__type_ctor_info_proc_goal_path_regions_table_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__transform_hlds__rbmm__condition_renaming__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__transform_hlds__rbmm__condition_renaming);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__transform_hlds__rbmm__condition_renaming__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__transform_hlds__rbmm__condition_renaming__init_threadscope_string_table(void)
{
}

#endif

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