/*
** Automatically generated from `table_gen.m'
** by the Mercury compiler,
** version 11.07, configured for x86_64-unknown-linux-gnu.
** Do not edit.
**
** The autoconfigured grade settings governing
** the generation of this C file were
**
** TAG_BITS=2
** UNBOXED_FLOAT=no
** HIGHLEVEL_CODE=no
**
** END_OF_C_GRADE_INFO
*/

/*
INIT mercury__transform_hlds__table_gen__init
ENDINIT
*/

#define MR_ALLOW_RESET
#include "mercury_imp.h"
#line 218 "../library/table_builtin.int"
#include "table_builtin.mh"

#line 28 "transform_hlds.table_gen.c"
#line 140 "../library/io.int2"
#include "io.mh"

#line 32 "transform_hlds.table_gen.c"
#line 150 "../library/io.int2"
#include "time.mh"

#line 36 "transform_hlds.table_gen.c"
#line 151 "../library/io.int2"
#include "string.mh"

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

#line 44 "transform_hlds.table_gen.c"
#line 33 "../library/array.int2"
#include "array.mh"

#line 48 "transform_hlds.table_gen.c"
#line 39 "../mdbcomp/mdbcomp.rtti_access.int2"
#include "mdbcomp.rtti_access.mh"

#line 52 "transform_hlds.table_gen.c"
#line 53 "transform_hlds.table_gen.c"
#include "transform_hlds.table_gen.mh"

#line 56 "transform_hlds.table_gen.c"
#line 57 "transform_hlds.table_gen.c"
#ifndef TRANSFORM_HLDS__TABLE_GEN_DECL_GUARD
#define TRANSFORM_HLDS__TABLE_GEN_DECL_GUARD

#line 61 "transform_hlds.table_gen.c"
#line 62 "transform_hlds.table_gen.c"

#endif
#line 65 "transform_hlds.table_gen.c"

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

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

struct mercury_type_1 {
	MR_Integer f1;
};
MR_STATIC_LINKAGE const struct mercury_type_1 mercury_common_1[];

struct mercury_type_2 {
	MR_Word * f1[2];
};
MR_STATIC_LINKAGE const struct mercury_type_2 mercury_common_2[];

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

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

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

struct mercury_type_6 {
	MR_Integer f1[2];
};
MR_STATIC_LINKAGE const struct mercury_type_6 mercury_common_6[];

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

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

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

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

struct mercury_type_11 {
	MR_Integer f1;
	MR_String f2;
};
MR_STATIC_LINKAGE const struct mercury_type_11 mercury_common_11[];

extern const MR_TypeCtorInfo_Struct
	mercury_data_transform_hlds__table_gen__type_ctor_info_call_or_answer_table_0,
	mercury_data_transform_hlds__table_gen__type_ctor_info_generator_map_0,
	mercury_data_transform_hlds__table_gen__type_ctor_info_maybe_specified_method_0,
	mercury_data_transform_hlds__table_gen__type_ctor_info_table_info_0,
	mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_method_0,
	mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_1,
	mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_0;
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0, 3,4,5,6,7,9,11,12,15,16)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0, 17,18,19,21,24,26,28,30,14,37)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0, 38,39,40,41,43,44,45,46,49,50)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0, 51,53,54,57,59,60,61,62,63,64)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0, 65,66,68,69,71,73,74,76,78,80)
MR_decl_label5(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0, 36,13,88,89,94)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0, 3,4,5,7,8,9,10,11,12,13)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0, 14,15,16,19,21,22,23,24,25,26)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0, 27,28,29,30,31,32,33,34,35,36)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0, 37,39,40,41,42,43,44,45,46,49)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0, 50,51,52,57,58,59,70,72,73,74)
MR_decl_label6(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0, 76,78,80,87,88,93)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0, 2,3,5,4,6,7,8,9,10,11)
MR_decl_label5(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0, 12,13,14,15,16)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0, 4,3,5,6,8,7,9,10,13,16)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0, 19,20,21,22,23,24,25,26,27,28)
MR_decl_label3(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0, 29,30,31)
MR_decl_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0, 2,5,8,11,12,14,15,16,18,10)
MR_decl_label9(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0, 19,20,22,23,24,25,26,28,29)
MR_decl_label6(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0, 22,5,6,7,8,11)
MR_decl_label8(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0, 22,5,6,7,8,9,10,11)
MR_decl_label3(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0, 6,7,2)
MR_decl_label5(transform_hlds__table_gen__add_proc_table_struct_5_0, 2,3,6,5,9)
MR_decl_label3(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0, 6,7,2)
MR_decl_label3(transform_hlds__table_gen__allocate_slot_numbers_3_0, 6,7,2)
MR_decl_label6(transform_hlds__table_gen__append_fail_2_0, 2,3,4,5,6,7)
MR_decl_label3(transform_hlds__table_gen__attach_call_table_tip_2_0, 2,3,4)
MR_decl_label10(transform_hlds__table_gen__clone_pred_info_7_0, 2,3,4,5,6,7,8,9,10,11)
MR_decl_label10(transform_hlds__table_gen__clone_pred_info_7_0, 12,13,14,15,16,17,20,21,22,23)
MR_decl_label6(transform_hlds__table_gen__clone_pred_info_7_0, 25,26,28,29,30,31)
MR_decl_label10(transform_hlds__table_gen__clone_proc_and_create_call_5_0, 2,3,4,5,6,7,8,9,10,11)
MR_decl_label10(transform_hlds__table_gen__clone_proc_and_create_call_5_0, 12,13,14,15,16,17,18,20,21,22)
MR_decl_label7(transform_hlds__table_gen__clone_proc_and_create_call_5_0, 23,24,25,27,28,29,30)
MR_decl_label3(transform_hlds__table_gen__create_instmap_delta_2_0, 16,5,6)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 2,3,5,7,4,10,11,12,17,18)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 19,23,14,24,25,26,27,28,29,33)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 34,35,36,41,42,43,44,48,50,52)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 53,54,60,63,66,67,46,69,73,75)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 45,76,77,78,86,87,81,97,98,99)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 103,104,106,107,108,80,79,110,112,116)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 117,119,120,121,122,128,130,131,132,133)
MR_decl_label10(transform_hlds__table_gen__create_new_io_goal_17_0, 139,140,141,142,147,148,149,150,156,157)
MR_decl_label1(transform_hlds__table_gen__create_new_io_goal_17_0, 158)
MR_decl_label10(transform_hlds__table_gen__create_new_loop_goal_17_0, 3,4,5,6,7,8,9,10,11,14)
MR_decl_label10(transform_hlds__table_gen__create_new_loop_goal_17_0, 16,17,18,19,20,21,22,23,24,25)
MR_decl_label10(transform_hlds__table_gen__create_new_loop_goal_17_0, 26,27,28,29,30,31,32,33,34,35)
MR_decl_label10(transform_hlds__table_gen__create_new_loop_goal_17_0, 36,37,38,40,41,42,43,44,45,46)
MR_decl_label10(transform_hlds__table_gen__create_new_loop_goal_17_0, 47,48,50,53,54,56,64,65,66,71)
MR_decl_label10(transform_hlds__table_gen__create_new_loop_goal_17_0, 72,73,60,78,79,80,82,85,86,87)
MR_decl_label7(transform_hlds__table_gen__create_new_loop_goal_17_0, 55,90,92,94,101,102,107)
MR_decl_label10(transform_hlds__table_gen__create_new_mm_goal_18_0, 3,4,5,7,8,9,10,11,16,17)
MR_decl_label10(transform_hlds__table_gen__create_new_mm_goal_18_0, 18,19,20,21,24,25,26,31,33,35)
MR_decl_label2(transform_hlds__table_gen__create_new_mm_goal_18_0, 41,46)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0, 5,6,8,9,12,13,16,17,18,19)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0, 20,23,25,27,28,29,30,31,32,35)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0, 36,37,38,40,41,42,43,44,45,46)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0, 47,50,52,54,55,64,65,66,68,70)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0, 72,74,75,78,80,81,82,83,84,85)
MR_decl_label1(transform_hlds__table_gen__do_own_stack_create_generator_20_0, 86)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 2,4,3,7,8,11,12,13,15,16)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 17,18,19,21,23,24,26,27,28,29)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 30,31,32,36,39,41,42,43,44,45)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 46,47,48,49,50,51,52,53,54,55)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 56,57,58,59,60,61,62,63,64,65)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 66,67,68,69,70,71,72,73,74,75)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 76,77,78,79,80,81,82,83,84,85)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 86,87,88,89,90,91,92,93,94,98)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 99,100,103,104,105,106,110,116,117,118)
MR_decl_label10(transform_hlds__table_gen__do_own_stack_transform_21_0, 119,120,121,122,125,127,129,130,133,135)
MR_decl_label3(transform_hlds__table_gen__do_own_stack_transform_21_0, 137,138,139)
MR_decl_label1(transform_hlds__table_gen__filter_marker_1_0, 2)
MR_decl_label10(transform_hlds__table_gen__gen_general_lookup_call_20_0, 2,4,7,8,9,10,11,13,14,20)
MR_decl_label10(transform_hlds__table_gen__gen_general_lookup_call_20_0, 21,22,23,24,25,26,27,28,29,30)
MR_decl_label4(transform_hlds__table_gen__gen_general_lookup_call_20_0, 31,32,33,34)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 2,3,7,12,14,18,19,20,21,22)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 23,24,25,26,27,28,29,30,31,32)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 33,16,11,39,43,44,45,46,47,48)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 49,50,51,52,53,54,55,56,57,58)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 37,61,63,67,68,69,70,71,72,73)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 74,75,76,77,78,79,80,81,82,65)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 60,87,91,92,93,94,95,96,97,98)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 99,100,101,102,103,104,105,106,9,111)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 112,113,114,115,116,110,108,121,123,129)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 130,131,132,133,134,135,136,137,138,139)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 140,141,142,143,144,127,145,146,147,148)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 153,149,157,158,159,160,161,162,163,164)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 165,166,167,168,169,170,171,172,173,174)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 175,176,125,120,182,180,189,195,196,197)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 198,199,200,201,202,203,204,205,193,213)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 214,215,216,217,218,219,220,221,222,223)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 224,225,226,227,228,211,229,187,235,233)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 242,240,249,252,247,330,254,258,332,8)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 264,265,266,267,268,269,272,271,273,274)
MR_decl_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 275,276,277,278,279,280,281,282,283,284)
MR_decl_label2(transform_hlds__table_gen__gen_lookup_call_for_type_19_0, 285,286)
MR_decl_label10(transform_hlds__table_gen__gen_restore_call_for_type_9_0, 2,3,6,4,10,11,12,13,14,15)
MR_decl_label10(transform_hlds__table_gen__gen_restore_call_for_type_9_0, 9,18,19,8,21,22,23,25,28,27)
MR_decl_label10(transform_hlds__table_gen__gen_restore_call_for_type_9_0, 36,37,38,39,40,41,42,43,44,45)
MR_decl_label2(transform_hlds__table_gen__gen_restore_call_for_type_9_0, 46,47)
MR_decl_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0, 2,3,9,12,13,14,15,16,17,18)
MR_decl_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0, 19,20,21,22,23,8,25,27,30,32)
MR_decl_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0, 33,34,36,37,43,44,45,46,47,48)
MR_decl_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0, 49,50,51,52,53,54,55,56,24,57)
MR_decl_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0, 58,59,61,62,63,64,65,66,67,68)
MR_decl_label4(transform_hlds__table_gen__gen_save_call_for_type_15_0, 69,70,71,72)
MR_decl_label10(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0, 3,5,6,8,7,9,10,11,12,13)
MR_decl_label10(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0, 2,3,4,5,6,8,9,10,11,12)
MR_decl_label4(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0, 15,16,17,20)
MR_decl_label10(transform_hlds__table_gen__generate_error_goal_8_0, 2,3,4,5,6,8,9,10,11,12)
MR_decl_label10(transform_hlds__table_gen__generate_error_goal_8_0, 13,14,15,17,19,20,25,26,27,28)
MR_decl_label10(transform_hlds__table_gen__generate_gen_proc_table_info_8_0, 2,3,4,5,6,7,12,13,14,15)
MR_decl_label10(transform_hlds__table_gen__generate_get_table_info_goal_9_0, 2,5,6,8,9,12,15,18,20,21)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0, 2,3,4,5,6,9,10,11,14,16)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0, 19,24,25,26,27,28,29,30,31,32)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0, 33,34,35,36,37,38,39,40,41,42)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0, 43,44,45,46,47,48,49,50,51,53)
MR_decl_label4(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0, 58,61,62,63)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0, 2,4,8,9,12,13,16,17,18,19)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0, 21,20,22,26,27,30,33,34,35,40)
MR_decl_label1(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0, 41)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0, 2,3,6,8,9,10,11,12,13,14)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0, 15,16,17,18,19,20,21,22,23,24)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0, 25,26,27,28,29,30,31,32,33,34)
MR_decl_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0, 35,36,37,38,39,40,41,42,43,44)
MR_decl_label9(transform_hlds__table_gen__generate_memo_non_save_goals_15_0, 45,46,47,48,49,50,52,53,55)
MR_decl_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0, 2,3,4,5,6,9,10,11,14,16)
MR_decl_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0, 19,24,25,26,27,28,29,30,31,32)
MR_decl_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0, 33,34,35,36,37,38,39,40,41,42)
MR_decl_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0, 43,44,45,46,47,48,49,50,51,53)
MR_decl_label4(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0, 58,61,62,63)
MR_decl_label3(transform_hlds__table_gen__generate_mm_restore_goal_11_0, 2,24,22)
MR_decl_label10(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0, 2,5,6,9,10,11,12,14,13,15)
MR_decl_label8(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0, 19,20,23,26,27,28,33,34)
MR_decl_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0, 2,3,4,5,6,7,10,13,14,15)
MR_decl_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0, 16,17,18,19,20,21,22,23,24,25)
MR_decl_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0, 26,27,28,29,30,31,32,33,34,35)
MR_decl_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0, 36,37,38,39,40,41,42,43,44,45)
MR_decl_label7(transform_hlds__table_gen__generate_mm_save_goals_15_0, 46,47,48,49,50,51,53)
MR_decl_label2(transform_hlds__table_gen__generate_new_table_var_7_0, 2,4)
MR_decl_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 2,3,6,8,9,10,12,13,14,15)
MR_decl_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 16,17,18,19,20,21,22,23,24,25)
MR_decl_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 26,27,28,29,30,31,32,33,34,35)
MR_decl_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 36,37,38,39,40,41,42,43,44,45)
MR_decl_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 46,47,48,49,50,51,52,53,54,55)
MR_decl_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 56,57,58,59,60,61,62,63,64,65)
MR_decl_label7(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0, 66,67,68,69,70,72,73)
MR_decl_label10(transform_hlds__table_gen__generate_save_input_vars_code_6_0, 42,5,4,7,12,13,14,15,16,17)
MR_decl_label7(transform_hlds__table_gen__generate_save_input_vars_code_6_0, 18,19,20,21,22,24,25)
MR_decl_label10(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0, 2,3,4,5,9,10,11,12,13,14)
MR_decl_label10(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0, 15,16,17,18,19,20,21,27,28,29)
MR_decl_label10(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0, 30,31,32,33,34,35,36,37,38,39)
MR_decl_label6(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0, 40,42,47,50,51,52)
MR_decl_label10(transform_hlds__table_gen__generate_table_lookup_goals_15_0, 38,4,6,7,10,11,12,13,9,15)
MR_decl_label4(transform_hlds__table_gen__generate_table_lookup_goals_15_0, 17,19,20,21)
MR_decl_label10(transform_hlds__table_gen__get_input_output_vars_7_0, 3,11,13,15,20,23,18,29,9,38)
MR_decl_label8(transform_hlds__table_gen__get_input_output_vars_7_0, 40,42,47,50,45,55,37,8)
MR_decl_label1(transform_hlds__table_gen__goal_info_init_hide_6_0, 2)
MR_decl_label6(transform_hlds__table_gen__keep_only_output_arg_types_3_0, 32,3,5,7,9,6)
MR_decl_label10(transform_hlds__table_gen__maybe_record_overall_stats_12_0, 27,4,7,8,9,10,11,12,13,14)
MR_decl_label2(transform_hlds__table_gen__maybe_record_overall_stats_12_0, 15,16)
MR_decl_label10(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0, 3,5,15,11,18,20,9,28,43,29)
MR_decl_label1(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0, 7)
MR_decl_label2(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0, 1,3)
MR_decl_label2(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0, 1,3)
MR_decl_label8(transform_hlds__table_gen__table_gen_make_type_info_var_10_0, 3,4,5,6,7,8,9,11)
MR_decl_label4(transform_hlds__table_gen__table_gen_process_module_4_0, 2,3,4,5)
MR_decl_label5(transform_hlds__table_gen__table_gen_process_preds_7_0, 12,3,4,5,6)
MR_decl_label10(transform_hlds__table_gen__table_gen_process_proc_10_0, 2,4,3,8,9,11,13,15,16,17)
MR_decl_label10(transform_hlds__table_gen__table_gen_process_proc_10_0, 18,19,14,21,22,23,24,25,27,28)
MR_decl_label10(transform_hlds__table_gen__table_gen_process_proc_10_0, 30,34,26,43,45,44,48,49,7,51)
MR_decl_label7(transform_hlds__table_gen__table_gen_process_procs_8_0, 14,3,4,5,6,7,8)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 2,3,4,5,6,7,8,9,10,13)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 12,11,17,19,16,24,25,26,27,28)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 23,32,33,34,37,36,39,35,40,31)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 44,47,48,49,50,52,55,54,57,60)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 56,15,65,67,68,69,70,71,73,74)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 63,14,76,77,78,79,80,107,82,81)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0, 85,87,88,89,90,91,93,94,95,96)
MR_decl_label10(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0, 2,3,6,8,9,19,20,27,28,5)
MR_decl_label1(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0, 29)
MR_decl_label4(transform_hlds__table_gen__table_generate_call_8_0, 2,4,3,6)
MR_decl_label4(transform_hlds__table_gen__table_generate_foreign_proc_11_0, 3,2,5,9)
MR_decl_label10(transform_hlds__table_gen__type_save_category_2_0, 5,6,7,3,10,8,12,15,80,13)
MR_decl_label2(transform_hlds__table_gen__type_save_category_2_0, 21,22)
MR_decl_label1(transform_hlds__table_gen__var_mode_is_io_state_2_0, 3)
MR_decl_label1(transform_hlds__table_gen__var_mode_pos_is_io_state_2_0, 3)
MR_decl_label1(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0, 2)
MR_decl_label1(fn__transform_hlds__table_gen__answer_block_type_0_0, 2)
MR_decl_label1(fn__transform_hlds__table_gen__arg_name_1_0, 2)
MR_decl_label10(fn__transform_hlds__table_gen__builtin_type_1_0, 3,4,5,6,7,8,9,12,24,13)
MR_decl_label1(fn__transform_hlds__table_gen__builtin_type_1_0, 25)
MR_decl_label1(fn__transform_hlds__table_gen__consumer_type_0_0, 2)
MR_decl_label2(fn__transform_hlds__table_gen__dummy_type_var_0_0, 2,3)
MR_decl_label1(fn__transform_hlds__table_gen__generator_type_0_0, 2)
MR_decl_label3(fn__transform_hlds__table_gen__get_back_arg_string_1_0, 2,4,6)
MR_decl_label3(fn__transform_hlds__table_gen__get_debug_arg_string_1_0, 2,3,5)
MR_decl_label2(fn__transform_hlds__table_gen__loop_active_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0, 2,4)
MR_decl_label1(fn__transform_hlds__table_gen__loop_status_type_0_0, 2)
MR_decl_label1(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0, 2)
MR_decl_label7(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0, 18,4,5,6,7,8,9)
MR_decl_label2(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0, 2,4)
MR_decl_label1(fn__transform_hlds__table_gen__memo_det_status_type_0_0, 2)
MR_decl_label2(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0, 2,4)
MR_decl_label1(fn__transform_hlds__table_gen__memo_non_record_type_0_0, 2)
MR_decl_label1(fn__transform_hlds__table_gen__memo_non_status_type_0_0, 2)
MR_decl_label2(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0, 2,4)
MR_decl_label1(fn__transform_hlds__table_gen__memo_semi_status_type_0_0, 2)
MR_decl_label2(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__mm_active_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0, 2,4)
MR_decl_label2(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0, 2,4)
MR_decl_label1(fn__transform_hlds__table_gen__mm_status_type_0_0, 2)
MR_decl_label6(fn__transform_hlds__table_gen__stats_ref_2_0, 27,5,6,7,8,9)
MR_decl_label4(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0, 2,3,4,5)
MR_decl_label1(fn__transform_hlds__table_gen__subgoal_type_0_0, 2)
MR_decl_label3(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0, 2,3,4)
MR_decl_label2(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0, 2,3)
MR_decl_label1(fn__transform_hlds__table_gen__trie_node_type_0_0, 2)
MR_decl_label4(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0, 15,5,9,1)
MR_decl_label4(__Unify___transform_hlds__table_gen__table_info_0_0, 4,6,10,1)
MR_decl_label4(__Unify___transform_hlds__table_gen__var_mode_method_0_0, 4,6,8,1)
MR_decl_label4(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0, 4,6,10,1)
MR_decl_label7(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0, 3,2,7,5,10,13,56)
MR_decl_label5(__Compare___transform_hlds__table_gen__table_info_0_0, 3,2,5,9,29)
MR_decl_label5(__Compare___transform_hlds__table_gen__var_mode_method_0_0, 3,2,5,9,29)
MR_decl_label6(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0, 3,2,5,9,13,37)
MR_decl_static(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0)
MR_decl_static(transform_hlds__table_gen__generate_new_table_var_7_0)
MR_decl_static(transform_hlds__table_gen__generate_get_table_info_goal_9_0)
MR_decl_static(transform_hlds__table_gen__maybe_record_overall_stats_12_0)
MR_decl_static(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0)
MR_decl_static(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0)
MR_decl_static(transform_hlds__table_gen__table_info_init_4_0)
MR_decl_static(transform_hlds__table_gen__table_info_extract_4_0)
MR_decl_static(transform_hlds__table_gen__table_gen_make_type_info_var_10_0)
MR_decl_static(fn__transform_hlds__table_gen__cur_table_node_name_0_0)
MR_decl_static(fn__transform_hlds__table_gen__next_table_node_name_0_0)
MR_decl_static(transform_hlds__table_gen__gen_general_lookup_call_20_0)
MR_decl_static(fn__transform_hlds__table_gen__arg_name_1_0)
MR_decl_static(transform_hlds__table_gen__gen_lookup_call_for_type_19_0)
MR_decl_static(transform_hlds__table_gen__generate_table_lookup_goals_15_0)
MR_decl_static(fn__transform_hlds__table_gen__get_debug_arg_string_1_0)
MR_decl_static(fn__transform_hlds__table_gen__get_back_arg_string_1_0)
MR_decl_static(fn__transform_hlds__table_gen__stats_ref_2_0)
MR_decl_static(fn__transform_hlds__table_gen__trie_node_type_0_0)
MR_decl_static(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0)
MR_decl_static(transform_hlds__table_gen__attach_call_table_tip_2_0)
MR_decl_static(transform_hlds__table_gen__table_generate_foreign_proc_11_0)
MR_decl_static(transform_hlds__table_gen__goal_info_init_hide_6_0)
MR_decl_static(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0)
MR_decl_static(fn__transform_hlds__table_gen__status_name_0_0)
MR_decl_static(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0)
MR_decl_static(fn__transform_hlds__table_gen__infinite_recursion_msg_0_0)
MR_decl_static(transform_hlds__table_gen__table_generate_call_8_0)
MR_decl_static(transform_hlds__table_gen__generate_error_goal_8_0)
MR_decl_static(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0)
MR_decl_static(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__loop_active_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__loop_status_type_0_0)
MR_decl_static(transform_hlds__table_gen__create_new_loop_goal_17_0)
MR_decl_static(fn__transform_hlds__table_gen__builtin_type_1_0)
MR_decl_static(transform_hlds__table_gen__type_save_category_2_0)
MR_decl_static(fn__transform_hlds__table_gen__dummy_type_var_0_0)
MR_decl_static(fn__transform_hlds__table_gen__answer_block_name_0_0)
MR_decl_static(transform_hlds__table_gen__gen_save_call_for_type_15_0)
MR_decl_static(transform_hlds__table_gen__gen_restore_call_for_type_9_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_det_status_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_semi_status_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_record_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_status_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_record_name_0_0)
MR_decl_static(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0)
MR_decl_static(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0)
MR_decl_static(fn__transform_hlds__table_gen__success_indicator_name_0_0)
MR_decl_static(transform_hlds__table_gen__generate_memo_non_save_goals_15_0)
MR_decl_static(fn__transform_hlds__table_gen__answer_block_type_0_0)
MR_decl_static(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0)
MR_decl_static(fn__transform_hlds__table_gen__need_minimal_model_msg_0_0)
MR_decl_static(transform_hlds__table_gen__create_instmap_delta_2_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0)
MR_decl_static(transform_hlds__table_gen__clone_proc_and_create_call_5_0)
MR_decl_static(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0)
MR_decl_static(transform_hlds__table_gen__create_new_io_goal_17_0)
MR_decl_static(fn__transform_hlds__table_gen__subgoal_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__mm_status_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__subgoal_name_0_0)
MR_decl_static(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0)
MR_decl_static(transform_hlds__table_gen__generate_mm_save_goals_15_0)
MR_decl_static(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0)
MR_decl_static(transform_hlds__table_gen__generate_mm_restore_goal_11_0)
MR_decl_static(transform_hlds__table_gen__generate_mm_suspend_goal_10_0)
MR_decl_static(transform_hlds__table_gen__append_fail_2_0)
MR_decl_static(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__mm_active_cons_id_0_0)
MR_decl_static(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0)
MR_decl_static(transform_hlds__table_gen__create_new_mm_goal_18_0)
MR_decl_static(transform_hlds__table_gen__generate_save_input_vars_code_6_0)
MR_decl_static(transform_hlds__table_gen__allocate_slot_numbers_3_0)
MR_decl_static(transform_hlds__table_gen__generate_gen_proc_table_info_8_0)
MR_decl_static(fn__transform_hlds__table_gen__generator_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__generator_name_0_0)
MR_decl_static(fn__transform_hlds__table_gen__returning_generator_locn_0_0)
MR_decl_static(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0)
MR_decl_static(transform_hlds__table_gen__add_proc_table_struct_5_0)
MR_decl_static(transform_hlds__table_gen__do_own_stack_create_generator_20_0)
MR_decl_static(transform_hlds__table_gen__keep_only_output_arg_types_3_0)
MR_decl_static(transform_hlds__table_gen__clone_pred_info_7_0)
MR_decl_static(fn__transform_hlds__table_gen__consumer_type_0_0)
MR_decl_static(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0)
MR_decl_static(fn__transform_hlds__table_gen__consumer_name_0_0)
MR_decl_static(fn__transform_hlds__table_gen__generator_pred_name_0_0)
MR_decl_static(transform_hlds__table_gen__do_own_stack_transform_21_0)
MR_decl_static(transform_hlds__table_gen__get_input_output_vars_7_0)
MR_decl_static(transform_hlds__table_gen__table_gen_transform_proc_11_0)
MR_decl_static(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0)
MR_decl_static(transform_hlds__table_gen__table_gen_process_proc_10_0)
MR_decl_static(transform_hlds__table_gen__table_gen_process_procs_8_0)
MR_decl_static(transform_hlds__table_gen__table_gen_process_preds_7_0)
MR_def_extern_entry(transform_hlds__table_gen__table_gen_process_module_4_0)
MR_decl_static(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0)
MR_decl_static(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0)
MR_decl_static(transform_hlds__table_gen__filter_marker_1_0)
MR_decl_static(fn__transform_hlds__table_gen__project_out_arg_method_1_0)
MR_decl_static(fn__transform_hlds__table_gen__project_out_pos_1_0)
MR_decl_static(transform_hlds__table_gen__var_mode_pos_is_io_state_2_0)
MR_decl_static(transform_hlds__table_gen__var_mode_is_io_state_2_0)
MR_decl_static(__Unify___transform_hlds__table_gen__call_or_answer_table_0_0)
MR_decl_static(__Compare___transform_hlds__table_gen__call_or_answer_table_0_0)
MR_decl_static(__Unify___transform_hlds__table_gen__generator_map_0_0)
MR_decl_static(__Compare___transform_hlds__table_gen__generator_map_0_0)
MR_decl_static(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0)
MR_decl_static(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0)
MR_decl_static(__Unify___transform_hlds__table_gen__table_info_0_0)
MR_decl_static(__Compare___transform_hlds__table_gen__table_info_0_0)
MR_decl_static(__Unify___transform_hlds__table_gen__var_mode_method_0_0)
MR_decl_static(__Compare___transform_hlds__table_gen__var_mode_method_0_0)
MR_decl_static(__Unify___transform_hlds__table_gen__var_mode_pos_method_0_0)
MR_decl_static(__Compare___transform_hlds__table_gen__var_mode_pos_method_0_0)
MR_decl_static(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0)
MR_decl_static(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0)
MR_decl_static(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__428__1_2_0)
MR_decl_static(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__430__1_2_0)
MR_decl_static(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__397__1_2_0)
MR_decl_static(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__493__1_2_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_loop_goal__718__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_goal__947__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_non_goal__1109__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1281__1_1_0)
MR_decl_static(transform_hlds__table_gen__IntroducedFrom__pred__create_new_io_goal__1282__1_2_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1288__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_transform__1629__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1766__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1768__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1770__1_2_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_gen_proc_table_info__2007__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_simple_call_table_lookup_goal__2064__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_call_table_lookup_goal__2122__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_call_table_lookup_goal__2179__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_restore_goal__2966__1_1_0)
MR_decl_static(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_restore_or_suspend_goal__3039__1_1_0)
MR_decl_static(transform_hlds__table_gen__IntroducedFrom__pred__get_input_output_vars__3317__1_2_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0)
MR_decl_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0)
MR_decl_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_112_111_115_95_95_91_49_93_95_48_1_0)
MR_decl_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0)
MR_decl_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_109_111_100_101_95_95_91_49_93_95_48_1_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0)
MR_decl_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_118_97_114_95_98_101_108_111_110_103_95_116_111_95_108_105_115_116_95_95_91_49_93_95_48_2_0)

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_proc_tabled_for_io_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_proc_may_call_mercury_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_loop_goal_17_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_2;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_3;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_4;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_5;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_6;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_7;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_gen_proc_table_info_8_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_4;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_method_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_5;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_transform_21_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__get_input_output_vars_7_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_1;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_2;
extern const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_maybe_specified_method_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__code_model__type_ctor_info_code_model_0;
static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_4;
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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_1;
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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_1;
static const struct mercury_type_0 mercury_common_0[28] =
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(parse_tree__prog_data, proc_tabled_for_io)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal),
MR_CTOR0_ADDR(parse_tree__prog_data, proc_may_call_mercury)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_loop_goal_17_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(7,0),
MR_COMMON(2,2)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(7,0),
MR_COMMON(7,1)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,5),
MR_COMMON(2,6)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_5,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,6),
MR_COMMON(7,4)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_6,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,6)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_7,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,6)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__generate_gen_proc_table_info_8_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(7,4)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_CTOR0_ADDR(transform_hlds__table_gen, var_mode_method)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_5,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_CTOR0_ADDR(transform_hlds__table_gen, var_mode_method)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_transform_21_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__get_input_output_vars_7_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,9),
MR_COMMON(2,9)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,10),
MR_COMMON(2,10)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_2,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(transform_hlds__table_gen, maybe_specified_method),
MR_CTOR0_ADDR(transform_hlds__table_gen, maybe_specified_method)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_3,
(MR_Word *) (MR_Integer) 0,
2,
MR_CTOR0_ADDR(hlds__code_model, code_model),
MR_CTOR0_ADDR(hlds__code_model, code_model)
},
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_4,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,11),
MR_COMMON(2,11)
},
{
(MR_Word *) &mercury_data__closure_layout__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
{
(MR_Word *) &mercury_data__closure_layout__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_1,
(MR_Word *) (MR_Integer) 0,
2,
MR_COMMON(2,2),
MR_COMMON(2,3)
},
};

static const struct mercury_type_1 mercury_common_1[3] =
{
{
1
},
{
0
},
{
2
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_var_1;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_arg_tabling_method_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_arg_tabling_method_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_prog_var_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_term__type_ctor_info_var_1;
extern const MR_TypeCtorInfo_Struct mercury_data_list__type_ctor_info_list_1;
extern const MR_TypeCtorInfo_Struct mercury_data_unit__type_ctor_info_unit_0;
extern const MR_TypeCtorInfo_Struct mercury_data_unit__type_ctor_info_unit_0;
extern const MR_TypeCtorInfo_Struct mercury_data_maybe__type_ctor_info_maybe_1;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_table_attributes_0;
static const struct mercury_type_2 mercury_common_2[16] =
{
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(transform_hlds__table_gen, var_mode_pos_method),
MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method)
}
},
{
{
MR_CTOR1_ADDR(transform_hlds__table_gen, var_mode_pos_method),
MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_CTOR1_ADDR(term, var),
MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type)
}
},
{
{
MR_LIST_CTOR_ADDR,
MR_COMMON(2,4)
}
},
{
{
MR_CTOR1_ADDR(transform_hlds__table_gen, var_mode_pos_method),
MR_CTOR0_ADDR(unit, unit)
}
},
{
{
MR_CTOR1_ADDR(transform_hlds__table_gen, var_mode_pos_method),
MR_CTOR0_ADDR(unit, unit)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method)
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR1_ADDR(maybe, maybe),
MR_CTOR0_ADDR(parse_tree__prog_data, table_attributes)
}
},
{
{
MR_TAG_COMMON(3,11,1),
MR_tbmkword(0, 0)
}
},
{
{
MR_tbmkword(0, 1),
MR_tbmkword(0, 0)
}
},
{
{
MR_TAG_COMMON(3,11,2),
MR_TAG_COMMON(1,2,13)
}
},
{
{
MR_TAG_COMMON(3,11,3),
MR_TAG_COMMON(1,2,13)
}
},
};

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

static const struct mercury_type_4 mercury_common_4[19] =
{
{
MR_COMMON(0,2),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_simple_call_table_lookup_goal__2064__1_1_0),
0
},
{
MR_COMMON(0,3),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_loop_goal__718__1_1_0),
0
},
{
MR_COMMON(0,4),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_call_table_lookup_goal__2122__1_1_0),
0
},
{
MR_COMMON(0,5),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_restore_goal__2966__1_1_0),
0
},
{
MR_COMMON(0,8),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1281__1_1_0),
0
},
{
MR_COMMON(0,10),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1288__1_1_0),
0
},
{
MR_COMMON(0,11),
MR_ENTRY_AP(fn__transform_hlds__table_gen__project_out_arg_method_1_0),
0
},
{
MR_COMMON(0,12),
MR_ENTRY_AP(fn__transform_hlds__table_gen__project_out_arg_method_1_0),
0
},
{
MR_COMMON(0,13),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_call_table_lookup_goal__2179__1_1_0),
0
},
{
MR_COMMON(0,14),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_restore_or_suspend_goal__3039__1_1_0),
0
},
{
MR_COMMON(0,15),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_gen_proc_table_info__2007__1_1_0),
0
},
{
MR_COMMON(0,16),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1766__1_1_0),
0
},
{
MR_COMMON(0,17),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1768__1_1_0),
0
},
{
MR_COMMON(0,18),
MR_ENTRY_AP(fn__transform_hlds__table_gen__project_out_pos_1_0),
0
},
{
MR_COMMON(0,19),
MR_ENTRY_AP(fn__transform_hlds__table_gen__project_out_pos_1_0),
0
},
{
MR_COMMON(10,0),
MR_ENTRY_AP(transform_hlds__table_gen__filter_marker_1_0),
0
},
{
MR_COMMON(0,20),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_transform__1629__1_1_0),
0
},
{
MR_COMMON(0,26),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_goal__947__1_1_0),
0
},
{
MR_COMMON(0,27),
MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_non_goal__1109__1_1_0),
0
},
};

static const struct mercury_type_5 mercury_common_5[3] =
{
{
MR_string_const("Message", 7)
},
{
MR_string_const("proc_table_info->MR_pt_stats[MR_TABLE_ANSWER_TABLE][MR_TABLE_STATS_CURR]", 72)
},
{
MR_string_const("TableIoDeclPtr", 14)
},
};

static const struct mercury_type_6 mercury_common_6[1] =
{
{
{
0,
1
}
},
};

extern const MR_TypeCtorInfo_Struct mercury_data_tree234__type_ctor_info_tree234_2;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
extern const MR_TypeCtorInfo_Struct mercury_data_pair__type_ctor_info_pair_2;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0;
extern const MR_TypeCtorInfo_Struct mercury_data_builtin__type_ctor_info_int_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_inst_0;
static const struct mercury_type_7 mercury_common_7[7] =
{
{
{
MR_CTOR_ADDR(tree234, tree234, 2),
MR_COMMON(2,4),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_type)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_COMMON(2,4),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_TAG_COMMON(0,2,0),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_TAG_COMMON(0,2,0),
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_COMMON(2,4),
MR_INT_CTOR_ADDR
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_TAG_COMMON(0,2,0),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst)
}
},
{
{
MR_CTOR_ADDR(pair, pair, 2),
MR_COMMON(2,4),
MR_CTOR0_ADDR(parse_tree__prog_data, mer_inst)
}
},
};

static const struct mercury_type_8 mercury_common_8[2] =
{
{
1,
3,
MR_tbmkword(0, 0)
},
{
1,
1,
MR_tbmkword(0, 0)
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_3;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_module_info_0;
static const struct mercury_type_9 mercury_common_9[1] =
{
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_3,
(MR_Word *) (MR_Integer) 0
},
3,
{
MR_CTOR0_ADDR(hlds__hlds_module, module_info),
MR_COMMON(2,2),
MR_COMMON(7,6)
}
},
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__clone_pred_info_7_0_1;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_marker_0;
static const struct mercury_type_10 mercury_common_10[1] =
{
{
(MR_Word *) &mercury_data__closure_layout__transform_hlds__table_gen__clone_pred_info_7_0_1,
(MR_Word *) (MR_Integer) 0,
1,
MR_CTOR0_ADDR(hlds__hlds_pred, marker)
},
};

static const struct mercury_type_11 mercury_common_11[4] =
{
{
4,
MR_string_const("Ignoring the pragma", 19)
},
{
4,
MR_string_const("for", 3)
},
{
4,
MR_string_const("due to lack of support on this back end.", 40)
},
{
4,
MR_string_const("contains untabled I/O primitive.", 32)
},
};

static const MR_EnumFunctorDesc mercury_data_transform_hlds__table_gen__enum_functor_desc_call_or_answer_table_0_0 = {
	"call_table",
	0
};

static const MR_EnumFunctorDesc mercury_data_transform_hlds__table_gen__enum_functor_desc_call_or_answer_table_0_1 = {
	"answer_table",
	1
};

const MR_EnumFunctorDescPtr mercury_data_transform_hlds__table_gen__enum_value_ordered_call_or_answer_table_0[] = {
	&mercury_data_transform_hlds__table_gen__enum_functor_desc_call_or_answer_table_0_0,
	&mercury_data_transform_hlds__table_gen__enum_functor_desc_call_or_answer_table_0_1
};

const MR_EnumFunctorDescPtr mercury_data_transform_hlds__table_gen__enum_name_ordered_call_or_answer_table_0[] = {
	&mercury_data_transform_hlds__table_gen__enum_functor_desc_call_or_answer_table_0_1,
	&mercury_data_transform_hlds__table_gen__enum_functor_desc_call_or_answer_table_0_0
};

const MR_Integer mercury_data_transform_hlds__table_gen__functor_number_map_call_or_answer_table_0[] = {
	1,
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_call_or_answer_table_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_ENUM,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__call_or_answer_table_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__call_or_answer_table_0_0)),
	"transform_hlds.table_gen",
	"call_or_answer_table",
	{ (void *)mercury_data_transform_hlds__table_gen__enum_name_ordered_call_or_answer_table_0 },
	{ (void *)mercury_data_transform_hlds__table_gen__enum_value_ordered_call_or_answer_table_0 },
	2,
	4,
	mercury_data_transform_hlds__table_gen__functor_number_map_call_or_answer_table_0
};

static const MR_FA_TypeInfo_Struct2 mercury_data_tree234__ti_tree234_2builtin__type_ctor_info_int_0builtin__type_ctor_info_int_0 = {
	&mercury_data_tree234__type_ctor_info_tree234_2,
{	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_TypeInfo) &mercury_data_builtin__type_ctor_info_int_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_generator_map_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__generator_map_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__generator_map_0_0)),
	"transform_hlds.table_gen",
	"generator_map",
	{ 0 },
	{ (void *)&mercury_data_tree234__ti_tree234_2builtin__type_ctor_info_int_0builtin__type_ctor_info_int_0 },
	-1,
	0,
	NULL
};

const MR_PseudoTypeInfo mercury_data_transform_hlds__table_gen__field_types_maybe_specified_method_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_arg_tabling_method_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__table_gen__du_functor_desc_maybe_specified_method_0_0 = {
	"all_same",
	1,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__table_gen__field_types_maybe_specified_method_0_0,
	NULL,
	NULL
};

static const MR_FA_TypeInfo_Struct1 mercury_data_maybe__ti_maybe_1parse_tree__prog_data__type_ctor_info_arg_tabling_method_0 = {
	&mercury_data_maybe__type_ctor_info_maybe_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_arg_tabling_method_0
}};

static const MR_FA_TypeInfo_Struct1 mercury_data_list__ti_list_1maybe__ti_maybe_1parse_tree__prog_data__type_ctor_info_arg_tabling_method_0 = {
	&mercury_data_list__type_ctor_info_list_1,
{	(MR_TypeInfo) &mercury_data_maybe__ti_maybe_1parse_tree__prog_data__type_ctor_info_arg_tabling_method_0
}};
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_hidden_arg_tabling_method_0;
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_hidden_arg_tabling_method_0;

const MR_PseudoTypeInfo mercury_data_transform_hlds__table_gen__field_types_maybe_specified_method_0_1[] = {
	(MR_PseudoTypeInfo) &mercury_data_list__ti_list_1maybe__ti_maybe_1parse_tree__prog_data__type_ctor_info_arg_tabling_method_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_hidden_arg_tabling_method_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__table_gen__du_functor_desc_maybe_specified_method_0_1 = {
	"specified",
	2,
	0,
	MR_SECTAG_NONE,
	1,
	-1,
	1,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__table_gen__field_types_maybe_specified_method_0_1,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_stag_ordered_maybe_specified_method_0_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_maybe_specified_method_0_0

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_stag_ordered_maybe_specified_method_0_1[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_maybe_specified_method_0_1

};

const MR_DuPtagLayout mercury_data_transform_hlds__table_gen__du_ptag_ordered_maybe_specified_method_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__table_gen__du_stag_ordered_maybe_specified_method_0_0 },
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__table_gen__du_stag_ordered_maybe_specified_method_0_1 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_name_ordered_maybe_specified_method_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_maybe_specified_method_0_0,
	&mercury_data_transform_hlds__table_gen__du_functor_desc_maybe_specified_method_0_1
};

const MR_Integer mercury_data_transform_hlds__table_gen__functor_number_map_maybe_specified_method_0[] = {
	0,
	1 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_maybe_specified_method_0 = {
	0,
	14,
	2,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0)),
	"transform_hlds.table_gen",
	"maybe_specified_method",
	{ (void *)mercury_data_transform_hlds__table_gen__du_name_ordered_maybe_specified_method_0 },
	{ (void *)mercury_data_transform_hlds__table_gen__du_ptag_ordered_maybe_specified_method_0 },
	2,
	4,
	mercury_data_transform_hlds__table_gen__functor_number_map_maybe_specified_method_0
};
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_module_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_proc_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_module_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_info_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_proc_info_0;

const MR_PseudoTypeInfo mercury_data_transform_hlds__table_gen__field_types_table_info_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_module__type_ctor_info_module_info_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_pred_info_0,
	(MR_PseudoTypeInfo) &mercury_data_hlds__hlds_pred__type_ctor_info_proc_info_0
};

const MR_ConstString mercury_data_transform_hlds__table_gen__field_names_table_info_0_0[] = {
	"table_module_info",
	"table_cur_pred_info",
	"table_cur_proc_info"
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__table_gen__du_functor_desc_table_info_0_0 = {
	"table_info",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__table_gen__field_types_table_info_0_0,
	mercury_data_transform_hlds__table_gen__field_names_table_info_0_0,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_stag_ordered_table_info_0_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_table_info_0_0

};

const MR_DuPtagLayout mercury_data_transform_hlds__table_gen__du_ptag_ordered_table_info_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__table_gen__du_stag_ordered_table_info_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_name_ordered_table_info_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_table_info_0_0
};

const MR_Integer mercury_data_transform_hlds__table_gen__functor_number_map_table_info_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_table_info_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__table_info_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__table_info_0_0)),
	"transform_hlds.table_gen",
	"table_info",
	{ (void *)mercury_data_transform_hlds__table_gen__du_name_ordered_table_info_0 },
	{ (void *)mercury_data_transform_hlds__table_gen__du_ptag_ordered_table_info_0 },
	1,
	4,
	mercury_data_transform_hlds__table_gen__functor_number_map_table_info_0
};

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

const MR_PseudoTypeInfo mercury_data_transform_hlds__table_gen__field_types_var_mode_method_0_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_arg_tabling_method_0
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__table_gen__du_functor_desc_var_mode_method_0_0 = {
	"var_mode_method",
	3,
	0,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__table_gen__field_types_var_mode_method_0_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_stag_ordered_var_mode_method_0_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_var_mode_method_0_0

};

const MR_DuPtagLayout mercury_data_transform_hlds__table_gen__du_ptag_ordered_var_mode_method_0[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__table_gen__du_stag_ordered_var_mode_method_0_0 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_name_ordered_var_mode_method_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_var_mode_method_0_0
};

const MR_Integer mercury_data_transform_hlds__table_gen__functor_number_map_var_mode_method_0[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_method_0 = {
	0,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__var_mode_method_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__var_mode_method_0_0)),
	"transform_hlds.table_gen",
	"var_mode_method",
	{ (void *)mercury_data_transform_hlds__table_gen__du_name_ordered_var_mode_method_0 },
	{ (void *)mercury_data_transform_hlds__table_gen__du_ptag_ordered_var_mode_method_0 },
	1,
	4,
	mercury_data_transform_hlds__table_gen__functor_number_map_var_mode_method_0
};

const MR_PseudoTypeInfo mercury_data_transform_hlds__table_gen__field_types_var_mode_pos_method_1_0[] = {
	(MR_PseudoTypeInfo) &mercury_data_term__ti_var_1parse_tree__prog_data__type_ctor_info_prog_var_type_0,
	(MR_PseudoTypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_mer_mode_0,
	(MR_PseudoTypeInfo) &mercury_data_builtin__type_ctor_info_int_0,
	(MR_PseudoTypeInfo) 1
};

static const MR_DuFunctorDesc mercury_data_transform_hlds__table_gen__du_functor_desc_var_mode_pos_method_1_0 = {
	"var_mode_pos_method",
	4,
	8,
	MR_SECTAG_NONE,
	0,
	-1,
	0,
	(MR_PseudoTypeInfo *) mercury_data_transform_hlds__table_gen__field_types_var_mode_pos_method_1_0,
	NULL,
	NULL
};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_stag_ordered_var_mode_pos_method_1_0[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_var_mode_pos_method_1_0

};

const MR_DuPtagLayout mercury_data_transform_hlds__table_gen__du_ptag_ordered_var_mode_pos_method_1[] = {
	{ 1, MR_SECTAG_NONE,
	mercury_data_transform_hlds__table_gen__du_stag_ordered_var_mode_pos_method_1_0 }

};

const MR_DuFunctorDescPtr mercury_data_transform_hlds__table_gen__du_name_ordered_var_mode_pos_method_1[] = {
	&mercury_data_transform_hlds__table_gen__du_functor_desc_var_mode_pos_method_1_0
};

const MR_Integer mercury_data_transform_hlds__table_gen__functor_number_map_var_mode_pos_method_1[] = {
	0 };
	
const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_1 = {
	1,
	14,
	1,
	MR_TYPECTOR_REP_DU,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0)),
	"transform_hlds.table_gen",
	"var_mode_pos_method",
	{ (void *)mercury_data_transform_hlds__table_gen__du_name_ordered_var_mode_pos_method_1 },
	{ (void *)mercury_data_transform_hlds__table_gen__du_ptag_ordered_var_mode_pos_method_1 },
	1,
	4,
	mercury_data_transform_hlds__table_gen__functor_number_map_var_mode_pos_method_1
};

static const MR_FA_TypeInfo_Struct1 mercury_data_transform_hlds__table_gen__ti_var_mode_pos_method_1parse_tree__prog_data__type_ctor_info_arg_tabling_method_0 = {
	&mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_1,
{	(MR_TypeInfo) &mercury_data_parse_tree__prog_data__type_ctor_info_arg_tabling_method_0
}};

const MR_TypeCtorInfo_Struct mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_0 = {
	0,
	14,
	-1,
	MR_TYPECTOR_REP_EQUIV_GROUND,
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Unify___transform_hlds__table_gen__var_mode_pos_method_0_0)),
	MR_MAYBE_STATIC_CODE(MR_ENTRY_AP(__Compare___transform_hlds__table_gen__var_mode_pos_method_0_0)),
	"transform_hlds.table_gen",
	"var_mode_pos_method",
	{ 0 },
	{ (void *)&mercury_data_transform_hlds__table_gen__ti_var_mode_pos_method_1parse_tree__prog_data__type_ctor_info_arg_tabling_method_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1109",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1109,
"132"
};

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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_947",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
947,
"53"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_4 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_397",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
397,
"36"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_3 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_493",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
493,
"126"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_2 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_430",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
430,
"75"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__table_gen_transform_proc_11_0_1 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_428",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
428,
"70"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__get_input_output_vars_7_0_1 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_3317",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
3317,
"90"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_transform_21_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1629",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1629,
"52"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__clone_pred_info_7_0_1 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"filter_marker",
1,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1876,
"32"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_5 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"project_out_pos",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1821,
"112"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_4 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"project_out_pos",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1820,
"110"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_3 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1770",
3,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1770,
"30"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_2 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1768",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1768,
"27"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__do_own_stack_create_generator_20_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1766",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1766,
"24"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_gen_proc_table_info_8_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_2007",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
2007,
"21"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_3039",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
3039,
"27"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_2179",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
2179,
"97"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_7 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"project_out_arg_method",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1297,
"130"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_6 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"project_out_arg_method",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1296,
"128"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_5 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1288",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1288,
"120"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_4 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1282",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1282,
"115"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_3 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_1281",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1281,
"114"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_2 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"var_mode_is_io_state",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1249,
"52"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_io_goal_17_0_1 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"var_mode_pos_is_io_state",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
1243,
"46"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_2966",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
2966,
"37"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_2122",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
2122,
"95"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__create_new_loop_goal_17_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_718",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
718,
"105"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_1 = {
{
MR_FUNCTION,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"lambda_table_gen_m_2064",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
2064,
"82"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_2 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"subgoal_may_call_mercury_attribute",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
279,
"4"
};

static const MR_UserClosureId
mercury_data__closure_layout__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_1 = {
{
MR_PREDICATE,
"transform_hlds.table_gen",
"transform_hlds.table_gen",
"subgoal_tabled_for_io_attribute",
2,
0
},
"transform_hlds.table_gen",
"table_gen.m",
296,
"4"
};


extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_proc_tabled_for_io_0;
MR_decl_entry(solutions__solutions_2_1);
MR_decl_entry(mdbcomp__prim_data__any_mercury_builtin_module_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_proc_may_call_mercury_0;
MR_decl_entry(require__unexpected_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module0)
	MR_init_entry1(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__should_io_procedure_be_transformed_6_0);
	MR_init_label10(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,3,5,15,11,18,20,9,28,43,29)
	MR_init_label1(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'should_io_procedure_be_transformed'/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__table_gen__should_io_procedure_be_transformed_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(0,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tempr2 = MR_r3;
	MR_tfield(0, MR_tempr1, 3) = MR_tempr2;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_tempr2;
	MR_sv(4) = MR_r4;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, proc_tabled_for_io);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(solutions__solutions_2_1,
		transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i3);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i5);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(1, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i7);
	}
	MR_r2 = MR_tfield(1, MR_r1, 0);
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i9);
	}
	if (MR_INT_NE(MR_sv(2),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i11);
	}
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(mdbcomp__prim_data__any_mercury_builtin_module_1_0,
		transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i15);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_r1) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i11);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i18);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(0,1);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_sv(3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, proc_may_call_mercury);
	MR_np_call_localret_ent(solutions__solutions_2_1,
		transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i20);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i43);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	if (MR_INT_NE(MR_tempr1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i43);
	}
	MR_tempr1 = MR_tfield(1, MR_r1, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i43);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
	}
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i28);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0_i29);
	}
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,1,0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,1,1);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.should_io_procedure_be_transformed\'/6", 73);
	MR_r3 = (MR_Word) MR_string_const("different tabled_for_io attributes in one procedure", 51);
	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_decl_entry(varset__new_named_var_4_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_mer_type_0;
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_115_101_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module1)
	MR_init_entry1(transform_hlds__table_gen__generate_new_table_var_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_new_table_var_7_0);
	MR_init_label2(transform_hlds__table_gen__generate_new_table_var_7_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_new_table_var'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_new_table_var_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r4;
	MR_sv(3) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(varset__new_named_var_4_0,
		transform_hlds__table_gen__generate_new_table_var_7_0_i2);
MR_def_label(transform_hlds__table_gen__generate_new_table_var_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_r1 = MR_sv(3);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_115_101_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		transform_hlds__table_gen__generate_new_table_var_7_0_i4);
MR_def_label(transform_hlds__table_gen__generate_new_table_var_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_decr_sp_and_return(4);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0);
MR_decl_entry(parse_tree__prog_type__construct_type_3_0);
MR_decl_entry(fn__parse_tree__prog_mode__in_mode_0_0);
MR_decl_entry(fn__hlds__hlds_pred__shroud_pred_proc_id_1_0);
MR_decl_entry(hlds__hlds_goal__make_const_construction_3_0);
MR_decl_entry(hlds__hlds_goal__goal_info_set_purity_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module2)
	MR_init_entry1(transform_hlds__table_gen__generate_get_table_info_goal_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_get_table_info_goal_9_0);
	MR_init_label10(transform_hlds__table_gen__generate_get_table_info_goal_9_0,2,5,6,8,9,12,15,18,20,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_get_table_info_goal'/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__table_gen__generate_get_table_info_goal_9_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_r5;
	MR_sv(4) = MR_r3;
	MR_sv(5) = MR_r4;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i2);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_proc_table_info", 18);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i5);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_string_const("ProcTableInfo", 13);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(varset__new_named_var_4_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i6);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_tempr2 = MR_sv(5);
	MR_sv(5) = MR_r2;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tempr2;
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_115_101_116_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_4_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i8);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i9);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(3), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(3), 0) = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i12);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_proc_table_info", 18);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i15);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(1);
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_sv(1) = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__shroud_pred_proc_id_1_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i18);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 9;
	MR_tfield(3, MR_r2, 1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i20);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_tfield(0, MR_r1, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 2;
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_purity_3_0,
		transform_hlds__table_gen__generate_get_table_info_goal_9_0_i21);
MR_def_label(transform_hlds__table_gen__generate_get_table_info_goal_9_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module3)
	MR_init_entry1(transform_hlds__table_gen__maybe_record_overall_stats_12_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__maybe_record_overall_stats_12_0);
	MR_init_label10(transform_hlds__table_gen__maybe_record_overall_stats_12_0,27,4,7,8,9,10,11,12,13,14)
	MR_init_label2(transform_hlds__table_gen__maybe_record_overall_stats_12_0,15,16)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_record_overall_stats'/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__table_gen__maybe_record_overall_stats_12_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__maybe_record_overall_stats_12_0_i27);
	}
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_r5 = (MR_Word) MR_string_const("", 0);
	MR_r1 = MR_r6;
	MR_r2 = MR_r7;
	MR_proceed();
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r4;
	MR_sv(4) = MR_tfield(1, MR_r5, 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_r3 = MR_r6;
	MR_r4 = MR_r7;
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_get_table_info_goal_9_0,
		transform_hlds__table_gen__maybe_record_overall_stats_12_0_i4);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r4;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(3) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_r3;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_r1 = MR_sv(4);
	MR_r2 = (MR_Word) MR_string_const(".MR_ts_num_lookups_is_dupl++;\n\t}\n", 33);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__maybe_record_overall_stats_12_0_i7);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\t", 2);
	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__table_gen__maybe_record_overall_stats_12_0_i8);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("{\n", 2);
	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__table_gen__maybe_record_overall_stats_12_0_i9);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(")) ", 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__table_gen__maybe_record_overall_stats_12_0_i10);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__maybe_record_overall_stats_12_0_i11);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("if (MR_trie_node_seen_before(", 29);
	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__table_gen__maybe_record_overall_stats_12_0_i12);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__maybe_record_overall_stats_12_0_i13);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(".MR_ts_num_lookups++;\n", 22);
	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__table_gen__maybe_record_overall_stats_12_0_i14);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__maybe_record_overall_stats_12_0_i15);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__maybe_record_overall_stats_12_0_i16);
MR_def_label(transform_hlds__table_gen__maybe_record_overall_stats_12_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(6);
	MR_decr_sp_and_return(7);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__string__int_to_string_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module4)
	MR_init_entry1(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__step_stats_arg_addr_2_0);
	MR_init_label4(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0,2,3,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'step_stats_arg_addr'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		fn__transform_hlds__table_gen__step_stats_arg_addr_2_0_i2);
MR_def_label(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("]", 1);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__step_stats_arg_addr_2_0_i3);
MR_def_label(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("[", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__step_stats_arg_addr_2_0_i4);
MR_def_label(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(".MR_ts_steps", 12);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__step_stats_arg_addr_2_0_i5);
MR_def_label(fn__transform_hlds__table_gen__step_stats_arg_addr_2_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_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module5)
	MR_init_entry1(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0);
	MR_init_label7(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,18,4,5,6,7,8,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'maybe_step_stats_arg_addr'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i18);
	}
	MR_r1 = (MR_Word) MR_string_const("NULL", 4);
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 0);
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i4);
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("]", 1);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i5);
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("[", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i6);
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(".MR_ts_steps", 12);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i7);
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_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(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i8);
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(")", 1);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0_i9);
MR_def_label(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("&(", 2);
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module6)
	MR_init_entry1(transform_hlds__table_gen__table_info_init_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_info_init_4_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(transform_hlds__table_gen_module7)
	MR_init_entry1(transform_hlds__table_gen__table_info_extract_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_info_extract_4_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_info_extract'/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__table_gen__table_info_extract_4_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	MR_r3 = MR_tfield(0, MR_tempr1, 2);
	MR_proceed();
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_pred__proc_info_set_vartypes_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_varset_3_0);
MR_decl_entry(check_hlds__polymorphism__create_poly_info_4_0);
MR_decl_entry(check_hlds__polymorphism__polymorphism_make_type_info_vars_6_0);
MR_decl_entry(check_hlds__polymorphism__poly_info_extract_6_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_vartypes_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_varset_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module8)
	MR_init_entry1(transform_hlds__table_gen__table_gen_make_type_info_var_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_make_type_info_var_10_0);
	MR_init_label8(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,3,4,5,6,7,8,9,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_make_type_info_var'/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__table_gen__table_gen_make_type_info_var_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(3) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_tempr2 = MR_r5;
	MR_sv(4) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = MR_r4;
	MR_r2 = MR_sv(6);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_vartypes_3_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i3);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_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(hlds__hlds_pred__proc_info_set_varset_3_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i4);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(check_hlds__polymorphism__create_poly_info_4_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i5);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(check_hlds__polymorphism__polymorphism_make_type_info_vars_6_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i6);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r3;
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(check_hlds__polymorphism__poly_info_extract_6_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i7);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_sv(6) = MR_r3;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_vartypes_2_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i8);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_varset_2_0,
		transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i9);
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(5);
	if (MR_LTAGS_TEST(MR_sv(2),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i11);
	}
	MR_tempr3 = MR_sv(2);
	MR_tempr2 = MR_tfield(1, MR_tempr3, 1);
	if (MR_LTAGS_TESTR(MR_tempr2,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_make_type_info_var_10_0_i11);
	}
	MR_r4 = MR_tfield(1, MR_tempr3, 0);
	MR_r5 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_make_type_info_var\'/10", 68);
	MR_tempr2 = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("list length != 1", 16);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	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__table_gen_module9)
	MR_init_entry1(fn__transform_hlds__table_gen__cur_table_node_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__cur_table_node_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'cur_table_node_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__cur_table_node_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("cur_node", 8);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module10)
	MR_init_entry1(fn__transform_hlds__table_gen__next_table_node_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__next_table_node_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'next_table_node_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__next_table_node_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("next_node", 9);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_type__type_vars_2_0);
MR_decl_entry(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module11)
	MR_init_entry1(transform_hlds__table_gen__gen_general_lookup_call_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__gen_general_lookup_call_20_0);
	MR_init_label10(transform_hlds__table_gen__gen_general_lookup_call_20_0,2,4,7,8,9,10,11,13,14,20)
	MR_init_label10(transform_hlds__table_gen__gen_general_lookup_call_20_0,21,22,23,24,25,26,27,28,29,30)
	MR_init_label4(transform_hlds__table_gen__gen_general_lookup_call_20_0,31,32,33,34)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_general_lookup_call'/20 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__gen_general_lookup_call_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(16);
	MR_sv(16) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(11) = MR_r11;
	MR_sv(12) = MR_r12;
	MR_sv(13) = MR_r13;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_type__type_vars_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i2);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_general_lookup_call_20_0_i4);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(2, MR_tempr1, 2) = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_string_const("", 0);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i7);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_tfield(2, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(2, MR_tempr1, 1) = (MR_Integer) 1;
	MR_tfield(2, MR_tempr1, 2) = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_sv(1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_string_const("_poly", 5);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i7);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_gen", 24);
	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__table_gen__gen_general_lookup_call_20_0_i8);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(10);
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(11);
	MR_r4 = MR_sv(12);
	MR_r5 = MR_sv(13);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i9);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r5;
	MR_sv(2) = MR_r4;
	MR_sv(13) = MR_r1;
	MR_sv(14) = MR_r2;
	MR_sv(15) = MR_r3;
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i10);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("input_typeinfo", 14);
	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__table_gen__gen_general_lookup_call_20_0_i11);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(14);
	MR_r5 = MR_sv(2);
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i13);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i14);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(11);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr3, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr3, 1) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 2) = MR_sv(12);
	MR_tfield(0, MR_tempr3, 3) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr4, 1) = MR_tempr2;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(6);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i20);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_string_const(", next_node);\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i21);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i22);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i23);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i24);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("cur_node", 8);
	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__table_gen__gen_general_lookup_call_20_0_i25);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i26);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__gen_general_lookup_call_20_0_i27);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i28);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i29);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i30);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i31);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i32);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i33);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_general_lookup_call_20_0_i34);
MR_def_label(transform_hlds__table_gen__gen_general_lookup_call_20_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(14);
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_tempr1;
	MR_decr_sp_and_return(16);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module12)
	MR_init_entry1(fn__transform_hlds__table_gen__arg_name_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__arg_name_1_0);
	MR_init_label1(fn__transform_hlds__table_gen__arg_name_1_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'arg_name'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__arg_name_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		fn__transform_hlds__table_gen__arg_name_1_0_i2);
MR_def_label(fn__transform_hlds__table_gen__arg_name_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("arg", 3);
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_type__type_to_ctor_det_2_0);
MR_decl_entry(hlds__hlds_module__module_info_get_type_table_2_0);
MR_decl_entry(hlds__hlds_data__lookup_type_ctor_defn_3_0);
MR_decl_entry(hlds__hlds_data__get_type_defn_body_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_constructor_0;
MR_decl_entry(list__length_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module13)
	MR_init_entry1(transform_hlds__table_gen__gen_lookup_call_for_type_19_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__gen_lookup_call_for_type_19_0);
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,2,3,7,12,14,18,19,20,21,22)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,23,24,25,26,27,28,29,30,31,32)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,33,16,11,39,43,44,45,46,47,48)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,49,50,51,52,53,54,55,56,57,58)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,37,61,63,67,68,69,70,71,72,73)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,74,75,76,77,78,79,80,81,82,65)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,60,87,91,92,93,94,95,96,97,98)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,99,100,101,102,103,104,105,106,9,111)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,112,113,114,115,116,110,108,121,123,129)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,130,131,132,133,134,135,136,137,138,139)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,140,141,142,143,144,127,145,146,147,148)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,153,149,157,158,159,160,161,162,163,164)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,165,166,167,168,169,170,171,172,173,174)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,175,176,125,120,182,180,189,195,196,197)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,198,199,200,201,202,203,204,205,193,213)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,214,215,216,217,218,219,220,221,222,223)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,224,225,226,227,228,211,229,187,235,233)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,242,240,249,252,247,330,254,258,332,8)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,264,265,266,267,268,269,272,271,273,274)
	MR_init_label10(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,275,276,277,278,279,280,281,282,283,284)
	MR_init_label2(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,285,286)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_lookup_call_for_type'/19 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__gen_lookup_call_for_type_19_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(15);
	MR_sv(15) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r5;
	MR_sv(5) = MR_tempr1;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_tempr2 = MR_r12;
	MR_sv(10) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(12) = MR_r10;
	MR_sv(13) = MR_r11;
	MR_sv(14) = MR_tempr2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__arg_name_1_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i2);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i3);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(11);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr3, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr3, 1) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 2) = MR_sv(3);
	MR_tfield(0, MR_tempr3, 3) = (MR_Integer) 0;
	MR_sv(4) = MR_tempr3;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__maybe_step_stats_arg_addr_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i7);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i9);
	}
	MR_r4 = MR_tfield(1, MR_sv(2), 0);
	if (MR_INT_NE(MR_r4,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i11);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i12);
	}
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i14);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i16);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i18);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i19);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i20);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i21);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i22);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i23);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_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_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i24);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i25);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i26);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i27);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,27)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i28);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i29);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i30);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i31);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_char", 25);
	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__table_gen__gen_lookup_call_for_type_19_0_i32);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i33);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 2);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("tabling chars by addr", 21);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r4,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i37);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i39);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i43);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i44);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i45);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i46);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i47);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i48);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i49);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i50);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i51);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i52);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,52)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i53);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i54);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,54)
	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__table_gen__gen_lookup_call_for_type_19_0_i55);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i56);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_float", 26);
	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__table_gen__gen_lookup_call_for_type_19_0_i57);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i58);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 4);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r4,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i60);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i61);
	}
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i63);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i65);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i67);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i68);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i69);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i70);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i71);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i72);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i73);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i74);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i75);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i76);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,76)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i77);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i78);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,78)
	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__table_gen__gen_lookup_call_for_type_19_0_i79);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i80);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_int", 24);
	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__table_gen__gen_lookup_call_for_type_19_0_i81);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i82);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 1);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("tabling ints by addr", 20);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i87);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i91);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i92);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,92)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i93);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i94);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i95);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i96);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i97);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i98);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i99);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i100);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,100)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i101);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i102);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,102)
	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__table_gen__gen_lookup_call_for_type_19_0_i103);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i104);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_string", 27);
	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__table_gen__gen_lookup_call_for_type_19_0_i105);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i106);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 3);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i108);
	}
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i110);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i111);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,111)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i112);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(";\n", 2);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i113);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,113)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = ", 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__table_gen__gen_lookup_call_for_type_19_0_i114);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,114)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i115);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,115)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i116);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(2) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("tabling dummies by addr", 23);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i120);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i121);
	}
	MR_r2 = (MR_Integer) 0;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i123);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,121)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,123)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i125);
	}
	MR_r2 = MR_tfield(2, MR_sv(2), 0);
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i127);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i129);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,129)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i130);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,130)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i131);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,131)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i132);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,132)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i133);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,133)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i134);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,134)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i135);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,135)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i136);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,136)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i137);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,137)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i138);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,138)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i139);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,139)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i140);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,140)
	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__table_gen__gen_lookup_call_for_type_19_0_i141);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,141)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i142);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,142)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_foreign_enum", 33);
	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__table_gen__gen_lookup_call_for_type_19_0_i143);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,143)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i144);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,144)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 5);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(parse_tree__prog_type__type_to_ctor_det_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i145);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,145)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_type_table_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i146);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,146)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_data__lookup_type_ctor_defn_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i147);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,147)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_data__get_type_defn_body_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i148);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,148)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i149);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(0, MR_r1, 3);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i149);
	}
	MR_tempr1 = MR_tfield(0, MR_r1, 4);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i149);
	}
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, constructor);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(list__length_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i153);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,153)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(1), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(1), 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i158);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,149)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("enum type is not du_type\?", 25);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i157);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,157)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i158);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,158)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i159);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,159)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i160);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,160)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i161);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,161)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i162);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,162)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i163);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,163)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i164);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,164)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__gen_lookup_call_for_type_19_0_i165);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,165)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i166);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,166)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i167);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,167)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i168);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,168)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i169);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,169)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i170);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,170)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i171);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,171)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i172);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,172)
	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__table_gen__gen_lookup_call_for_type_19_0_i173);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,173)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i174);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,174)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_enum", 25);
	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__table_gen__gen_lookup_call_for_type_19_0_i175);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,175)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i176);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,176)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,125)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("tabling enums by addr", 21);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i180);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i182);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,182)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_string_const("", 0);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,180)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i187);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i189);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,189)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r4 = MR_tfield(3, MR_sv(2), 1);
	if (MR_INT_NE(MR_r4,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i193);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i195);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,195)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i196);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,196)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i197);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,197)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i198);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,198)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i199);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,199)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i200);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,200)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i201);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,201)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i202);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,202)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i203);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,203)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i204);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,204)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i205);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,205)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i224);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,193)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r4,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i211);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(3) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i213);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,213)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i214);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,214)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i215);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,215)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i216);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,216)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i217);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,217)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i218);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,218)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i219);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,219)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i220);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,220)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i221);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,221)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i222);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,222)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i223);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,223)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i224);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,224)
	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__table_gen__gen_lookup_call_for_type_19_0_i225);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,225)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i226);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,226)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_lookup_insert_typeinfo", 29);
	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__table_gen__gen_lookup_call_for_type_19_0_i227);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,227)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i228);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,228)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 6);
	MR_sv(3) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(4) = MR_r1;
	MR_sv(8) = MR_sv(12);
	MR_sv(9) = MR_sv(13);
	MR_sv(10) = MR_sv(14);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,211)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r4,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i229);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("base_typeclass_info_type", 24);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,229)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("typeclass_info_type", 19);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,187)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i233);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i235);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,235)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_string_const("", 0);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,233)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(2),3,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i240);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i242);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,242)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_string_const("", 0);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,240)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(2),0,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i247);
	}
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i249);
	}
	MR_r1 = (MR_Integer) 1;
	MR_r2 = (MR_Word) MR_string_const("_addr", 5);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,249)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i332);
	}
	MR_r1 = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_string_const("", 0);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(6);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_general_lookup_call_20_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i252);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,252)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r4;
	MR_sv(2) = MR_r5;
	MR_sv(3) = MR_r6;
	MR_sv(4) = MR_r7;
	MR_sv(8) = MR_r1;
	MR_sv(9) = MR_r2;
	MR_sv(10) = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,247)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i254);
	}
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,330)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("void", 4);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,254)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i258);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("void", 4);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,258)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i330);
	}
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,332)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_lookup_call_for_type\'/19", 64);
	MR_r3 = (MR_Word) MR_string_const("arg_promise_implied", 19);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i8);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i264);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,264)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i265);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,265)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(";\n", 2);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i266);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,266)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = ", 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__table_gen__gen_lookup_call_for_type_19_0_i267);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,267)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i268);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,268)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i269);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,269)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(6),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i271);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	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__table_gen__gen_lookup_call_for_type_19_0_i272);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,272)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(10);
	MR_decr_sp_and_return(15);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,271)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_tfield(1, MR_sv(6), 0);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__step_stats_arg_addr_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i273);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,273)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i274);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,274)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_string_const(".MR_tss_num_lookups_is_dupl++;\n\t}\n", 34);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i275);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,275)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\t", 2);
	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__table_gen__gen_lookup_call_for_type_19_0_i276);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,276)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("{\n", 2);
	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__table_gen__gen_lookup_call_for_type_19_0_i277);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,277)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("))", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i278);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,278)
	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_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i279);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,279)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("if (MR_trie_node_seen_before(", 29);
	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__table_gen__gen_lookup_call_for_type_19_0_i280);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,280)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i281);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,281)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(".MR_tss_num_lookups++;\n", 23);
	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__table_gen__gen_lookup_call_for_type_19_0_i282);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,282)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i283);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,283)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i284);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,284)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i285);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,285)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_lookup_call_for_type_19_0_i286);
MR_def_label(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,286)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(10);
	MR_decr_sp_and_return(15);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(varset__lookup_name_3_0);
MR_decl_entry(fn__check_hlds__type_util__classify_type_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_foreign_arg_0;
MR_decl_entry(fn__f_108_105_115_116_95_95_43_43_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_hlds_goal_0;

MR_BEGIN_MODULE(transform_hlds__table_gen_module14)
	MR_init_entry1(transform_hlds__table_gen__generate_table_lookup_goals_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_table_lookup_goals_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_table_lookup_goals_15_0,38,4,6,7,10,11,12,13,9,15)
	MR_init_label4(transform_hlds__table_gen__generate_table_lookup_goals_15_0,17,19,20,21)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_table_lookup_goals'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_table_lookup_goals_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_table_lookup_goals_15_0_i38);
	}
	MR_r1 = MR_r6;
	MR_r2 = MR_r7;
	MR_r3 = MR_r8;
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = (MR_Word) MR_tbmkword(0, 0);
	MR_r7 = (MR_Word) MR_string_const("", 0);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r6;
	MR_sv(5) = MR_tempr2;
	MR_sv(6) = MR_r7;
	MR_sv(7) = MR_r8;
	MR_sv(8) = MR_tfield(1, MR_r1, 1);
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(9) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(11) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(12) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r1 = MR_sv(12);
	MR_r2 = MR_tempr2;
	MR_r3 = MR_sv(9);
	}
	MR_np_call_localret_ent(varset__lookup_name_3_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i4);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_sv(13) = MR_tfield(0, MR_sv(7), 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(9);
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(13);
	MR_sv(13) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(13);
	}
	MR_np_call_localret_ent(fn__check_hlds__type_util__classify_type_2_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i7);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(11),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_table_lookup_goals_15_0_i9);
	}
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("arg", 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__table_gen__generate_table_lookup_goals_15_0_i11);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(" */\n", 4);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i12);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t/* promise_implied for ", 24);
	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__table_gen__generate_table_lookup_goals_15_0_i13);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 8);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr3 = MR_sv(5);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr4 = MR_sv(7);
	MR_sv(7) = MR_tempr2;
	MR_r6 = MR_tempr3;
	MR_r7 = MR_sv(6);
	MR_r8 = MR_tempr4;
	}
	MR_np_localcall_lab(transform_hlds__table_gen__generate_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i17);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(9);
	MR_r5 = MR_sv(10);
	MR_r6 = MR_sv(1);
	MR_r7 = MR_sv(2);
	MR_r8 = MR_sv(3);
	MR_r9 = MR_sv(4);
	MR_r10 = MR_sv(5);
	MR_r11 = MR_sv(6);
	MR_r12 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_lookup_call_for_type_19_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i15);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 1) = MR_r4;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_tempr4 = MR_r5;
	MR_r5 = MR_sv(4);
	MR_tempr5 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_sv(1) = MR_tempr1;
	MR_sv(2) = MR_tempr4;
	MR_sv(5) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_r6 = MR_tempr5;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_tempr3;
	}
	MR_np_localcall_lab(transform_hlds__table_gen__generate_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i17);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(4) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r4;
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(6) = MR_r6;
	MR_sv(8) = MR_r7;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r2 = MR_tempr2;
	MR_r3 = MR_r5;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i19);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(6);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i20);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_table_lookup_goals_15_0_i21);
MR_def_label(transform_hlds__table_gen__generate_table_lookup_goals_15_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(6);
	MR_r7 = MR_tempr1;
	MR_decr_sp_and_return(14);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_get_globals_2_0);
MR_decl_entry(libs__globals__lookup_bool_option_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module15)
	MR_init_entry1(fn__transform_hlds__table_gen__get_debug_arg_string_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__get_debug_arg_string_1_0);
	MR_init_label3(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,2,3,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_debug_arg_string'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__get_debug_arg_string_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		fn__transform_hlds__table_gen__get_debug_arg_string_1_0_i2);
MR_def_label(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		fn__transform_hlds__table_gen__get_debug_arg_string_1_0_i3);
MR_def_label(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__get_debug_arg_string_1_0_i5);
	}
	MR_r1 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_decr_sp_and_return(1);
MR_def_label(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_decr_sp_and_return(1);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_pred__proc_info_get_table_attributes_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module16)
	MR_init_entry1(fn__transform_hlds__table_gen__get_back_arg_string_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__get_back_arg_string_1_0);
	MR_init_label3(fn__transform_hlds__table_gen__get_back_arg_string_1_0,2,4,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_back_arg_string'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__get_back_arg_string_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = MR_tfield(0, MR_r1, 2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_table_attributes_2_0,
		fn__transform_hlds__table_gen__get_back_arg_string_1_0_i2);
MR_def_label(fn__transform_hlds__table_gen__get_back_arg_string_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__get_back_arg_string_1_0_i4);
	}
	MR_r1 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_decr_sp_and_return(1);
MR_def_label(fn__transform_hlds__table_gen__get_back_arg_string_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_tfield(1, MR_r1, 0), 1);
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__get_back_arg_string_1_0_i6);
	}
	MR_r1 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_decr_sp_and_return(1);
MR_def_label(fn__transform_hlds__table_gen__get_back_arg_string_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_decr_sp_and_return(1);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module17)
	MR_init_entry1(fn__transform_hlds__table_gen__stats_ref_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__stats_ref_2_0);
	MR_init_label6(fn__transform_hlds__table_gen__stats_ref_2_0,27,5,6,7,8,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'stats_ref'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__stats_ref_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__stats_ref_2_0_i27);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__stats_ref_2_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__stats_ref_2_0_i5);
	}
	MR_r1 = (MR_Word) MR_string_const("MR_TABLE_ANSWER_TABLE", 21);
	MR_r2 = (MR_Word) MR_string_const("][MR_TABLE_STATS_CURR]", 22);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__stats_ref_2_0_i6);
MR_def_label(fn__transform_hlds__table_gen__stats_ref_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("MR_TABLE_CALL_TABLE", 19);
	MR_r2 = (MR_Word) MR_string_const("][MR_TABLE_STATS_CURR]", 22);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__stats_ref_2_0_i6);
MR_def_label(fn__transform_hlds__table_gen__stats_ref_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("[", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__stats_ref_2_0_i7);
MR_def_label(fn__transform_hlds__table_gen__stats_ref_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("->MR_pt_stats", 13);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__stats_ref_2_0_i8);
MR_def_label(fn__transform_hlds__table_gen__stats_ref_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("proc_table_info", 15);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		fn__transform_hlds__table_gen__stats_ref_2_0_i9);
MR_def_label(fn__transform_hlds__table_gen__stats_ref_2_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(1);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module18)
	MR_init_entry1(fn__transform_hlds__table_gen__trie_node_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__trie_node_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__trie_node_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'trie_node_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__trie_node_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__trie_node_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__trie_node_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_trie_node", 12);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__parse_tree__prog_mode__out_mode_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module19)
	MR_init_entry1(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_call_table_lookup_goals_19_0);
	MR_init_label10(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,2,3,4,5,6,8,9,10,11,12)
	MR_init_label4(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,15,16,17,20)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_call_table_lookup_goals'/19 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(13);
	MR_sv(13) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = (MR_Word) MR_string_const("\tcur_node = &proc_table_info->MR_pt_tablenode;\n", 47);
	MR_sv(10) = MR_r8;
	MR_r1 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_r6;
	MR_r4 = MR_r7;
	MR_r5 = (MR_Word) MR_string_const("proc_table_info", 15);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_get_table_info_goal_9_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i2);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r3;
	MR_sv(7) = MR_r4;
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__stats_ref_2_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i3);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i4);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_back_arg_string_1_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i5);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(5);
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(12);
	MR_r8 = MR_sv(10);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i6);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,6)
	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(7);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(7) = MR_r7;
	MR_sv(9) = MR_r3;
	MR_sv(10) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_r6;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i8);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,8)
	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(2);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_string_const("proc_table_info", 15);
	MR_r4 = (MR_Word) MR_string_const("cur_node", 8);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(10);
	MR_r7 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__maybe_record_overall_stats_12_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i9);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r5;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i10);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i11);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i12);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_trie_node", 12);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i15);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("CallTableTipVar", 15);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i16);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r3;
	MR_sv(7) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i17);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_string_const("CallTableTipVar", 15);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(10), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(10), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__trie_node_type_0_0,
		transform_hlds__table_gen__generate_call_table_lookup_goals_19_0_i20);
MR_def_label(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r6 = MR_tempr1;
	MR_tempr2 = MR_sv(2);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(10);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 0;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr2;
	MR_r7 = MR_sv(4);
	MR_r8 = MR_sv(5);
	MR_r9 = MR_sv(3);
	MR_r10 = MR_sv(6);
	MR_r11 = (MR_Word) MR_string_const("\tCallTableTipVar = cur_node;\n", 29);
	MR_decr_sp_and_return(13);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_goal__goal_info_get_features_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_goal__type_ctor_info_goal_feature_0;
MR_decl_entry(set__insert_3_0);
MR_decl_entry(hlds__hlds_goal__goal_info_set_features_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module20)
	MR_init_entry1(transform_hlds__table_gen__attach_call_table_tip_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__attach_call_table_tip_2_0);
	MR_init_label3(transform_hlds__table_gen__attach_call_table_tip_2_0,2,3,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'attach_call_table_tip'/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__table_gen__attach_call_table_tip_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_features_1_0,
		transform_hlds__table_gen__attach_call_table_tip_2_0_i2);
MR_def_label(transform_hlds__table_gen__attach_call_table_tip_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, goal_feature);
	MR_r2 = (MR_Integer) 5;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(set__insert_3_0,
		transform_hlds__table_gen__attach_call_table_tip_2_0_i3);
MR_def_label(transform_hlds__table_gen__attach_call_table_tip_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_features_3_0,
		transform_hlds__table_gen__attach_call_table_tip_2_0_i4);
MR_def_label(transform_hlds__table_gen__attach_call_table_tip_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__goal_util__generate_foreign_proc_16_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module21)
	MR_init_entry1(transform_hlds__table_gen__table_generate_foreign_proc_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_generate_foreign_proc_11_0);
	MR_init_label4(transform_hlds__table_gen__table_generate_foreign_proc_11_0,3,2,5,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_generate_foreign_proc'/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__table_gen__table_generate_foreign_proc_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(12);
	MR_sv(12) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r7,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_generate_foreign_proc_11_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(transform_hlds__table_gen__table_generate_foreign_proc_11_0_i2);
MR_def_label(transform_hlds__table_gen__table_generate_foreign_proc_11_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_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,3,0);
MR_def_label(transform_hlds__table_gen__table_generate_foreign_proc_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(2),7)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_generate_foreign_proc_11_0_i5);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(11) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__table_generate_foreign_proc_11_0_i9);
MR_def_label(transform_hlds__table_gen__table_generate_foreign_proc_11_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__table_generate_foreign_proc_11_0_i9);
MR_def_label(transform_hlds__table_gen__table_generate_foreign_proc_11_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(3);
	MR_r8 = MR_sv(4);
	MR_r9 = MR_sv(5);
	MR_r10 = (MR_Word) MR_tbmkword(0, 0);
	MR_r11 = MR_sv(6);
	MR_r12 = MR_sv(11);
	MR_r13 = MR_sv(8);
	MR_r14 = MR_sv(9);
	MR_r15 = MR_sv(10);
	MR_succip_word = MR_sv(12);
	MR_decr_sp(12);
	MR_np_tailcall_ent(hlds__goal_util__generate_foreign_proc_16_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_goal__goal_info_init_6_0);
MR_decl_entry(hlds__hlds_goal__goal_info_add_feature_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module22)
	MR_init_entry1(transform_hlds__table_gen__goal_info_init_hide_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__goal_info_init_hide_6_0);
	MR_init_label1(transform_hlds__table_gen__goal_info_init_hide_6_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'goal_info_init_hide'/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__table_gen__goal_info_init_hide_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_6_0,
		transform_hlds__table_gen__goal_info_init_hide_6_0_i2);
MR_def_label(transform_hlds__table_gen__goal_info_init_hide_6_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 8;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(hlds__hlds_goal__goal_info_add_feature_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__parse_tree__prog_data__default_attributes_1_0);
MR_decl_entry(parse_tree__prog_data__set_may_call_mercury_3_0);
MR_decl_entry(parse_tree__prog_data__set_affects_liveness_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module23)
	MR_init_entry1(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'tabling_c_attributes_no_dupl'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__parse_tree__prog_data__default_attributes_1_0,
		fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__set_may_call_mercury_3_0,
		fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0_i3);
MR_def_label(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_data__set_affects_liveness_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__table_gen_module24)
	MR_init_entry1(fn__transform_hlds__table_gen__status_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__status_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'status_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__status_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("status", 6);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__instmap__instmap_delta_bind_vars_1_0);
MR_decl_entry(fn__list__map_2_0);
MR_decl_entry(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module25)
	MR_init_entry1(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0);
	MR_init_label10(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,2,3,4,5,9,10,11,12,13,14)
	MR_init_label10(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,15,16,17,18,19,20,21,27,28,29)
	MR_init_label10(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,30,31,32,33,34,35,36,37,38,39)
	MR_init_label6(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,40,42,47,50,51,52)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_simple_call_table_lookup_goal'/18 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(22);
	MR_sv(22) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_tempr2 = MR_r8;
	MR_sv(5) = MR_tempr2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r5;
	MR_r3 = MR_r6;
	MR_r4 = MR_r7;
	MR_r5 = MR_tempr2;
	MR_r6 = MR_r9;
	MR_r7 = MR_r10;
	MR_r8 = MR_r11;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i2);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r5;
	MR_sv(8) = MR_r4;
	MR_sv(9) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_sv(11) = MR_r8;
	MR_sv(12) = MR_r9;
	MR_sv(13) = MR_r10;
	MR_sv(14) = MR_r11;
	MR_sv(21) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Status", 6);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i3);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r3;
	MR_sv(15) = MR_tfield(0, MR_sv(21), 0);
	MR_sv(19) = MR_r1;
	MR_sv(20) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__status_name_0_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i4);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i5);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,5)
	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(16);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(7);
	MR_tfield(0, MR_tempr2, 1) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 2) = MR_sv(1);
	MR_tfield(0, MR_tempr2, 3) = (MR_Integer) 0;
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_sv(21);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i9);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_r1 = MR_sv(21);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_back_arg_string_1_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i10);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i11);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(16);
	MR_sv(16) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i12);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i13);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i14);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i15);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(18);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i16);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i17);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(17);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i18);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i19);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,19)
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i20);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i21);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(9);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(3) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(10);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(7);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_sv(9) = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr3, 1) = MR_r2;
	MR_sv(1) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i27);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i28);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(14);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i29);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i30);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n\n", 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__table_gen__generate_simple_call_table_lookup_goal_18_0_i31);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i32);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i33);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i34);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i35);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_simple_call_table_lookup_goal_18_0_i36);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i37);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i38);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(1);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(15);
	MR_r10 = MR_sv(5);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i39);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(transform_hlds__table_gen__attach_call_table_tip_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i40);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(12);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i42);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_sv(1) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_sv(2) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(3) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(3);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,0);
	MR_r4 = MR_sv(4);
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i47);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i50);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i51);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(5);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0_i52);
MR_def_label(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_sv(20);
	MR_r3 = MR_sv(21);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_decr_sp_and_return(22);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module26)
	MR_init_entry1(fn__transform_hlds__table_gen__infinite_recursion_msg_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__infinite_recursion_msg_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'infinite_recursion_msg'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__infinite_recursion_msg_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("detected infinite recursion", 27);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__goal_util__generate_simple_call_12_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module27)
	MR_init_entry1(transform_hlds__table_gen__table_generate_call_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_generate_call_8_0);
	MR_init_label4(transform_hlds__table_gen__table_generate_call_8_0,2,4,3,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_generate_call'/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__table_gen__table_generate_call_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__table_generate_call_8_0_i2);
MR_def_label(transform_hlds__table_gen__table_generate_call_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_generate_call_8_0_i4);
	}
	MR_r2 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r7 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r9 = MR_sv(5);
	MR_r10 = MR_sv(6);
	MR_r11 = MR_sv(7);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_GOTO_LAB(transform_hlds__table_gen__table_generate_call_8_0_i3);
MR_def_label(transform_hlds__table_gen__table_generate_call_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r7 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r9 = MR_sv(5);
	MR_r10 = MR_sv(6);
	MR_r11 = MR_sv(7);
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,3,0);
MR_def_label(transform_hlds__table_gen__table_generate_call_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r5,7)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_generate_call_8_0_i6);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r8 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(1, MR_tempr1, 1) = MR_r3;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(hlds__goal_util__generate_simple_call_12_0);
	}
MR_def_label(transform_hlds__table_gen__table_generate_call_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r8 = MR_r3;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(hlds__goal_util__generate_simple_call_12_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__hlds__hlds_pred__pred_info_module_1_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_name_1_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_orig_arity_1_0);
MR_decl_entry(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0);
MR_decl_entry(fn__parse_tree__prog_out__pred_or_func_to_str_1_0);
MR_decl_entry(fn__mdbcomp__prim_data__sym_name_to_string_1_0);
MR_decl_entry(string__int_to_string_2_0);
MR_decl_entry(hlds__hlds_goal__make_string_const_construction_alloc_8_0);
MR_decl_entry(fn__hlds__instmap__instmap_delta_bind_no_var_0_0);
MR_decl_entry(fn__set__init_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module28)
	MR_init_entry1(transform_hlds__table_gen__generate_error_goal_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_error_goal_8_0);
	MR_init_label10(transform_hlds__table_gen__generate_error_goal_8_0,2,3,4,5,6,8,9,10,11,12)
	MR_init_label10(transform_hlds__table_gen__generate_error_goal_8_0,13,14,15,17,19,20,25,26,27,28)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_error_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__table_gen__generate_error_goal_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_tfield(0, MR_r1, 0);
	MR_sv(4) = MR_tfield(0, MR_r1, 1);
	MR_sv(7) = MR_r4;
	MR_sv(8) = MR_r5;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_module_1_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i2);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i3);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_orig_arity_1_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i4);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i5);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__parse_tree__prog_out__pred_or_func_to_str_1_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i6);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(5);
	MR_tfield(1, MR_r2, 1) = MR_sv(6);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__sym_name_to_string_1_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i8);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(string__int_to_string_2_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i9);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("/", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i10);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i11);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" ", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i12);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i13);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" in ", 4);
	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__table_gen__generate_error_goal_8_0_i14);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,14)
	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,
		transform_hlds__table_gen__generate_error_goal_8_0_i15);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_TAG_COMMON(1,5,0);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(8);
	MR_np_call_localret_ent(hlds__hlds_goal__make_string_const_construction_alloc_8_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i17);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(6) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(2) = MR_r1;
	MR_sv(4) = MR_r3;
	MR_sv(5) = MR_r4;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i19);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_error", 11);
	MR_r2 = (MR_Integer) 6;
	MR_r3 = MR_sv(6);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(3);
	MR_r7 = MR_sv(1);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i20);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,0);
	}
	MR_np_call_localret_ent(fn__set__init_0_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i25);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i26);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 6;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(1);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_6_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i27);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 8;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_add_feature_3_0,
		transform_hlds__table_gen__generate_error_goal_8_0_i28);
MR_def_label(transform_hlds__table_gen__generate_error_goal_8_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	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(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_decr_sp_and_return(9);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_data__set_may_duplicate_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module29)
	MR_init_entry1(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0);
	MR_init_label3(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,2,3,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'tabling_c_attributes_dupl'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__parse_tree__prog_data__default_attributes_1_0,
		fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__set_may_call_mercury_3_0,
		fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0_i3);
MR_def_label(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(parse_tree__prog_data__set_affects_liveness_3_0,
		fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(1,1,1);
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_data__set_may_duplicate_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__table_gen_module30)
	MR_init_entry1(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'loop_inactive_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("loop_inactive", 13);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("loop_status", 11);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module31)
	MR_init_entry1(fn__transform_hlds__table_gen__loop_active_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__loop_active_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__loop_active_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'loop_active_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__loop_active_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__loop_active_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__loop_active_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("loop_active", 11);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__loop_active_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__loop_active_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("loop_status", 11);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module32)
	MR_init_entry1(fn__transform_hlds__table_gen__loop_status_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__loop_status_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__loop_status_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'loop_status_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__loop_status_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__loop_status_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__loop_status_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("loop_status", 11);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0);
MR_decl_entry(fn__hlds__hlds_goal__goal_info_get_context_1_0);
MR_decl_entry(hlds__code_model__determinism_to_code_model_2_0);
MR_decl_entry(hlds__instmap__instmap_delta_init_reachable_1_0);
MR_decl_entry(fn__set__make_singleton_set_1_0);
MR_decl_entry(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0);
MR_decl_entry(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);
MR_decl_entry(hlds__hlds_goal__goal_info_set_nonlocals_3_0);
MR_decl_entry(hlds__goal_util__create_renaming_9_0);
MR_decl_entry(hlds__hlds_goal__rename_some_vars_in_goal_3_0);
MR_decl_entry(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_108_105_115_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module33)
	MR_init_entry1(transform_hlds__table_gen__create_new_loop_goal_17_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__create_new_loop_goal_17_0);
	MR_init_label10(transform_hlds__table_gen__create_new_loop_goal_17_0,3,4,5,6,7,8,9,10,11,14)
	MR_init_label10(transform_hlds__table_gen__create_new_loop_goal_17_0,16,17,18,19,20,21,22,23,24,25)
	MR_init_label10(transform_hlds__table_gen__create_new_loop_goal_17_0,26,27,28,29,30,31,32,33,34,35)
	MR_init_label10(transform_hlds__table_gen__create_new_loop_goal_17_0,36,37,38,40,41,42,43,44,45,46)
	MR_init_label10(transform_hlds__table_gen__create_new_loop_goal_17_0,47,48,50,53,54,56,64,65,66,71)
	MR_init_label10(transform_hlds__table_gen__create_new_loop_goal_17_0,72,73,60,78,79,80,82,85,86,87)
	MR_init_label7(transform_hlds__table_gen__create_new_loop_goal_17_0,55,90,92,94,101,102,107)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'create_new_loop_goal'/17 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__create_new_loop_goal_17_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(25);
	MR_sv(25) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(14) = MR_r9;
	MR_sv(15) = MR_r10;
	MR_sv(16) = MR_r11;
	MR_sv(23) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(24) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(24);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i3);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_tfield(0, MR_sv(2), 1);
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i4);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i5);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_sv(13) = MR_tfield(0, MR_sv(16), 0);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__loop_status_type_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i6);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("table_loop_setup_shortcut", 25);
	MR_r3 = (MR_Word) MR_string_const("MR_tbl_loop_setup", 17);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(3);
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(15);
	MR_r11 = MR_sv(16);
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i7);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r7;
	MR_sv(5) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_sv(19) = MR_r3;
	MR_sv(14) = MR_r1;
	MR_sv(15) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__infinite_recursion_msg_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i8);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_sv(12);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(14);
	MR_r5 = MR_sv(15);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_error_goal_8_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i9);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r3;
	MR_sv(20) = MR_r1;
	MR_sv(21) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i10);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i11);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,11)
	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(15);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(15), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(15), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__trie_node_type_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i14);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(15);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(15) = MR_r2;
	MR_r1 = MR_sv(19);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i16);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i17);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i18);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i19);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	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__table_gen__create_new_loop_goal_17_0_i20);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i21);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_loop_mark_as_inactive", 28);
	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__table_gen__create_new_loop_goal_17_0_i22);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i23);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i24);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i25);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i26);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	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__table_gen__create_new_loop_goal_17_0_i27);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i28);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_loop_mark_as_inactive_and_fail", 37);
	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__table_gen__create_new_loop_goal_17_0_i29);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i30);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i31);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i32);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i33);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	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__table_gen__create_new_loop_goal_17_0_i34);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i35);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_loop_mark_as_active_and_fail", 35);
	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__table_gen__create_new_loop_goal_17_0_i36);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i37);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i38);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(22) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(15) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i40);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_loop_mark_as_inactive", 27);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(22);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(17);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(13);
	MR_r10 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i41);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i42);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i43);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_loop_mark_as_inactive_and_fail", 36);
	MR_r2 = (MR_Integer) 7;
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(22);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(18);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(13);
	MR_r10 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i44);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i45);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i46);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_loop_mark_as_active_and_fail", 34);
	MR_r2 = (MR_Integer) 7;
	MR_r3 = MR_sv(18);
	MR_r4 = MR_sv(22);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(16);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(13);
	MR_r10 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i47);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__code_model__determinism_to_code_model_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i48);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(24);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i50);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(24);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i53);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i54);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_loop_goal_17_0_i56);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r7 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr2;
	MR_r3 = MR_sv(1);
	MR_r5 = MR_sv(12);
	MR_r6 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_r6;
	MR_sv(13) = MR_sv(20);
	MR_sv(18) = MR_sv(21);
	MR_r4 = (MR_Integer) 2;
	MR_GOTO_LAB(transform_hlds__table_gen__create_new_loop_goal_17_0_i55);
	}
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_loop_goal_17_0_i60);
	}
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(13);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_sv(13) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr1;
	MR_sv(6) = MR_r1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_reachable_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i64);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(24);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(fn__set__make_singleton_set_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i65);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(15);
	MR_r3 = (MR_Integer) 2;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(12);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i66);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,66)
	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(13);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(2);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_r2;
	MR_r1 = MR_sv(10);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i71);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(24);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i72);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_set_nonlocals_3_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i73);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r7 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(17);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r8 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 3, (MR_Integer) 2);
	MR_sv(2) = MR_tempr4;
	MR_tfield(3, MR_tempr4, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr4, 1) = MR_tempr3;
	MR_r3 = MR_sv(1);
	MR_r5 = MR_sv(12);
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(6);
	MR_sv(13) = MR_sv(20);
	MR_sv(18) = MR_sv(21);
	MR_r4 = (MR_Integer) 2;
	MR_GOTO_LAB(transform_hlds__table_gen__create_new_loop_goal_17_0_i55);
	}
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i78);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(20);
	MR_r4 = MR_sv(21);
	}
	MR_np_call_localret_ent(hlds__goal_util__create_renaming_9_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i79);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r3;
	MR_sv(10) = MR_r4;
	MR_sv(13) = MR_r1;
	MR_sv(18) = MR_r2;
	MR_r1 = MR_r5;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_some_vars_in_goal_3_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i80);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i82);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(3);
	MR_tfield(1, MR_r2, 1) = MR_sv(16);
	MR_tempr2 = MR_sv(10);
	MR_sv(10) = MR_tempr1;
	MR_r1 = MR_sv(24);
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i85);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(24);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i86);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(12);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i87);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,87)
	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_r1;
	MR_tag_alloc_heap(MR_r1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_r1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_r1, 2) = MR_sv(2);
	MR_tfield(3, MR_r1, 3) = MR_r2;
	MR_tfield(3, MR_r1, 4) = MR_sv(17);
	MR_r3 = MR_sv(1);
	MR_r5 = MR_sv(12);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(6);
	MR_r4 = (MR_Integer) 2;
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r3;
	MR_sv(12) = MR_r5;
	MR_sv(8) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i90);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__loop_active_cons_id_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i92);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,92)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_sv(10) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(14);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__loop_inactive_cons_id_0_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i94);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(10);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 4);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 3;
	MR_tempr5 = MR_sv(5);
	MR_tfield(3, MR_tempr3, 1) = MR_tempr5;
	MR_tfield(3, MR_tempr3, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 3) = 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_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_tempr5;
	MR_tfield(1, MR_tempr4, 1) = MR_tempr1;
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(24);
	MR_r4 = MR_sv(8);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_108_105_115_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i101);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,101)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(12);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i102);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,102)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_tempr1;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_loop_goal_17_0_i107);
MR_def_label(transform_hlds__table_gen__create_new_loop_goal_17_0,107)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(18);
	MR_r3 = MR_sv(19);
	MR_r4 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_decr_sp_and_return(25);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module34)
	MR_init_entry1(fn__transform_hlds__table_gen__builtin_type_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__builtin_type_1_0);
	MR_init_label10(fn__transform_hlds__table_gen__builtin_type_1_0,3,4,5,6,7,8,9,12,24,13)
	MR_init_label1(fn__transform_hlds__table_gen__builtin_type_1_0,25)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'builtin_type'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__builtin_type_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,2)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i3);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i4);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i5);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i6);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,4)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i7);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i8);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i9);
	}
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i25);
	}
	MR_r2 = MR_tfield(3, MR_r1, 1);
	if (MR_INT_NE(MR_r2,3)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i12);
	}
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i13);
	}
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_proceed();
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(fn__transform_hlds__table_gen__builtin_type_1_0_i24);
	}
MR_def_label(fn__transform_hlds__table_gen__builtin_type_1_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(require__sorry_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module35)
	MR_init_entry1(transform_hlds__table_gen__type_save_category_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__type_save_category_2_0);
	MR_init_label10(transform_hlds__table_gen__type_save_category_2_0,5,6,7,3,10,8,12,15,80,13)
	MR_init_label2(transform_hlds__table_gen__type_save_category_2_0,21,22)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'type_save_category'/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__table_gen__type_save_category_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i3);
	}
	MR_r2 = MR_tfield(1, MR_r1, 0);
	if (MR_INT_NE(MR_r2,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i5);
	}
	MR_r1 = (MR_Word) MR_string_const("char", 4);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i6);
	}
	MR_r1 = (MR_Word) MR_string_const("float", 5);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i7);
	}
	MR_r1 = (MR_Word) MR_string_const("int", 3);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("string", 6);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i8);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(2, MR_r1, 0);
	if (MR_INT_NE(MR_tempr1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i10);
	}
	MR_r1 = (MR_Word) MR_string_const("enum", 4);
	MR_proceed();
	}
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.type_save_category\'/2", 57);
	MR_r3 = (MR_Word) MR_string_const("tabling and foreign enumerations NYI.", 37);
	MR_np_tailcall_ent(require__sorry_3_0);
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i12);
	}
	MR_r1 = (MR_Word) MR_string_const("pred", 4);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i13);
	}
	MR_r4 = MR_tfield(3, MR_r1, 1);
	if (MR_INT_NE(MR_r4,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i15);
	}
	MR_r1 = (MR_Word) MR_string_const("any", 3);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r4,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i80);
	}
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.type_save_category\'/2", 57);
	MR_r3 = (MR_Word) MR_string_const("unexpected category", 19);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.type_save_category\'/2", 57);
	MR_r3 = (MR_Word) MR_string_const("unexpected category", 19);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i21);
	}
	MR_r1 = (MR_Word) MR_string_const("any", 3);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_r1,3,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i22);
	}
	MR_r1 = (MR_Word) MR_string_const("any", 3);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__type_save_category_2_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__type_save_category_2_0_i80);
	}
	MR_r1 = (MR_Word) MR_string_const("any", 3);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_tvar_type_0;
MR_decl_entry(varset__init_1_0);
MR_decl_entry(varset__new_var_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module36)
	MR_init_entry1(fn__transform_hlds__table_gen__dummy_type_var_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__dummy_type_var_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__dummy_type_var_0_0,2,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'dummy_type_var'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__dummy_type_var_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(varset__init_1_0,
		fn__transform_hlds__table_gen__dummy_type_var_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__dummy_type_var_0_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(varset__new_var_3_0,
		fn__transform_hlds__table_gen__dummy_type_var_0_0_i3);
MR_def_label(fn__transform_hlds__table_gen__dummy_type_var_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module37)
	MR_init_entry1(fn__transform_hlds__table_gen__answer_block_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__answer_block_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'answer_block_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__answer_block_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("answerblock", 11);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(parse_tree__prog_type__type_is_io_state_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module38)
	MR_init_entry1(transform_hlds__table_gen__gen_save_call_for_type_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__gen_save_call_for_type_15_0);
	MR_init_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0,2,3,9,12,13,14,15,16,17,18)
	MR_init_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0,19,20,21,22,23,8,25,27,30,32)
	MR_init_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0,33,34,36,37,43,44,45,46,47,48)
	MR_init_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0,49,50,51,52,53,54,55,56,24,57)
	MR_init_label10(transform_hlds__table_gen__gen_save_call_for_type_15_0,58,59,61,62,63,64,65,66,67,68)
	MR_init_label4(transform_hlds__table_gen__gen_save_call_for_type_15_0,69,70,71,72)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_save_call_for_type'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__gen_save_call_for_type_15_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_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(9) = MR_r7;
	MR_sv(10) = MR_r8;
	MR_sv(11) = MR_r9;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__arg_name_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i2);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i3);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(7);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 4);
	MR_sv(8) = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr2, 1) = MR_tempr1;
	MR_tempr3 = MR_sv(2);
	MR_tfield(0, MR_tempr2, 2) = MR_tempr3;
	MR_tfield(0, MR_tempr2, 3) = (MR_Integer) 0;
	MR_r1 = MR_tempr3;
	}
	MR_np_call_localret_ent(parse_tree__prog_type__type_is_io_state_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i9);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_save_call_for_type_15_0_i8);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(8);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_name_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i12);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i13);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i14);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i15);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,15)
	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__table_gen__gen_save_call_for_type_15_0_i16);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i17);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,17)
	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,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i18);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i19);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i20);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i21);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_save_io_state_answer", 27);
	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__table_gen__gen_save_call_for_type_15_0_i22);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i23);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(11);
	MR_decr_sp_and_return(12);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__builtin_type_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i25);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_save_call_for_type_15_0_i24);
	}
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i27);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,27)
	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(7);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(1), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(1), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__dummy_type_var_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i30);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 0;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(10);
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_make_type_info_var_10_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i32);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r5;
	MR_sv(3) = MR_r4;
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_sv(11) = MR_r3;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i33);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("save_arg_typeinfo", 17);
	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__table_gen__gen_save_call_for_type_15_0_i34);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_sv(10);
	MR_r5 = MR_sv(3);
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i36);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i37);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,37)
	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(6);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = MR_sv(8);
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_tfield(1, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_sv(1) = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_name_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i43);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i44);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i45);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i46);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i47);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i48);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i49);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i50);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,50)
	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__table_gen__gen_save_call_for_type_15_0_i51);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i52);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i53);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i54);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_save_any_answer", 22);
	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__table_gen__gen_save_call_for_type_15_0_i55);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i56);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(11);
	MR_decr_sp_and_return(12);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(transform_hlds__table_gen__type_save_category_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i57);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("_answer", 7);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i58);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_save_", 12);
	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__table_gen__gen_save_call_for_type_15_0_i59);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(8);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(6) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_name_0_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i61);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i62);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i63);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i64);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,64)
	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__table_gen__gen_save_call_for_type_15_0_i65);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i66);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,66)
	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,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i67);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i68);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i69);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i70);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i71);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_save_call_for_type_15_0_i72);
MR_def_label(transform_hlds__table_gen__gen_save_call_for_type_15_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(1);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(11);
	MR_decr_sp_and_return(12);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__instmap__instmap_delta_search_var_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module39)
	MR_init_entry1(transform_hlds__table_gen__gen_restore_call_for_type_9_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__gen_restore_call_for_type_9_0);
	MR_init_label10(transform_hlds__table_gen__gen_restore_call_for_type_9_0,2,3,6,4,10,11,12,13,14,15)
	MR_init_label10(transform_hlds__table_gen__gen_restore_call_for_type_9_0,9,18,19,8,21,22,23,25,28,27)
	MR_init_label10(transform_hlds__table_gen__gen_restore_call_for_type_9_0,36,37,38,39,40,41,42,43,44,45)
	MR_init_label2(transform_hlds__table_gen__gen_restore_call_for_type_9_0,46,47)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'gen_restore_call_for_type'/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__table_gen__gen_restore_call_for_type_9_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(2) = MR_r1;
	MR_sv(1) = 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_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i2);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("restore_arg", 11);
	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__table_gen__gen_restore_call_for_type_9_0_i3);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(parse_tree__prog_type__type_is_io_state_1_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i6);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i4);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_sv(4) = (MR_Word) MR_string_const("MR_tbl_restore_io_state_answer", 30);
	MR_sv(1) = MR_sv(3);
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i25);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(7);
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i10);
	}
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i9);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i11);
	}
	MR_sv(7) = MR_r1;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i9);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i12);
	}
	MR_sv(7) = MR_r1;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i9);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i13);
	}
	MR_sv(7) = MR_r1;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i9);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i14);
	}
	MR_sv(7) = MR_r1;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i9);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i15);
	}
	MR_r2 = MR_tfield(3, MR_sv(1), 1);
	if (MR_INT_NE(MR_r2,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i8);
	}
	MR_sv(7) = MR_r1;
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i9);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_RTAGS_TESTR(MR_sv(1),3,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i8);
	}
	MR_sv(7) = MR_r1;
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, tvar_type);
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(varset__init_1_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i18);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_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_tempr1;
	}
	MR_np_call_localret_ent(varset__new_var_3_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i19);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_sv(4) = (MR_Word) MR_string_const("MR_tbl_restore_any_answer", 25);
	MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i25);
	}
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(transform_hlds__table_gen__type_save_category_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i21);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("_answer", 7);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i22);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_restore_", 15);
	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__table_gen__gen_restore_call_for_type_9_0_i23);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_sv(4) = MR_tempr1;
	MR_sv(1) = MR_sv(3);
	}
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r2;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_search_var_3_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i28);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__gen_restore_call_for_type_9_0_i27);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tempr4 = MR_sv(5);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr2, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(7);
	MR_tfield(0, MR_r2, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr2, 0) = MR_r2;
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 4);
	MR_sv(3) = MR_tempr3;
	MR_tfield(0, MR_tempr3, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr3, 1) = MR_tempr2;
	MR_tfield(0, MR_tempr3, 2) = MR_sv(1);
	MR_tfield(0, MR_tempr3, 3) = (MR_Integer) 0;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(6);
	}
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i37);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.gen_restore_call_for_type\'/9", 64);
	MR_r3 = (MR_Word) MR_string_const("no inst", 7);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i36);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i37);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i38);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i39);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i40);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i41);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("answerblock", 11);
	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__table_gen__gen_restore_call_for_type_9_0_i42);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i43);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i44);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i45);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i46);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__gen_restore_call_for_type_9_0_i47);
MR_def_label(transform_hlds__table_gen__gen_restore_call_for_type_9_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	MR_decr_sp_and_return(8);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module40)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_det_inactive_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_det_inactive", 17);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_det_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module41)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_det_active_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_det_active", 15);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_det_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module42)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_det_succeeded_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_det_succeeded", 18);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_det_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module43)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_semi_inactive_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_semi_inactive", 18);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_semi_status", 16);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module44)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_semi_active_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_semi_active", 16);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_semi_status", 16);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module45)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_semi_succeeded_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_semi_succeeded", 19);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_semi_status", 16);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module46)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_semi_failed_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_semi_failed", 16);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_semi_status", 16);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module47)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_det_status_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_det_status_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__memo_det_status_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_det_status_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_det_status_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_det_status_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_det_status_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_det_status", 15);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module48)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_semi_status_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_semi_status_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__memo_semi_status_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_semi_status_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_semi_status_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_semi_status_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_semi_status_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_semi_status", 16);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module49)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_record_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_record_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__memo_non_record_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_record_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_record_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_record_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_non_record_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_non_record", 15);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module50)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_status_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_status_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__memo_non_status_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_status_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_status_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_status_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_non_status_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_non_status", 15);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module51)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_record_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_record_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_record_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_record_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("record", 6);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module52)
	MR_init_entry1(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,2,3,4,5,6,9,10,11,14,16)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,19,24,25,26,27,28,29,30,31,32)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,33,34,35,36,37,38,39,40,41,42)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,43,44,45,46,47,48,49,50,51,53)
	MR_init_label4(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,58,61,62,63)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_memo_non_call_table_lookup_goal'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(19);
	MR_sv(19) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r5;
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i2);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r4;
	MR_sv(6) = MR_r7;
	MR_sv(7) = MR_r8;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(10) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(18) = MR_tempr1;
	MR_sv(3) = MR_r1;
	MR_sv(4) = MR_r2;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_type_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i3);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Record", 6);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i4);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_status_type_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i5);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Status", 6);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr3 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(11) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(4) = MR_tempr3;
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_r2;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_name_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i9);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__status_name_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i11);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,11)
	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(12);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(14), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(14), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_type_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i14);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(14);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(14) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i16);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(13);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(15), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(15), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_status_type_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i19);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	MR_tfield(0, MR_r2, 1) = MR_sv(15);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(14);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(6);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	MR_sv(6) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i24);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i25);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n\n", 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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i26);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i27);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i28);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i29);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(14);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i30);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i31);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i32);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_back_arg_string_1_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i33);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i34);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(13);
	MR_sv(13) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i35);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i36);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i37);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i38);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i39);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i40);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(15);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i41);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i42);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(14);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i43);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i44);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_non_setup", 21);
	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__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i45);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i46);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i47);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(12);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i48);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i49);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_non_setup", 20);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(12);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(10);
	MR_r10 = MR_sv(2);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i50);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(transform_hlds__table_gen__attach_call_table_tip_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i51);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(8);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i53);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(7);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,2);
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i58);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i61);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i62);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(2);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0_i63);
MR_def_label(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(17);
	MR_r3 = MR_sv(18);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r7 = MR_sv(5);
	MR_decr_sp_and_return(19);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module53)
	MR_init_entry1(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,3,5,6,8,7,9,10,11,12,13)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_answer_table_lookup_goals'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(9);
	MR_sv(9) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r4,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i3);
	}
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r5;
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(8) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i5);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r5;
	MR_sv(5) = (MR_Word) MR_TAG_COMMON(1,5,1);
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(8) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i5);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i8);
	}
	MR_r1 = MR_sv(1);
	MR_r5 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r4 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
	MR_GOTO_LAB(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i7);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r5 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_r3 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_r4 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r2;
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i9);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_r7;
	MR_sv(8) = MR_r3;
	MR_tempr3 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr4 = MR_r2;
	MR_r2 = MR_tempr2;
	MR_r3 = (MR_Word) MR_string_const("proc_table_info", 15);
	MR_r4 = (MR_Word) MR_string_const("cur_node", 8);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr3;
	MR_r7 = MR_tempr4;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__maybe_record_overall_stats_12_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r4;
	MR_sv(6) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r5;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i11);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i12);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(4);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0_i13);
MR_def_label(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(3);
	MR_decr_sp_and_return(9);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module54)
	MR_init_entry1(fn__transform_hlds__table_gen__success_indicator_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__success_indicator_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'success_indicator_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__success_indicator_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("SUCCESS_INDICATOR", 17);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module55)
	MR_init_entry1(transform_hlds__table_gen__generate_memo_non_save_goals_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_memo_non_save_goals_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,2,3,6,8,9,10,11,12,13,14)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,15,16,17,18,19,20,21,22,23,24)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,25,26,27,28,29,30,31,32,33,34)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,35,36,37,38,39,40,41,42,43,44)
	MR_init_label9(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,45,46,47,48,49,50,52,53,55)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_memo_non_save_goals'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_memo_non_save_goals_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(17);
	MR_sv(17) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r10;
	MR_sv(8) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(10) = MR_r8;
	MR_sv(11) = MR_r9;
	MR_sv(12) = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i2);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i3);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(13), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(13), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_type_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(13);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 0;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_tempr1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(10);
	MR_r7 = MR_sv(11);
	MR_r8 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i8);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_sv(13) = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i9);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(5);
	MR_r4 = (MR_Word) MR_string_const("MR_tbl_memo_non_create_answer_block", 35);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(12);
	MR_r8 = MR_sv(13);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(13) = MR_r1;
	MR_sv(14) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(15) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i11);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i12);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i13);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(";\n\tMR_bool succeeded;\n", 22);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i14);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_memo_non_save_goals_15_0_i15);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_memo_non_save_goals_15_0_i16);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_memo_non_save_goals_15_0_i17);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_memo_non_save_goals_15_0_i18);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i19);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(");\n", 3);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i20);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	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__table_gen__generate_memo_non_save_goals_15_0_i21);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i22);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__generate_memo_non_save_goals_15_0_i23);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i24);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i25);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i26);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_non_get_answer_table", 32);
	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__table_gen__generate_memo_non_save_goals_15_0_i27);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i28);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i29);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(", succeeded);\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i30);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i31);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i32);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i33);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_non_answer_is_not_duplicate", 39);
	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__table_gen__generate_memo_non_save_goals_15_0_i34);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i35);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__success_indicator_name_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i36);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(" = succeeded;\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i37);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i38);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t}\n", 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__table_gen__generate_memo_non_save_goals_15_0_i39);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i40);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(") {\n", 4);
	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__table_gen__generate_memo_non_save_goals_15_0_i41);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("succeeded", 9);
	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__table_gen__generate_memo_non_save_goals_15_0_i42);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tif (", 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__table_gen__generate_memo_non_save_goals_15_0_i43);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i44);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i45);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__generate_memo_non_save_goals_15_0_i46);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\n", 1);
	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__table_gen__generate_memo_non_save_goals_15_0_i47);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i48);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_memo_non_save_goals_15_0_i49);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i50);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(5) = MR_tempr1;
	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_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i52);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_non_answer_is_not_duplicate_shortcut", 47);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(1);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i53);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(6);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_memo_non_save_goals_15_0_i55);
MR_def_label(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(14);
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_decr_sp_and_return(17);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module56)
	MR_init_entry1(fn__transform_hlds__table_gen__answer_block_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__answer_block_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__answer_block_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'answer_block_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__answer_block_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__answer_block_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__answer_block_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_answer_block", 15);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_3_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__instmap__instmap_delta_bind_var_1_0);
MR_decl_entry(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module57)
	MR_init_entry1(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_memo_non_restore_goal_11_0);
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,2,4,8,9,12,13,16,17,18,19)
	MR_init_label10(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,21,20,22,26,27,30,33,34,35,40)
	MR_init_label1(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,41)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_memo_non_restore_goal'/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__table_gen__generate_memo_non_restore_goal_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(17);
	MR_sv(17) = (MR_Word) MR_succip;
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i2);
	}
	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_r8;
	MR_sv(7) = (MR_Word) MR_string_const("table_memo_return_all_answers_multi", 35);
	MR_sv(8) = MR_r6;
	MR_sv(9) = MR_r7;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i9);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i4);
	}
	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_r8;
	MR_sv(7) = (MR_Word) MR_string_const("table_memo_return_all_answers_nondet", 36);
	MR_sv(8) = MR_r6;
	MR_sv(9) = MR_r7;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i9);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_sv(2) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.generate_memo_non_restore_goal\'/11", 70);
	MR_sv(3) = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("invalid determinism", 19);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i8);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i9);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_answer_block", 15);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i12);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("AnswerBlock", 11);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i13);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr3 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(12) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(8) = MR_tempr3;
	MR_sv(9) = MR_tfield(0, MR_sv(6), 0);
	MR_sv(10) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_r1 = MR_tempr3;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i16);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(12);
	MR_r4 = (MR_Integer) 1;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(5);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i17);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_tfield(0, MR_r2, 0);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i18);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i19);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i21);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r4 = MR_sv(9);
	MR_r3 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r5 = MR_sv(10);
	MR_r6 = MR_sv(11);
	MR_GOTO_LAB(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i20);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r4 = MR_sv(9);
	MR_r3 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_r5 = MR_sv(10);
	MR_r6 = MR_sv(11);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_sv(9) = MR_r4;
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i22);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r3;
	MR_sv(7) = MR_r4;
	MR_sv(10) = MR_r5;
	MR_sv(12) = MR_r1;
	MR_sv(13) = MR_r2;
	MR_sv(15) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(16) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(16);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,3);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i26);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i27);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_string_const("answerblock", 11);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(14), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(14), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_type_0_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i30);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(8);
	MR_tfield(0, MR_r2, 1) = MR_sv(14);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(8) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i33);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i34);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_non_return_all_shortcut", 34);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(10);
	MR_r7 = (MR_Integer) 1;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(9);
	MR_r10 = MR_sv(5);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i35);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr4, 1) = MR_sv(11);
	MR_r1 = MR_sv(15);
	MR_r2 = MR_sv(16);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i40);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 1;
	MR_r5 = MR_sv(5);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__generate_memo_non_restore_goal_11_0_i41);
MR_def_label(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	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(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(12);
	MR_r2 = MR_sv(13);
	MR_decr_sp_and_return(17);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module58)
	MR_init_entry1(fn__transform_hlds__table_gen__need_minimal_model_msg_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__need_minimal_model_msg_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'need_minimal_model_msg'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__need_minimal_model_msg_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("detected need for minimal model", 31);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__instmap__instmap_delta_apply_instmap_delta_4_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module59)
	MR_init_entry1(transform_hlds__table_gen__create_instmap_delta_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__create_instmap_delta_2_0);
	MR_init_label3(transform_hlds__table_gen__create_instmap_delta_2_0,16,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'create_instmap_delta'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__create_instmap_delta_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_instmap_delta_2_0_i16);
	}
	MR_np_tailcall_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0);
MR_def_label(transform_hlds__table_gen__create_instmap_delta_2_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_r1, 0), 1);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__create_instmap_delta_2_0_i5);
MR_def_label(transform_hlds__table_gen__create_instmap_delta_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_localcall_lab(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_instmap_delta_2_0_i6);
MR_def_label(transform_hlds__table_gen__create_instmap_delta_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 2;
	MR_succip_word = MR_sv(2);
	MR_decr_sp(2);
	MR_np_tailcall_ent(hlds__instmap__instmap_delta_apply_instmap_delta_4_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module60)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_inactive_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_non_inactive", 17);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_non_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module61)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_active_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_non_active", 15);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_non_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module62)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_incomplete_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_non_incomplete", 19);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_non_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module63)
	MR_init_entry1(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'memo_non_complete_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("memo_non_complete", 17);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("memo_non_status", 15);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_pred__pred_info_proc_info_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_context_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_headvars_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_inst_varset_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_argmodes_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_inferred_determinism_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_goal_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_rtti_varmaps_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_var_name_remap_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_create_13_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_context_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_arg_types_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_typevarset_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_exist_quant_tvars_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_class_context_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_assertions_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_markers_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_create_16_0);
MR_decl_entry(hlds__hlds_module__module_info_get_predicate_table_2_0);
MR_decl_entry(hlds__pred_table__predicate_table_insert_4_0);
MR_decl_entry(hlds__hlds_module__module_info_set_predicate_table_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module64)
	MR_init_entry1(transform_hlds__table_gen__clone_proc_and_create_call_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__clone_proc_and_create_call_5_0);
	MR_init_label10(transform_hlds__table_gen__clone_proc_and_create_call_5_0,2,3,4,5,6,7,8,9,10,11)
	MR_init_label10(transform_hlds__table_gen__clone_proc_and_create_call_5_0,12,13,14,15,16,17,18,20,21,22)
	MR_init_label7(transform_hlds__table_gen__clone_proc_and_create_call_5_0,23,24,25,27,28,29,30)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'clone_proc_and_create_call'/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__table_gen__clone_proc_and_create_call_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(14);
	MR_sv(14) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(13) = MR_r3;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_proc_info_3_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i2);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_context_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i3);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_varset_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i4);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_vartypes_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i5);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_headvars_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i6);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_inst_varset_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i7);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_argmodes_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i8);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_inferred_determinism_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i9);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i10);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_rtti_varmaps_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i11);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_var_name_remap_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i12);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_sv(9);
	MR_r9 = MR_sv(10);
	MR_r10 = MR_tempr1;
	MR_r11 = (MR_Integer) 1;
	MR_r12 = MR_sv(2);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_create_13_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i13);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_module_1_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i14);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i15);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i16);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_context_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i17);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("OutlinedForIOTablingFrom_", 25);
	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__table_gen__clone_proc_and_create_call_5_0_i18);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(8) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(1);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_arg_types_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i20);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_typevarset_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i21);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_exist_quant_tvars_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i22);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_class_context_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i23);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_assertions_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i24);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_markers_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i25);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(5);
	MR_r5 = (MR_Word) MR_TAG_COMMON(3,6,0);
	MR_r6 = (MR_Word) MR_tbmkword(0, 8);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_sv(9);
	MR_r9 = MR_sv(10);
	MR_r10 = MR_sv(11);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(1);
	MR_r13 = MR_sv(2);
	MR_r14 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_create_16_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i27);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_sv(13);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_predicate_table_2_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i28);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__pred_table__predicate_table_insert_4_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i29);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_sv(13);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_predicate_table_3_0,
		transform_hlds__table_gen__clone_proc_and_create_call_5_0_i30);
MR_def_label(transform_hlds__table_gen__clone_proc_and_create_call_5_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 6);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 2) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 3) = (MR_Integer) 2;
	MR_tfield(1, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(1, MR_tempr1, 5) = MR_sv(8);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	MR_decr_sp_and_return(14);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module65)
	MR_init_entry1(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__allocate_plain_slot_numbers_3_0);
	MR_init_label3(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0,6,7,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'allocate_plain_slot_numbers'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0_i2);
	}
	MR_r4 = (MR_Word) MR_sp;
MR_def_label(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_incr_sp(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_tfield(1, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r2;
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = ((MR_Integer) MR_r2 + (MR_Integer) 1);
	if (MR_LTAGS_TESTR(MR_r1,0,0))
		continue;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	}
	break; } /* end while */
MR_def_label(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp(1);
	if (((MR_Integer) MR_sp > (MR_Integer) MR_r4))
		continue;
	MR_proceed();
	break; } /* end while */
MR_def_label(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_pred_info_3_0);
MR_decl_entry(hlds__hlds_pred__check_marker_2_0);
MR_decl_entry(list__filter_4_0);
MR_decl_entry(fn__parse_tree__builtin_lib_types__int_type_0_0);
MR_decl_entry(fn__parse_tree__builtin_lib_types__c_pointer_type_0_0);
MR_decl_entry(hlds__hlds_goal__make_const_construction_alloc_9_0);
MR_decl_entry(list__filter_3_0);
MR_decl_entry(ll_backend__continuation_info__generate_table_arg_type_info_3_0);
MR_decl_entry(fn__hlds__hlds_goal__true_goal_0_0);
MR_decl_entry(hlds__instmap__instmap_delta_restrict_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module66)
	MR_init_entry1(transform_hlds__table_gen__create_new_io_goal_17_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__create_new_io_goal_17_0);
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,2,3,5,7,4,10,11,12,17,18)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,19,23,14,24,25,26,27,28,29,33)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,34,35,36,41,42,43,44,48,50,52)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,53,54,60,63,66,67,46,69,73,75)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,45,76,77,78,86,87,81,97,98,99)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,103,104,106,107,108,80,79,110,112,116)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,117,119,120,121,122,128,130,131,132,133)
	MR_init_label10(transform_hlds__table_gen__create_new_io_goal_17_0,139,140,141,142,147,148,149,150,156,157)
	MR_init_label1(transform_hlds__table_gen__create_new_io_goal_17_0,158)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'create_new_io_goal'/17 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__create_new_io_goal_17_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(24);
	MR_sv(24) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r5;
	MR_sv(5) = MR_tempr1;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_tfield(0, MR_r1, 1);
	MR_tempr2 = MR_r12;
	MR_sv(11) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(15) = MR_r10;
	MR_sv(16) = MR_r11;
	MR_sv(13) = MR_tempr2;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_info_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i2);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_markers_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i3);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 7;
	MR_np_call_localret_ent(hlds__hlds_pred__check_marker_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i5);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i4);
	}
	MR_r1 = MR_sv(12);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(11);
	MR_np_call_localret_ent(transform_hlds__table_gen__clone_proc_and_create_call_5_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i7);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(12) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr3 = MR_sv(10);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 3);
	MR_sv(19) = MR_tempr2;
	MR_tfield(0, MR_tempr2, 0) = MR_r2;
	MR_tempr4 = MR_sv(13);
	MR_tfield(0, MR_tempr2, 1) = MR_tfield(0, MR_tempr4, 1);
	MR_tfield(0, MR_tempr2, 2) = MR_tfield(0, MR_tempr4, 2);
	MR_r1 = MR_tempr3;
	MR_sv(11) = MR_r2;
	MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i10);
	}
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(10);
	MR_sv(12) = MR_sv(1);
	MR_sv(19) = MR_sv(13);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i11);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i12);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i14);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(0,6);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__var_mode_pos_is_io_state_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_sv(16);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_sv(1) = MR_r2;
	MR_sv(17) = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r1 = MR_sv(17);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__filter_4_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i17);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i18);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,18)
	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(17);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(8);
	}
	MR_np_call_localret_ent(list__filter_4_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i19);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(0,7);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__var_mode_is_io_state_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_sv(16);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,7,2);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__filter_4_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i23);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__trie_node_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i24);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_sv(14) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(8) = MR_sv(7);
	MR_sv(7) = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__trie_node_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i24);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("TableVar", 8);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(16);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i25);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r3;
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__int_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i26);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("CounterVar", 10);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(16);
	MR_r4 = MR_sv(17);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i27);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r3;
	MR_sv(17) = MR_r1;
	MR_sv(18) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__int_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i28);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("StartVar", 8);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(18);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i29);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr4 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr4;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(16);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_sv(17) = MR_tempr4;
	MR_sv(20) = MR_r1;
	MR_sv(21) = MR_r2;
	MR_sv(22) = MR_tempr3;
	MR_r1 = MR_tempr3;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i33);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_io_in_range", 17);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(22);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i34);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__trie_node_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i35);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("TipVar", 6);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(20);
	MR_r4 = MR_sv(21);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i36);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(21) = MR_tempr1;
	MR_tempr5 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr5;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(16);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_sv(17);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_sv(16) = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_sv(15) = MR_tempr5;
	MR_sv(17) = MR_r1;
	MR_sv(20) = MR_r2;
	MR_r1 = MR_tempr5;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i41);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_lookup_insert_start_int", 29);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(16);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i42);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i43);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_io_has_occurred", 21);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(21);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i44);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(2),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i46);
	}
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_sv(6);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__shroud_pred_proc_id_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i48);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_sv(5) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 10;
	MR_tfield(3, MR_tempr1, 1) = MR_r1;
	}
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__c_pointer_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i50);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,50)
	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_Word) MR_TAG_COMMON(1,5,2);
	MR_r4 = MR_sv(17);
	MR_r5 = MR_sv(20);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_alloc_9_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i52);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_sv(17) = MR_r3;
	MR_sv(20) = MR_r4;
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Integer) 1;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_plain_slot_numbers_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i53);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i54);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(6) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_sv(8);
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = (MR_Word) MR_CTOR1_ADDR(transform_hlds__table_gen, var_mode_pos_method);
	MR_sv(21) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(21);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,4);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i60);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_COMMON(0,9);
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__IntroducedFrom__pred__create_new_io_goal__1282__1_2_0);
	MR_tfield(0, MR_r2, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_r2, 3) = MR_r1;
	MR_sv(23) = (MR_Word) MR_TAG_COMMON(0,2,7);
	MR_r1 = MR_sv(23);
	MR_r3 = MR_sv(6);
	MR_np_call_localret_ent(list__filter_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i63);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_sv(1) = MR_tfield(0, MR_sv(19), 2);
	MR_r1 = MR_sv(23);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,7,3);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,5);
	MR_r4 = MR_tfield(1, MR_sv(6), 1);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i66);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,66)
	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(ll_backend__continuation_info__generate_table_arg_type_info_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i67);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(1), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(1), 0) = MR_r1;
	MR_r2 = MR_sv(6);
	MR_r1 = MR_sv(23);
	MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i45);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i69);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(6) = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_sv(23) = (MR_Word) MR_TAG_COMMON(0,2,7);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(23);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,6);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i73);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(23);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,7);
	MR_r4 = MR_sv(1);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i75);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_r1;
	MR_r1 = MR_sv(23);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(list__length_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i76);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_sv(10) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i77);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(9);
	MR_r5 = MR_sv(17);
	MR_r6 = MR_sv(20);
	MR_r7 = MR_sv(19);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i78);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i80);
	}
	if (MR_LTAGS_TEST(MR_sv(7),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i81);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr2 = MR_sv(7);
	MR_tempr1 = MR_tfield(1, MR_tempr2, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i81);
	}
	if (MR_LTAGS_TEST(MR_sv(14),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i81);
	}
	MR_tempr3 = MR_sv(14);
	MR_tempr1 = MR_tfield(1, MR_tempr3, 1);
	if (MR_LTAGS_TESTR(MR_tempr1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i81);
	}
	MR_sv(4) = MR_r3;
	MR_tempr1 = MR_tempr2;
	MR_sv(7) = MR_tfield(1, MR_tempr3, 0);
	MR_sv(8) = MR_r1;
	MR_sv(14) = MR_r2;
	MR_r1 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i86);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i87);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(17) = MR_tempr1;
	MR_tempr4 = MR_sv(7);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr4;
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr4;
	MR_tfield(0, MR_tempr2, 1) = (MR_Word) MR_TAG_COMMON(3,8,0);
	MR_tag_alloc_heap(MR_tempr3, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr3, 0) = MR_r1;
	MR_tfield(0, MR_tempr3, 1) = (MR_Word) MR_TAG_COMMON(3,8,1);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr3;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr2;
	MR_tfield(1, MR_r1, 1) = MR_r2;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i98);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_sv(14) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.create_new_io_goal\'/17", 58);
	MR_sv(4) = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("one in / one out violation", 26);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i97);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,97)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i98);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_io_copy_io_state", 22);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(17);
	MR_r4 = (MR_Integer) 0;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i99);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(4);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_sv(7) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i103);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_tfield(0, MR_r2, 1);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i104);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = MR_sv(17);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_108_105_115_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i106);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i107);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,107)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 1;
	MR_r5 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i108);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,108)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(4) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r4 = MR_sv(9);
	MR_r2 = MR_sv(15);
	MR_r1 = MR_sv(6);
	MR_r3 = MR_sv(10);
	MR_r7 = MR_sv(19);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(14);
	MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i79);
	}
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_sv(9);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_sv(15);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_sv(4) = MR_r3;
	MR_r3 = MR_sv(10);
	MR_r7 = MR_sv(19);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_tempr1;
	}
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r4;
	MR_sv(15) = MR_r2;
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i110);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(3),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__create_new_io_goal_17_0_i112);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 1) = MR_r4;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(12);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_sv(3) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr2;
	MR_sv(7) = MR_r1;
	MR_r1 = MR_tempr2;
	MR_sv(8) = MR_r2;
	MR_sv(10) = MR_r3;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i128);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,112)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(10) = MR_r3;
	MR_sv(6) = MR_r1;
	MR_sv(7) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__int_type_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i116);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("SavedTraceEnabled", 17);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i117);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(14) = MR_tempr1;
	MR_tempr2 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_r1 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i119);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_io_left_bracket_unitized_goal", 35);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(14);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i120);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i121);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,121)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_io_right_bracket_unitized_goal", 36);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(14);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i122);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,122)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(5);
	MR_tfield(1, MR_r2, 1) = MR_sv(3);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(12);
	MR_tfield(1, MR_r2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(6);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(3) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_r1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i128);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,128)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(11) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(13);
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i130);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,130)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i131);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,131)
	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_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i132);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,132)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 8;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_add_feature_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i133);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,133)
	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(3);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr3 = MR_sv(2);
	MR_tfield(3, MR_tempr1, 2) = MR_tempr3;
	MR_tempr4 = MR_sv(4);
	MR_tfield(3, MR_tempr1, 3) = MR_tempr4;
	MR_tfield(3, MR_tempr1, 4) = MR_r2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_r2;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr4;
	MR_tfield(1, MR_r2, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr3;
	MR_tfield(1, MR_r1, 1) = MR_r2;
	MR_sv(2) = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i139);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,139)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(13);
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i140);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,140)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i141);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,141)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i142);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,142)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(16);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_r1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i147);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,147)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(22);
	MR_r4 = MR_sv(13);
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_108_105_115_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i148);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,148)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i149);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,149)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i150);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,150)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_sv(2) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr4 = MR_sv(18);
	MR_tfield(3, MR_tempr1, 2) = MR_tempr4;
	MR_tfield(3, MR_tempr1, 3) = MR_r2;
	MR_tempr5 = MR_sv(12);
	MR_tfield(3, MR_tempr1, 4) = MR_tempr5;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr5;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_r2;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_tempr4;
	MR_tfield(1, MR_r1, 1) = MR_tempr3;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i156);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,156)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i157);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,157)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(9);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_io_goal_17_0_i158);
MR_def_label(transform_hlds__table_gen__create_new_io_goal_17_0,158)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(10);
	MR_r5 = MR_sv(1);
	MR_decr_sp_and_return(24);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module67)
	MR_init_entry1(fn__transform_hlds__table_gen__subgoal_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__subgoal_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__subgoal_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'subgoal_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__subgoal_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__subgoal_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__subgoal_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_subgoal", 10);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module68)
	MR_init_entry1(fn__transform_hlds__table_gen__mm_status_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__mm_status_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__mm_status_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mm_status_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__mm_status_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_status_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__mm_status_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("mm_status", 9);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module69)
	MR_init_entry1(fn__transform_hlds__table_gen__subgoal_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__subgoal_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'subgoal_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__subgoal_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("subgoal", 7);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module70)
	MR_init_entry1(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,2,3,4,5,6,9,10,11,14,16)
	MR_init_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,19,24,25,26,27,28,29,30,31,32)
	MR_init_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,33,34,35,36,37,38,39,40,41,42)
	MR_init_label10(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,43,44,45,46,47,48,49,50,51,53)
	MR_init_label4(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,58,61,62,63)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_mm_call_table_lookup_goal'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(19);
	MR_sv(19) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r5;
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i2);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r4;
	MR_sv(6) = MR_r7;
	MR_sv(7) = MR_r8;
	MR_sv(8) = MR_r9;
	MR_sv(9) = MR_r10;
	MR_sv(18) = MR_r3;
	MR_sv(3) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__subgoal_type_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i3);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Subgoal", 7);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i4);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__mm_status_type_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i5);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Status", 6);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(10);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr3 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(10) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(4) = MR_tempr3;
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_r2;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__subgoal_name_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i9);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__status_name_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i11);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,11)
	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(11);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(13), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(13), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__subgoal_type_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i14);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(13);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(13) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i16);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(12);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(14), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(14), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__mm_status_type_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i19);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(4);
	MR_tfield(0, MR_r2, 1) = MR_sv(14);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(13);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(6);
	MR_tfield(1, MR_r1, 1) = MR_tempr1;
	MR_sv(6) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i24);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(";\n\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i25);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i26);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i27);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i28);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(13);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i29);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i30);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i31);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_back_arg_string_1_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i32);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i33);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(12);
	MR_sv(12) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i34);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i35);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i36);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i37);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i38);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i39);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(15);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i40);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i41);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(14);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i42);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i43);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mm_setup", 15);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i44);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i45);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i46);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__generate_mm_call_table_lookup_goal_15_0_i47);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(11) = MR_tfield(0, MR_sv(18), 0);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i48);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i49);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mm_setup", 14);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(12);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(9);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(11);
	MR_r10 = MR_sv(2);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i50);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(transform_hlds__table_gen__attach_call_table_tip_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i51);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(8);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i53);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_sv(6) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(7) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(7);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,8);
	MR_r4 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i58);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i61);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i62);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(2);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0_i63);
MR_def_label(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r6 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(17);
	MR_r3 = MR_sv(18);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r7 = MR_sv(5);
	MR_decr_sp_and_return(19);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module71)
	MR_init_entry1(transform_hlds__table_gen__generate_mm_save_goals_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_mm_save_goals_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0,2,3,4,5,6,7,10,13,14,15)
	MR_init_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0,16,17,18,19,20,21,22,23,24,25)
	MR_init_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0,26,27,28,29,30,31,32,33,34,35)
	MR_init_label10(transform_hlds__table_gen__generate_mm_save_goals_15_0,36,37,38,39,40,41,42,43,44,45)
	MR_init_label7(transform_hlds__table_gen__generate_mm_save_goals_15_0,46,47,48,49,50,51,53)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_mm_save_goals'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_mm_save_goals_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(16);
	MR_sv(16) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r10;
	MR_sv(8) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(9) = MR_r8;
	MR_sv(10) = MR_r9;
	MR_sv(11) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i2);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i3);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(6) = MR_r5;
	MR_sv(9) = MR_r6;
	MR_sv(10) = MR_r7;
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_sv(13) = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__subgoal_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i4);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,4)
	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(5);
	MR_r4 = (MR_Word) MR_string_const("MR_tbl_mm_create_answer_block", 29);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(12);
	MR_r8 = MR_sv(13);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i5);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(13) = MR_r1;
	MR_sv(14) = MR_r2;
	MR_sv(15) = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__subgoal_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i7);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,7)
	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(11);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(12), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(12), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__subgoal_type_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_sv(12);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(2) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i13);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i14);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(";\n\tMR_bool succeeded;\n", 22);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i15);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_mm_save_goals_15_0_i16);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_mm_save_goals_15_0_i17);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_mm_save_goals_15_0_i18);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_mm_save_goals_15_0_i19);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i20);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i21);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i22);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i23);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i24);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i25);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i26);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mm_get_answer_table", 26);
	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__table_gen__generate_mm_save_goals_15_0_i27);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i28);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i29);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(", succeeded);\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i30);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i31);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i32);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i33);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mm_answer_is_not_duplicate", 33);
	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__table_gen__generate_mm_save_goals_15_0_i34);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i35);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Word) MR_string_const("\t}\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i36);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(") {\n", 4);
	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__table_gen__generate_mm_save_goals_15_0_i37);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("succeeded", 9);
	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__table_gen__generate_mm_save_goals_15_0_i38);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tif (", 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__table_gen__generate_mm_save_goals_15_0_i39);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__success_indicator_name_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i40);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(" = succeeded;\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i41);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i42);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i43);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i44);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i45);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i46);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i47);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_mm_save_goals_15_0_i48);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i49);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i50);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mm_answer_is_not_duplicate_shortcut", 41);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(1);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i51);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(9);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_mm_save_goals_15_0_i53);
MR_def_label(transform_hlds__table_gen__generate_mm_save_goals_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(14);
	MR_r3 = MR_sv(15);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr1;
	MR_decr_sp_and_return(16);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module72)
	MR_init_entry1(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0);
	MR_init_label10(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,2,5,6,9,10,11,12,14,13,15)
	MR_init_label8(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,19,20,23,26,27,28,33,34)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_mm_restore_or_suspend_goal'/13 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r10;
	MR_sv(9) = MR_r8;
	MR_sv(10) = MR_r9;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i2);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_answer_block", 15);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i5);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("AnswerBlock", 11);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(10);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i6);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr3 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(13) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(9) = MR_tempr3;
	MR_sv(10) = MR_tfield(0, MR_sv(8), 0);
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_r2;
	MR_r1 = MR_tempr3;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i9);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(10);
	MR_r7 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i10);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tfield(0, MR_sv(8), 0);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i11);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i12);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i14);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_r4 = MR_sv(10);
	MR_r3 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(12);
	MR_GOTO_LAB(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i13);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_r4 = MR_sv(10);
	MR_r3 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_sv(12);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_sv(5) = MR_r2;
	MR_sv(10) = MR_r4;
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i15);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r3;
	MR_sv(8) = MR_r4;
	MR_sv(11) = MR_r5;
	MR_sv(13) = MR_r1;
	MR_sv(14) = MR_r2;
	MR_sv(16) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(17) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(17);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,9);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i19);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i20);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_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_Word) MR_string_const("answerblock", 11);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(15), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(15), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_type_0_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i23);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(9);
	MR_tfield(0, MR_r2, 1) = MR_sv(15);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(9) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i26);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i27);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mm_return_all_shortcut", 28);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(9);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(11);
	MR_r7 = (MR_Integer) 1;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(10);
	MR_r10 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i28);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_sv(1) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr4, 1) = MR_sv(12);
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(17);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i33);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(7);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0_i34);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	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(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_sv(14);
	MR_decr_sp_and_return(18);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module73)
	MR_init_entry1(transform_hlds__table_gen__generate_mm_restore_goal_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_mm_restore_goal_11_0);
	MR_init_label3(transform_hlds__table_gen__generate_mm_restore_goal_11_0,2,24,22)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_mm_restore_goal'/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__table_gen__generate_mm_restore_goal_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_mm_restore_goal_11_0_i2);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_tempr3 = MR_r5;
	MR_r5 = MR_r3;
	MR_tempr4 = MR_r6;
	MR_r6 = MR_tempr2;
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr3;
	MR_r10 = MR_r8;
	MR_r1 = (MR_Word) MR_string_const("table_mm_return_all_multi", 25);
	MR_r8 = MR_tempr4;
	MR_r9 = MR_tempr5;
	MR_r3 = (MR_Integer) 1;
	MR_np_tailcall_ent(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0);
	}
MR_def_label(transform_hlds__table_gen__generate_mm_restore_goal_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_mm_restore_goal_11_0_i24);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tempr1 = MR_r2;
	MR_r2 = MR_r1;
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_tempr3 = MR_r5;
	MR_r5 = MR_r3;
	MR_tempr4 = MR_r6;
	MR_r6 = MR_tempr2;
	MR_tempr5 = MR_r7;
	MR_r7 = MR_tempr3;
	MR_r10 = MR_r8;
	MR_r1 = (MR_Word) MR_string_const("table_mm_return_all_nondet", 26);
	MR_r8 = MR_tempr4;
	MR_r9 = MR_tempr5;
	MR_r3 = (MR_Integer) 1;
	MR_np_tailcall_ent(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0);
	}
MR_def_label(transform_hlds__table_gen__generate_mm_restore_goal_11_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.generate_mm_restore_goal\'/11", 64);
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("invalid determinism", 19);
	}
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__generate_mm_restore_goal_11_0_i22);
MR_def_label(transform_hlds__table_gen__generate_mm_restore_goal_11_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module74)
	MR_init_entry1(transform_hlds__table_gen__generate_mm_suspend_goal_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_mm_suspend_goal_10_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_mm_suspend_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__table_gen__generate_mm_suspend_goal_10_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mm_suspend_consumer", 25);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Integer) 3;
	MR_tempr3 = MR_r3;
	MR_r3 = (MR_Integer) 2;
	MR_tempr4 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_tempr5 = MR_r5;
	MR_r5 = MR_tempr2;
	MR_tempr6 = MR_r6;
	MR_r6 = MR_tempr3;
	MR_tempr7 = MR_r7;
	MR_r7 = MR_tempr4;
	MR_r8 = MR_tempr5;
	MR_r9 = MR_tempr6;
	MR_r10 = MR_tempr7;
	MR_np_tailcall_ent(transform_hlds__table_gen__generate_mm_restore_or_suspend_goal_13_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__instmap__instmap_delta_init_unreachable_1_0);
MR_decl_entry(fn__hlds__hlds_goal__fail_goal_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module75)
	MR_init_entry1(transform_hlds__table_gen__append_fail_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__append_fail_2_0);
	MR_init_label6(transform_hlds__table_gen__append_fail_2_0,2,3,4,5,6,7)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'append_fail'/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__table_gen__append_fail_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_nonlocals_1_0,
		transform_hlds__table_gen__append_fail_2_0_i2);
MR_def_label(transform_hlds__table_gen__append_fail_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		transform_hlds__table_gen__append_fail_2_0_i3);
MR_def_label(transform_hlds__table_gen__append_fail_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_init_unreachable_1_0,
		transform_hlds__table_gen__append_fail_2_0_i4);
MR_def_label(transform_hlds__table_gen__append_fail_2_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 7;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(3);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_6_0,
		transform_hlds__table_gen__append_fail_2_0_i5);
MR_def_label(transform_hlds__table_gen__append_fail_2_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 8;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_add_feature_3_0,
		transform_hlds__table_gen__append_fail_2_0_i6);
MR_def_label(transform_hlds__table_gen__append_fail_2_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__fail_goal_0_0,
		transform_hlds__table_gen__append_fail_2_0_i7);
MR_def_label(transform_hlds__table_gen__append_fail_2_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_r2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_r2;
	MR_tfield(0, MR_r1, 1) = MR_sv(2);
	MR_decr_sp_and_return(4);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module76)
	MR_init_entry1(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mm_inactive_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("mm_inactive", 11);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("mm_status", 9);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module77)
	MR_init_entry1(fn__transform_hlds__table_gen__mm_active_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__mm_active_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__mm_active_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mm_active_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__mm_active_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_active_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__mm_active_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("mm_active", 9);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_active_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__mm_active_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("mm_status", 9);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module78)
	MR_init_entry1(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__mm_complete_cons_id_0_0);
	MR_init_label2(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0,2,4)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'mm_complete_cons_id'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_complete_cons_id_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("mm_complete", 11);
	}
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__mm_complete_cons_id_0_0_i4);
MR_def_label(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_string_const("mm_status", 9);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 3);
	MR_tfield(1, MR_r1, 0) = MR_sv(1);
	MR_tfield(1, MR_r1, 1) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 2) = MR_tempr1;
	MR_decr_sp_and_return(2);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module79)
	MR_init_entry1(transform_hlds__table_gen__create_new_mm_goal_18_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__create_new_mm_goal_18_0);
	MR_init_label10(transform_hlds__table_gen__create_new_mm_goal_18_0,3,4,5,7,8,9,10,11,16,17)
	MR_init_label10(transform_hlds__table_gen__create_new_mm_goal_18_0,18,19,20,21,24,25,26,31,33,35)
	MR_init_label2(transform_hlds__table_gen__create_new_mm_goal_18_0,41,46)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'create_new_mm_goal'/18 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__create_new_mm_goal_18_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (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_sv(7) = MR_r8;
	MR_sv(12) = MR_r9;
	MR_sv(13) = MR_r10;
	MR_sv(14) = MR_r11;
	MR_sv(15) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(17) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = MR_sv(15);
	MR_r2 = MR_sv(17);
	MR_r3 = MR_r6;
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i3);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_sv(9) = MR_tfield(0, MR_sv(2), 1);
	MR_r1 = MR_sv(9);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i4);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i5);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_sv(11) = MR_tfield(0, MR_sv(14), 0);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(7);
	MR_np_call_localret_ent(list__length_2_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i7);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(10);
	MR_r6 = MR_sv(12);
	MR_r7 = MR_sv(13);
	MR_r8 = MR_sv(14);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_mm_call_table_lookup_goal_15_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i8);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6, MR_tempr7, MR_tempr8;
	MR_tempr1 = MR_sv(3);
	MR_tempr8 = MR_r4;
	MR_sv(3) = MR_tempr8;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r7;
	MR_tempr3 = MR_sv(5);
	MR_sv(5) = MR_r5;
	MR_tempr4 = MR_sv(6);
	MR_sv(6) = MR_r6;
	MR_tempr5 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_tempr6 = MR_r2;
	MR_r2 = MR_tempr8;
	MR_tempr7 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_r5 = MR_tempr4;
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(10);
	MR_r8 = MR_tempr5;
	MR_r9 = MR_tempr6;
	MR_r10 = MR_tempr7;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_mm_save_goals_15_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i9);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r4;
	MR_sv(12) = MR_r5;
	MR_sv(16) = MR_r3;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(10);
	MR_r6 = MR_tempr2;
	MR_r7 = MR_tempr3;
	MR_r8 = MR_sv(16);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_mm_restore_goal_11_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i10);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r3;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(10);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_tempr3;
	MR_r7 = MR_sv(16);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_mm_suspend_goal_10_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i11);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(13) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(12);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(12) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr3, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr4, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr3;
	MR_sv(2) = MR_r3;
	MR_sv(14) = MR_r1;
	MR_sv(15) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_sv(17);
	MR_r3 = MR_tempr4;
	MR_r4 = MR_sv(8);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_108_105_115_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i16);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(12);
	MR_sv(17) = MR_tfield(1, MR_tfield(3, MR_tempr1, 2), 1);
	MR_r1 = MR_tfield(0, MR_tfield(1, MR_tfield(3, MR_tempr1, 2), 0), 1);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i17);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(17);
	MR_sv(17) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i18);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(17);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 2;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_apply_instmap_delta_4_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i19);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i20);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 3;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(10);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i21);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(13) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(17) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(12) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i24);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mm_completion", 19);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(17);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(10);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i25);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(transform_hlds__table_gen__append_fail_2_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i26);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(13);
	MR_tfield(1, MR_r1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(11) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r2;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(12);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__mm_inactive_cons_id_0_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i31);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(11);
	MR_sv(11) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__mm_active_cons_id_0_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i33);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__mm_complete_cons_id_0_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i35);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(7);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(11);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 4);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 3;
	MR_tfield(3, MR_tempr3, 1) = MR_sv(5);
	MR_tfield(3, MR_tempr3, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 3) = MR_tempr2;
	MR_r1 = (MR_Integer) 8;
	MR_r2 = MR_sv(12);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_add_feature_3_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i41);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr3, 2) = MR_tempr1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(9);
	MR_r3 = (MR_Integer) 3;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(10);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		transform_hlds__table_gen__create_new_mm_goal_18_0_i46);
MR_def_label(transform_hlds__table_gen__create_new_mm_goal_18_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_r2 = MR_sv(15);
	MR_r3 = MR_sv(16);
	MR_r4 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = MR_sv(1);
	MR_decr_sp_and_return(18);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(check_hlds__mode_util__mode_get_insts_4_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module80)
	MR_init_entry1(transform_hlds__table_gen__generate_save_input_vars_code_6_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_save_input_vars_code_6_0);
	MR_init_label10(transform_hlds__table_gen__generate_save_input_vars_code_6_0,42,5,4,7,12,13,14,15,16,17)
	MR_init_label7(transform_hlds__table_gen__generate_save_input_vars_code_6_0,18,19,20,21,22,24,25)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_save_input_vars_code'/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__table_gen__generate_save_input_vars_code_6_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_save_input_vars_code_6_0_i42);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = (MR_Word) MR_string_const("", 0);
	MR_r3 = (MR_Word) MR_string_const("", 0);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_r5 = MR_tempr1;
	MR_tempr2 = MR_tfield(0, MR_tempr1, 0);
	MR_r6 = MR_tempr2;
	MR_tempr3 = MR_tfield(0, MR_tempr2, 1);
	MR_r4 = MR_tempr3;
	if (MR_LTAGS_TEST(MR_tempr3,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__generate_save_input_vars_code_6_0_i5);
	}
	MR_r7 = MR_r1;
	MR_r1 = MR_r2;
	MR_sv(2) = MR_r3;
	MR_r2 = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(1, MR_r7, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(0, MR_tfield(1, MR_tempr3, 0), 0);
	MR_GOTO_LAB(transform_hlds__table_gen__generate_save_input_vars_code_6_0_i4);
	}
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_sv(1) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.generate_save_input_vars_code\'/6", 68);
	MR_sv(2) = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("no InputVarName", 15);
	}
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i4);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(check_hlds__mode_util__mode_get_insts_4_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i7);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr2, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr2, 1) = MR_r2;
	MR_tfield(0, MR_tempr2, 2) = MR_sv(5);
	MR_tfield(0, MR_tempr2, 3) = (MR_Integer) 0;
	MR_sv(4) = MR_tempr2;
	MR_r1 = MR_sv(2);
	}
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i12);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i13);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i14);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_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_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i15);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\tMR_table_mmos_save_input_arg(", 31);
	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__table_gen__generate_save_input_vars_code_6_0_i16);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i17);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i18);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	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__table_gen__generate_save_input_vars_code_6_0_i19);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i20);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\tMR_table_mmos_pickup_input_arg(", 33);
	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__table_gen__generate_save_input_vars_code_6_0_i21);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = ((MR_Integer) MR_tempr1 + (MR_Integer) 1);
	}
	MR_np_localcall_lab(transform_hlds__table_gen__generate_save_input_vars_code_6_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i22);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(1) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_sv(3) = MR_r3;
	MR_r1 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i24);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_save_input_vars_code_6_0_i25);
MR_def_label(transform_hlds__table_gen__generate_save_input_vars_code_6_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_decr_sp_and_return(7);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module81)
	MR_init_entry1(transform_hlds__table_gen__allocate_slot_numbers_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__allocate_slot_numbers_3_0);
	MR_init_label3(transform_hlds__table_gen__allocate_slot_numbers_3_0,6,7,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'allocate_slot_numbers'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__allocate_slot_numbers_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__allocate_slot_numbers_3_0_i2);
	}
	MR_r4 = (MR_Word) MR_sp;
MR_def_label(transform_hlds__table_gen__allocate_slot_numbers_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_incr_sp(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_tfield(1, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = ((MR_Integer) MR_r2 + (MR_Integer) 1);
	if (MR_LTAGS_TESTR(MR_r1,0,0))
		continue;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	}
	break; } /* end while */
MR_def_label(transform_hlds__table_gen__allocate_slot_numbers_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp(1);
	if (((MR_Integer) MR_sp > (MR_Integer) MR_r4))
		continue;
	MR_proceed();
	break; } /* end while */
MR_def_label(transform_hlds__table_gen__allocate_slot_numbers_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_get_eval_method_2_0);
MR_decl_entry(fn__list__length_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module82)
	MR_init_entry1(transform_hlds__table_gen__generate_gen_proc_table_info_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_gen_proc_table_info_8_0);
	MR_init_label10(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,2,3,4,5,6,7,12,13,14,15)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_gen_proc_table_info'/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__table_gen__generate_gen_proc_table_info_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_r4;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_np_call_localret_ent(fn__hlds__hlds_rtti__make_rtti_proc_label_3_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i2);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_tfield(0, MR_sv(1), 1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_typevarset_2_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i3);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(7) = MR_tfield(0, MR_r2, 2);
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_eval_method_2_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i4);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_context_2_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i5);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(10) = (MR_Word) MR_CTOR0_ADDR(transform_hlds__table_gen, var_mode_method);
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i6);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 1;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i7);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,7,3);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,10);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i12);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,12)
	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_np_call_localret_ent(ll_backend__continuation_info__generate_table_arg_type_info_3_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i13);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__length_1_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i14);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__length_1_0,
		transform_hlds__table_gen__generate_gen_proc_table_info_8_0_i15);
MR_def_label(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 9);
	MR_tfield(0, MR_r2, 0) = MR_sv(6);
	MR_tfield(0, MR_r2, 1) = MR_sv(1);
	MR_tfield(0, MR_r2, 2) = MR_sv(9);
	MR_tfield(0, MR_r2, 3) = MR_sv(5);
	MR_tfield(0, MR_r2, 4) = MR_r1;
	MR_tfield(0, MR_r2, 5) = MR_sv(2);
	MR_tfield(0, MR_r2, 6) = MR_sv(3);
	MR_tfield(0, MR_r2, 7) = MR_sv(4);
	MR_tfield(0, MR_r2, 8) = MR_sv(8);
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module83)
	MR_init_entry1(fn__transform_hlds__table_gen__generator_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__generator_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__generator_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generator_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__generator_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__generator_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__generator_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_generator", 12);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module84)
	MR_init_entry1(fn__transform_hlds__table_gen__generator_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__generator_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generator_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__generator_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("generator", 9);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module85)
	MR_init_entry1(fn__transform_hlds__table_gen__returning_generator_locn_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__returning_generator_locn_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'returning_generator_locn'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__returning_generator_locn_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("MR_mmos_returning_generator", 27);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module86)
	MR_init_entry1(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0);
	MR_init_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,2,3,6,8,9,10,12,13,14,15)
	MR_init_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,16,17,18,19,20,21,22,23,24,25)
	MR_init_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,26,27,28,29,30,31,32,33,34,35)
	MR_init_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,36,37,38,39,40,41,42,43,44,45)
	MR_init_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,46,47,48,49,50,51,52,53,54,55)
	MR_init_label10(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,56,57,58,59,60,61,62,63,64,65)
	MR_init_label7(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,66,67,68,69,70,72,73)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generate_own_stack_save_return_goal'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(19);
	MR_sv(19) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(9) = MR_r8;
	MR_sv(10) = MR_r9;
	MR_sv(11) = MR_r10;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i2);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i3);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(8);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(12), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(12), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_type_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i6);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_sv(12);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(2) = MR_r2;
	MR_r1 = MR_sv(11);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i8);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(4);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_answer_table_lookup_goals_15_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i9);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(9) = MR_r7;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_tempr4 = MR_r3;
	MR_r3 = MR_sv(7);
	MR_r4 = MR_tempr2;
	MR_r5 = MR_tempr3;
	MR_r6 = MR_tempr4;
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i10);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(11) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(2) = MR_r5;
	MR_sv(10) = MR_r6;
	MR_sv(15) = MR_r1;
	MR_sv(16) = MR_r2;
	MR_sv(17) = MR_r3;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i12);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i13);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i14);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(";\n\tMR_bool succeeded;\n\n", 23);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i15);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_AnswerBlock ", 16);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i16);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i17);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i18);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i19);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i20);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i21);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i22);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i23);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i24);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i25);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_table_mmos_get_answer_table", 30);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i26);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = ", 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__table_gen__generate_own_stack_save_return_goal_15_0_i27);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i28);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i29);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i30);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(", succeeded);\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i31);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i32);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,32)
	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__table_gen__generate_own_stack_save_return_goal_15_0_i33);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i34);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mmos_answer_is_not_duplicate", 35);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i35);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i36);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__success_indicator_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i37);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(" = succeeded;\n", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i38);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i39);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i40);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_name_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i41);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i42);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i43);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(18);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i44);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i45);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i46);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i47);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,47)
	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__table_gen__generate_own_stack_save_return_goal_15_0_i48);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i49);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mmos_create_answer_block", 31);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i50);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i51);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__returning_generator_locn_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i52);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(";\n", 2);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i53);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = ", 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__table_gen__generate_own_stack_save_return_goal_15_0_i54);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i55);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i56);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i57);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,57)
	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__table_gen__generate_own_stack_save_return_goal_15_0_i58);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("\t}\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i59);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(") {\n", 4);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i60);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("succeeded", 9);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i61);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tif (", 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__table_gen__generate_own_stack_save_return_goal_15_0_i62);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i63);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(14);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i64);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(9);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i65);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i66);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(12);
	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__table_gen__generate_own_stack_save_return_goal_15_0_i67);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_sv(5) = MR_tfield(0, MR_sv(17), 0);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i68);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i69);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mmos_answer_is_not_duplicate_shortcut", 43);
	MR_r2 = (MR_Integer) 1;
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(11);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(3);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(5);
	MR_r10 = MR_sv(7);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i70);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(2);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i72);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0_i73);
MR_def_label(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(15);
	MR_r2 = MR_sv(16);
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	MR_decr_sp_and_return(19);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_module__module_info_get_table_struct_map_2_0);
MR_decl_entry(fn__parse_tree__prog_data__default_memo_table_attributes_0_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_proc_id_0;
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_module__type_ctor_info_table_struct_info_0;
MR_decl_entry(map__det_insert_4_0);
MR_decl_entry(hlds__hlds_module__module_info_set_table_struct_map_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module87)
	MR_init_entry1(transform_hlds__table_gen__add_proc_table_struct_5_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__add_proc_table_struct_5_0);
	MR_init_label5(transform_hlds__table_gen__add_proc_table_struct_5_0,2,3,6,5,9)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'add_proc_table_struct'/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__table_gen__add_proc_table_struct_5_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_sv(4) = MR_tempr1;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_table_struct_map_2_0,
		transform_hlds__table_gen__add_proc_table_struct_5_0_i2);
MR_def_label(transform_hlds__table_gen__add_proc_table_struct_5_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(3);
	MR_sv(3) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_table_attributes_2_0,
		transform_hlds__table_gen__add_proc_table_struct_5_0_i3);
MR_def_label(transform_hlds__table_gen__add_proc_table_struct_5_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__add_proc_table_struct_5_0_i5);
	}
	MR_np_call_localret_ent(fn__parse_tree__prog_data__default_memo_table_attributes_0_0,
		transform_hlds__table_gen__add_proc_table_struct_5_0_i6);
MR_def_label(transform_hlds__table_gen__add_proc_table_struct_5_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r3 = MR_sv(1);
	MR_r5 = MR_sv(3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info);
	}
	MR_np_call_localret_ent(map__det_insert_4_0,
		transform_hlds__table_gen__add_proc_table_struct_5_0_i9);
MR_def_label(transform_hlds__table_gen__add_proc_table_struct_5_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(1, MR_r1, 0);
	MR_r3 = MR_sv(1);
	MR_r5 = MR_sv(3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_module, table_struct_info);
	}
	MR_np_call_localret_ent(map__det_insert_4_0,
		transform_hlds__table_gen__add_proc_table_struct_5_0_i9);
MR_def_label(transform_hlds__table_gen__add_proc_table_struct_5_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(hlds__hlds_module__module_info_set_table_struct_map_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_pred__proc_info_set_headvars_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_argmodes_3_0);
MR_decl_entry(fn__parse_tree__prog_mode__ground_inst_0_0);
MR_decl_entry(fn__hlds__hlds_goal__goal_info_get_determinism_1_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_goal_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_maybe_special_return_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_eval_method_3_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_procedures_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_proc_id_0;
MR_decl_entry(hlds__hlds_pred__pred_info_set_procedures_3_0);
MR_decl_entry(hlds__hlds_module__module_info_get_preds_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_pred_id_0;
MR_decl_entry(map__det_update_4_0);
MR_decl_entry(hlds__hlds_module__module_info_set_preds_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module88)
	MR_init_entry1(transform_hlds__table_gen__do_own_stack_create_generator_20_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__do_own_stack_create_generator_20_0);
	MR_init_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0,5,6,8,9,12,13,16,17,18,19)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0,20,23,25,27,28,29,30,31,32,35)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0,36,37,38,40,41,42,43,44,45,46)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0,47,50,52,54,55,64,65,66,68,70)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_create_generator_20_0,72,74,75,78,80,81,82,83,84,85)
	MR_init_label1(transform_hlds__table_gen__do_own_stack_create_generator_20_0,86)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_own_stack_create_generator'/20 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__do_own_stack_create_generator_20_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(26);
	MR_sv(26) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r5;
	MR_sv(4) = MR_r6;
	MR_sv(5) = MR_r7;
	MR_sv(6) = MR_r8;
	MR_sv(7) = MR_r9;
	MR_sv(8) = MR_r10;
	MR_sv(9) = MR_r11;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r12;
	MR_sv(10) = MR_tempr1;
	MR_sv(11) = MR_r13;
	MR_sv(12) = MR_r14;
	MR_sv(13) = MR_r18;
	MR_tempr2 = MR_r17;
	MR_sv(14) = MR_tfield(0, MR_tempr2, 0);
	MR_sv(18) = MR_r3;
	MR_sv(15) = MR_r4;
	MR_sv(19) = MR_r15;
	MR_sv(20) = MR_r16;
	MR_sv(21) = MR_tempr2;
	MR_sv(23) = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_sv(24) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(25) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(25);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,11);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i5);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(15);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_headvars_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i6);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,12);
	MR_r4 = MR_sv(10);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i8);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(15);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_argmodes_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i9);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(9,0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1770__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(14);
	MR_sv(22) = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,7,5);
	MR_r4 = MR_sv(9);
	}
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i12);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__ground_inst_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i13);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(15);
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i16);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(" = MR_mmos_new_generator;\n", 26);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i17);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\t", 2);
	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__table_gen__do_own_stack_create_generator_20_0_i18);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i19);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i20);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_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(17);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(17), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(17), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_type_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i23);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_sv(17);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(17) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i25);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(17);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tempr2 = MR_sv(7);
	MR_sv(7) = MR_r1;
	MR_tempr3 = MR_sv(16);
	MR_sv(16) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_r2 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i27);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(15);
	MR_sv(15) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i28);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mmos_pickup_inputs", 24);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(16);
	MR_r5 = MR_sv(8);
	MR_r6 = MR_sv(15);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i29);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(list__length_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i30);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(3);
	MR_r7 = MR_sv(4);
	MR_r8 = MR_sv(20);
	MR_r9 = MR_sv(19);
	MR_r10 = MR_sv(21);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_own_stack_save_return_goal_15_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i31);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(8) = MR_r5;
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_r2;
	MR_sv(19) = MR_r3;
	MR_r1 = MR_sv(22);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i32);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_r1;
	MR_tfield(1, MR_r2, 1) = MR_sv(8);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_sv(15) = MR_tempr1;
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r2;
	MR_sv(8) = MR_tfield(0, MR_r1, 1);
	MR_r1 = MR_sv(8);
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_determinism_1_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i35);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(11);
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(24);
	MR_r2 = MR_sv(25);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i36);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(12);
	MR_r3 = MR_sv(11);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_6_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i37);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 8;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_add_feature_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i38);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(12) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(15);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_sv(11) = MR_r1;
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i40);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i41);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i42);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i43);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_mmos_completion(", 23);
	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__table_gen__do_own_stack_create_generator_20_0_i44);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\t", 2);
	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__table_gen__do_own_stack_create_generator_20_0_i45);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i46);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(20) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i47);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(20);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(20), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(20), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_type_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i50);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(5);
	MR_tfield(0, MR_r2, 1) = MR_sv(20);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(5) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i52);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(20) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(5) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i54);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mmos_completion", 21);
	MR_r2 = (MR_Integer) 7;
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(20);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(15);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i55);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,55)
	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_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(12);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(0, MR_tempr2, 1) = MR_sv(11);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_tempr2;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = MR_sv(8);
	MR_r2 = MR_sv(22);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_goal_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i64);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(17);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_vartypes_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i65);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_varset_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i66);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_sv(4) = (MR_Word) MR_CTOR0_ADDR(transform_hlds__table_gen, var_mode_method);
	MR_r1 = MR_sv(23);
	MR_r2 = MR_sv(4);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,13);
	MR_r4 = MR_sv(9);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i68);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(23);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(transform_hlds__table_gen, var_mode_method);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,14);
	MR_r4 = MR_sv(10);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i70);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r5, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r5, 0) = MR_sv(3);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(13);
	MR_r6 = MR_sv(4);
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i72);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(14);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__add_proc_table_struct_5_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i74);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__returning_generator_locn_0_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i75);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = MR_sv(6);
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_tempr1;
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_maybe_special_return_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i78);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(2,1,2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_eval_method_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i80);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_procedures_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i81);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_info);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(5);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__det_insert_4_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i82);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(18);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_set_procedures_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i83);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_preds_2_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i84);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_info);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__det_update_4_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i85);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_preds_3_0,
		transform_hlds__table_gen__do_own_stack_create_generator_20_0_i86);
MR_def_label(transform_hlds__table_gen__do_own_stack_create_generator_20_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tempr2 = MR_sv(19);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(3);
	MR_decr_sp_and_return(26);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___term__var_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module89)
	MR_init_entry1(transform_hlds__table_gen__keep_only_output_arg_types_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__keep_only_output_arg_types_3_0);
	MR_init_label6(transform_hlds__table_gen__keep_only_output_arg_types_3_0,32,3,5,7,9,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'keep_only_output_arg_types'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__keep_only_output_arg_types_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__table_gen__keep_only_output_arg_types_3_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__keep_only_output_arg_types_3_0_i3);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__keep_only_output_arg_types_3_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__keep_only_output_arg_types_3_0_i5);
	}
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__keep_only_output_arg_types_3_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_sv(1) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 1);
	MR_sv(3) = MR_tfield(1, MR_r2, 1);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tfield(1, MR_sv(1), 0), 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		transform_hlds__table_gen__keep_only_output_arg_types_3_0_i7);
MR_def_label(transform_hlds__table_gen__keep_only_output_arg_types_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__keep_only_output_arg_types_3_0_i6);
	}
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(3);
	MR_np_localcall_lab(transform_hlds__table_gen__keep_only_output_arg_types_3_0,
		transform_hlds__table_gen__keep_only_output_arg_types_3_0_i9);
MR_def_label(transform_hlds__table_gen__keep_only_output_arg_types_3_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(2);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(5);
MR_def_label(transform_hlds__table_gen__keep_only_output_arg_types_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(5);
	MR_GOTO_LAB(transform_hlds__table_gen__keep_only_output_arg_types_3_0_i32);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(hlds__hlds_pred__pred_info_get_goal_type_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_constraint_proofs_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_constraint_map_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_origin_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_clauses_info_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_get_var_name_remap_2_0);
MR_decl_entry(assoc_list__from_corresponding_lists_3_0);
MR_decl_entry(hlds__hlds_pred__markers_to_marker_list_2_0);
extern const MR_TypeCtorInfo_Struct mercury_data_hlds__hlds_pred__type_ctor_info_marker_0;
MR_decl_entry(hlds__hlds_pred__marker_list_to_markers_2_0);
MR_decl_entry(hlds__hlds_pred__pred_info_init_18_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module90)
	MR_init_entry1(transform_hlds__table_gen__clone_pred_info_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__clone_pred_info_7_0);
	MR_init_label10(transform_hlds__table_gen__clone_pred_info_7_0,2,3,4,5,6,7,8,9,10,11)
	MR_init_label10(transform_hlds__table_gen__clone_pred_info_7_0,12,13,14,15,16,17,20,21,22,23)
	MR_init_label6(transform_hlds__table_gen__clone_pred_info_7_0,25,26,28,29,30,31)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'clone_pred_info'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__clone_pred_info_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(19);
	MR_sv(19) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(18) = MR_r5;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_module_1_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i2);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i3);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_is_pred_or_func_1_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i4);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_context_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i5);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_goal_type_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i6);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_markers_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i7);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_arg_types_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i8);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_typevarset_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i9);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_exist_quant_tvars_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i10);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_class_context_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i11);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_constraint_proofs_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i12);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_constraint_map_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i13);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_origin_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i14);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_clauses_info_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i15);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(2);
	MR_sv(2) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_var_name_remap_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i16);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("GeneratorFor_", 13);
	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__table_gen__clone_pred_info_7_0_i17);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(5);
	MR_tfield(1, MR_tempr1, 1) = MR_r1;
	MR_tempr2 = MR_sv(3);
	MR_sv(3) = MR_tempr1;
	MR_tempr3 = MR_sv(11);
	MR_sv(11) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	}
	MR_np_call_localret_ent(assoc_list__from_corresponding_lists_3_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i20);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(transform_hlds__table_gen__keep_only_output_arg_types_3_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i21);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(fn__list__length_1_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i22);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_sv(10) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_pred__markers_to_marker_list_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i23);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,23)
	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, marker);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,4,15);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(list__filter_3_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i25);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(hlds__hlds_pred__marker_list_to_markers_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i26);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 2, (MR_Integer) 3);
	MR_r6 = MR_tempr1;
	MR_tfield(2, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 1);
	MR_tfield(2, MR_tempr1, 1) = MR_sv(17);
	MR_tfield(2, MR_tempr1, 2) = MR_sv(1);
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(8);
	MR_r7 = (MR_Word) MR_tbmkword(0, 8);
	MR_r8 = MR_sv(9);
	MR_r9 = MR_tempr2;
	MR_r10 = MR_sv(4);
	MR_r11 = MR_sv(12);
	MR_r12 = MR_sv(13);
	MR_r13 = MR_sv(14);
	MR_r14 = MR_sv(15);
	MR_r15 = MR_sv(16);
	MR_r16 = MR_sv(2);
	MR_r17 = MR_sv(6);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_init_18_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i28);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_sv(18), 0);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_predicate_table_2_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i29);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,29)
	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__pred_table__predicate_table_insert_4_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i30);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_r2 = MR_sv(2);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_predicate_table_3_0,
		transform_hlds__table_gen__clone_pred_info_7_0_i31);
MR_def_label(transform_hlds__table_gen__clone_pred_info_7_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(18);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_tempr1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_tempr1, 2);
	MR_r1 = MR_sv(1);
	MR_decr_sp_and_return(19);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module91)
	MR_init_entry1(fn__transform_hlds__table_gen__consumer_type_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__consumer_type_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__consumer_type_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'consumer_type'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__consumer_type_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		fn__transform_hlds__table_gen__consumer_type_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__consumer_type_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_consumer", 11);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__construct_type_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__table_gen_module92)
	MR_init_entry1(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__make_generator_c_attributes_0_0);
	MR_init_label1(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'make_generator_c_attributes'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	MR_r1 = (MR_Integer) 0;
	MR_np_call_localret_ent(fn__parse_tree__prog_data__default_attributes_1_0,
		fn__transform_hlds__table_gen__make_generator_c_attributes_0_0_i2);
MR_def_label(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Integer) 0;
	MR_r2 = MR_tempr1;
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_data__set_may_call_mercury_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__table_gen_module93)
	MR_init_entry1(fn__transform_hlds__table_gen__consumer_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__consumer_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'consumer_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__consumer_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("consumer", 8);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module94)
	MR_init_entry1(fn__transform_hlds__table_gen__generator_pred_name_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__generator_pred_name_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'generator_pred_name'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__generator_pred_name_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("generator_pred", 14);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__search_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module95)
	MR_init_entry1(transform_hlds__table_gen__do_own_stack_transform_21_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__do_own_stack_transform_21_0);
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,2,4,3,7,8,11,12,13,15,16)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,17,18,19,21,23,24,26,27,28,29)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,30,31,32,36,39,41,42,43,44,45)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,46,47,48,49,50,51,52,53,54,55)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,56,57,58,59,60,61,62,63,64,65)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,66,67,68,69,70,71,72,73,74,75)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,76,77,78,79,80,81,82,83,84,85)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,86,87,88,89,90,91,92,93,94,98)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,99,100,103,104,105,106,110,116,117,118)
	MR_init_label10(transform_hlds__table_gen__do_own_stack_transform_21_0,119,120,121,122,125,127,129,130,133,135)
	MR_init_label3(transform_hlds__table_gen__do_own_stack_transform_21_0,137,138,139)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'do_own_stack_transform'/21 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__do_own_stack_transform_21_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(40);
	MR_sv(40) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(9) = MR_r9;
	MR_sv(10) = MR_r10;
	MR_sv(15) = MR_r11;
	MR_sv(16) = MR_r12;
	MR_sv(12) = MR_r13;
	MR_sv(13) = MR_r14;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_name_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i2);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = MR_r1;
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(4);
	MR_np_call_localret_ent(map__search_3_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i4);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__do_own_stack_transform_21_0_i3);
	}
	MR_r3 = MR_sv(8);
	MR_sv(4) = MR_r2;
	MR_sv(28) = MR_sv(13);
	MR_sv(18) = MR_sv(12);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i11);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_sv(10);
	MR_r5 = MR_sv(12);
	MR_np_call_localret_ent(transform_hlds__table_gen__clone_pred_info_7_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i7);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(4);
	MR_sv(4) = MR_r1;
	MR_sv(18) = MR_r2;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = MR_r1;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(13);
	}
	MR_np_call_localret_ent(map__det_insert_4_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i8);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(8);
	MR_sv(28) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i11);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_sv(2) = MR_tfield(0, MR_sv(2), 1);
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i12);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i13);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_sv(20) = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(9);
	MR_np_call_localret_ent(list__length_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i15);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_sv(14) = MR_tfield(0, MR_sv(18), 0);
	MR_np_call_localret_ent(fn__parse_tree__builtin_lib_types__c_pointer_type_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i16);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(15);
	MR_sv(15) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("GeneratorPredVar", 16);
	MR_r2 = MR_sv(15);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(16);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i17);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r3;
	MR_sv(2) = MR_r1;
	MR_sv(17) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__consumer_type_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i18);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("Consumer", 8);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(17);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i19);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(5);
	MR_sv(17) = MR_r3;
	MR_sv(2) = MR_r1;
	MR_sv(19) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_pred__shroud_pred_proc_id_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i21);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_r2, 0) = (MR_Integer) 0;
	MR_tfield(3, MR_r2, 1) = MR_r1;
	MR_r1 = MR_sv(16);
	MR_np_call_localret_ent(hlds__hlds_goal__make_const_construction_3_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i23);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(18);
	MR_sv(18) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(12);
	MR_r6 = MR_sv(2);
	MR_r7 = MR_sv(19);
	MR_r8 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_call_table_lookup_goals_19_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i24);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r4;
	MR_sv(19) = MR_r7;
	MR_sv(20) = MR_r8;
	MR_sv(21) = MR_r9;
	MR_sv(22) = MR_r10;
	MR_sv(29) = MR_r1;
	MR_sv(30) = MR_r2;
	MR_sv(31) = MR_r3;
	MR_sv(23) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(23);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,16);
	MR_r4 = MR_sv(9);
	MR_np_call_localret_ent(fn__list__map_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i26);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r2 = MR_sv(23);
	MR_r3 = MR_sv(20);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(assoc_list__from_corresponding_lists_3_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i27);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(14);
	MR_r3 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_save_input_vars_code_6_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i28);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(23) = MR_r1;
	MR_sv(24) = MR_r2;
	MR_sv(25) = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_pred_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i29);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(26) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__consumer_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i30);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(27) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_pred_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i31);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(32) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i32);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_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(32);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(16);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tfield(0, MR_r2, 2) = MR_sv(15);
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(15) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__out_mode_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i36);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,36)
	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(27);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(27), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(27), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__consumer_type_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i39);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(17);
	MR_tfield(0, MR_r2, 1) = MR_sv(27);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(27) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i41);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(32) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__next_table_node_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i42);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(33) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i43);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(22);
	MR_sv(22) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n\n", 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__table_gen__do_own_stack_transform_21_0_i44);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(22);
	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__table_gen__do_own_stack_transform_21_0_i45);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_GeneratorPtr ", 17);
	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__table_gen__do_own_stack_transform_21_0_i46);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__do_own_stack_transform_21_0_i47);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(33);
	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__table_gen__do_own_stack_transform_21_0_i48);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__do_own_stack_transform_21_0_i49);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__do_own_stack_transform_21_0_i50);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(32);
	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__table_gen__do_own_stack_transform_21_0_i51);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_TrieNode ", 13);
	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__table_gen__do_own_stack_transform_21_0_i52);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(22) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i53);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(32) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i54);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(33) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i55);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(34) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i56);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(35) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i57);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(13);
	MR_sv(13) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i58);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(36) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i59);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(37) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__consumer_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i60);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(38) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__generator_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i61);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(39) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = (MR_Word) MR_string_const("\");\n", 4);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i62);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", \"", 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__table_gen__do_own_stack_transform_21_0_i63);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(39);
	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__table_gen__do_own_stack_transform_21_0_i64);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_table_mmos_setup_consumer(", 29);
	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__table_gen__do_own_stack_transform_21_0_i65);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = ", 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__table_gen__do_own_stack_transform_21_0_i66);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(38);
	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__table_gen__do_own_stack_transform_21_0_i67);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i68);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t}\n", 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__table_gen__do_own_stack_transform_21_0_i69);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(";\n", 2);
	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__table_gen__do_own_stack_transform_21_0_i70);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(37);
	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__table_gen__do_own_stack_transform_21_0_i71);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\tMR_mmos_new_generator = ", 26);
	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__table_gen__do_own_stack_transform_21_0_i72);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\");\n", 4);
	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__table_gen__do_own_stack_transform_21_0_i73);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i74);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\"", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i75);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,75)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i76);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(26);
	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__table_gen__do_own_stack_transform_21_0_i77);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i78);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(36);
	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__table_gen__do_own_stack_transform_21_0_i79);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,79)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(",\n\t\t\t", 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__table_gen__do_own_stack_transform_21_0_i80);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(13);
	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__table_gen__do_own_stack_transform_21_0_i81);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = MR_table_mmos_setup_generator(", 33);
	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__table_gen__do_own_stack_transform_21_0_i82);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(35);
	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__table_gen__do_own_stack_transform_21_0_i83);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,83)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t\t", 2);
	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__table_gen__do_own_stack_transform_21_0_i84);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,84)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(24);
	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__table_gen__do_own_stack_transform_21_0_i85);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" == NULL) {\n", 12);
	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__table_gen__do_own_stack_transform_21_0_i86);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,86)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(34);
	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__table_gen__do_own_stack_transform_21_0_i87);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tif (", 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__table_gen__do_own_stack_transform_21_0_i88);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("->MR_generator;\n", 16);
	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__table_gen__do_own_stack_transform_21_0_i89);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(33);
	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__table_gen__do_own_stack_transform_21_0_i90);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(" = ", 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__table_gen__do_own_stack_transform_21_0_i91);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(32);
	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__table_gen__do_own_stack_transform_21_0_i92);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,92)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i93);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__make_generator_c_attributes_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i94);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(27);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_sv(13) = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_sv(19);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tempr1 = MR_sv(11);
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(22);
	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__table_gen__do_own_stack_transform_21_0_i98);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,98)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(17);
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i99);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,99)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mmos_setup_consumer", 25);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(11);
	MR_r4 = MR_sv(13);
	MR_r5 = MR_sv(20);
	MR_r6 = MR_sv(15);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i100);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,100)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(18);
	MR_tfield(1, MR_r2, 1) = MR_sv(21);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i103);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,103)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_type_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i104);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,104)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("AnswerBlock", 11);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(29);
	MR_r4 = MR_sv(30);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_new_table_var_7_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i105);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,105)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__do_own_stack_transform_21_0_i106);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(19) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(17);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(17) = MR_r1;
	MR_r1 = MR_tempr3;
	MR_sv(15) = (MR_Word) MR_string_const("table_mmos_consume_next_answer_multi", 36);
	MR_sv(18) = MR_r2;
	MR_GOTO_LAB(transform_hlds__table_gen__do_own_stack_transform_21_0_i116);
	}
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,106)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),3)) {
		MR_GOTO_LAB(transform_hlds__table_gen__do_own_stack_transform_21_0_i110);
	}
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_tfield(1, MR_tempr1, 0) = MR_tempr3;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(19) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(17);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_sv(17) = MR_r1;
	MR_r1 = MR_tempr3;
	MR_sv(15) = (MR_Word) MR_string_const("table_mmos_consume_next_answer_nondet", 37);
	MR_sv(18) = MR_r2;
	MR_GOTO_LAB(transform_hlds__table_gen__do_own_stack_transform_21_0_i116);
	}
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,110)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_sv(18) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.do_own_stack_transform\'/21", 62);
	MR_sv(13) = MR_r3;
	MR_r3 = (MR_Word) MR_string_const("invalid determinism", 19);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i116);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,116)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_var_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i117);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,117)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(15);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(19);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(14);
	MR_r7 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_call_8_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i118);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,118)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_r1 = MR_sv(31);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i119);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,119)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(17);
	MR_sv(17) = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(17);
	MR_r4 = MR_sv(14);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(18);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i120);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,120)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r3;
	MR_sv(19) = MR_r4;
	MR_sv(20) = MR_r5;
	MR_sv(21) = MR_r1;
	MR_sv(22) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_name_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i121);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,121)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(24) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i122);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,122)
	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(24);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(24), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(24), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__answer_block_type_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i125);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,125)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(13);
	MR_tfield(0, MR_r2, 1) = MR_sv(24);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(13) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_no_dupl_0_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i127);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,127)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(13);
	MR_tfield(1, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(13) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(18);
	MR_sv(18) = MR_r2;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i129);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,129)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_mmos_restore_answers", 26);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(18);
	MR_r5 = MR_sv(19);
	MR_r6 = MR_sv(20);
	MR_r7 = (MR_Integer) 1;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(14);
	MR_r10 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i130);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,130)
	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_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(11);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i133);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,133)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_tempr2;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(12);
	}
	MR_np_call_localret_ent(hlds__hlds_goal__goal_info_init_6_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i135);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,135)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_sv(14);
	MR_r2 = MR_sv(4);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_info_3_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i137);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,137)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(7);
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_init_4_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i138);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,138)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_sv(5);
	MR_r3 = MR_sv(11);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(12);
	MR_r7 = MR_sv(16);
	MR_r8 = MR_sv(17);
	MR_r9 = MR_sv(25);
	MR_r10 = MR_sv(23);
	MR_r11 = MR_sv(9);
	MR_r12 = MR_sv(10);
	MR_r13 = MR_sv(6);
	MR_r14 = MR_sv(8);
	MR_r15 = MR_sv(22);
	MR_r16 = MR_sv(21);
	MR_r17 = MR_tempr1;
	MR_r18 = MR_sv(2);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__do_own_stack_create_generator_20_0,
		transform_hlds__table_gen__do_own_stack_transform_21_0_i139);
MR_def_label(transform_hlds__table_gen__do_own_stack_transform_21_0,139)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_r3 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_r1, 0);
	MR_tempr3 = MR_sv(31);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr3, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_tempr3, 2);
	MR_r1 = MR_sv(21);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(22);
	MR_r4 = MR_sv(28);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(2);
	MR_r7 = MR_tempr2;
	MR_decr_sp_and_return(40);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(check_hlds__mode_util__mode_is_fully_input_2_0);
MR_decl_entry(list__split_last_3_0);
MR_decl_entry(check_hlds__mode_util__mode_is_fully_output_2_0);
MR_decl_entry(require__expect_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module96)
	MR_init_entry1(transform_hlds__table_gen__get_input_output_vars_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__get_input_output_vars_7_0);
	MR_init_label10(transform_hlds__table_gen__get_input_output_vars_7_0,3,11,13,15,20,23,18,29,9,38)
	MR_init_label8(transform_hlds__table_gen__get_input_output_vars_7_0,40,42,47,50,45,55,37,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'get_input_output_vars'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__get_input_output_vars_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i3);
	}
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i8);
	}
	MR_r1 = MR_r4;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i8);
	}
	MR_incr_sp(7);
	MR_sv(7) = (MR_Word) MR_succip;
	MR_sv(6) = MR_tfield(1, MR_r1, 0);
	MR_sv(5) = MR_tfield(1, MR_r1, 1);
	MR_sv(4) = MR_tfield(1, MR_r2, 1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_tfield(1, MR_r2, 0);
	MR_tempr2 = MR_r3;
	MR_sv(1) = MR_tempr2;
	MR_sv(2) = MR_r4;
	MR_sv(3) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(check_hlds__mode_util__mode_is_fully_input_2_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i11);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i9);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_np_localcall_lab(transform_hlds__table_gen__get_input_output_vars_7_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i13);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i15);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(0, MR_r1, 0);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_r2;
	MR_r2 = MR_tempr2;
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_tfield(1, MR_r1, 1);
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,8);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(list__split_last_3_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i20);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i18);
	}
	if (MR_LTAGS_TEST(MR_r3,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i23);
	}
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_r2;
	MR_tfield(1, MR_r1, 1) = MR_sv(4);
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = MR_tfield(1, MR_r3, 0);
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr1;
	MR_tfield(1, MR_r2, 1) = MR_sv(2);
	MR_r3 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.get_input_output_vars\'/7", 60);
	MR_r3 = (MR_Word) MR_string_const("bad method for input var", 24);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(4),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i29);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 1;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr1;
	MR_tfield(1, MR_r2, 1) = MR_sv(2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r3 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_tempr1;
	MR_tfield(1, MR_r2, 1) = MR_sv(2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r3 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(1);
	MR_tempr2 = MR_sv(2);
	MR_tempr3 = MR_sv(3);
	MR_r1 = MR_tempr1;
	MR_r2 = MR_tempr3;
	}
	MR_np_call_localret_ent(check_hlds__mode_util__mode_is_fully_output_2_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i38);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i37);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_np_localcall_lab(transform_hlds__table_gen__get_input_output_vars_7_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i40);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i42);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_r3;
	MR_r3 = MR_tempr2;
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_tfield(1, MR_r1, 1);
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,8);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(list__split_last_3_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i47);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i45);
	}
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(0,21);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__IntroducedFrom__pred__get_input_output_vars__3317__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r1, 4) = MR_r3;
	MR_sv(4) = MR_r2;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.get_input_output_vars\'/7", 60);
	MR_r3 = (MR_Word) MR_string_const("bad method for output var", 25);
	MR_np_call_localret_ent(require__expect_3_0,
		transform_hlds__table_gen__get_input_output_vars_7_0_i50);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = MR_sv(4);
	MR_tfield(1, MR_r1, 1) = MR_sv(5);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(5),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__get_input_output_vars_7_0_i55);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_sv(2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_r2 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = MR_sv(2);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r2 = MR_sv(1);
	MR_decr_sp_and_return(7);
	}
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.get_input_output_vars\'/7", 60);
	MR_r3 = (MR_Word) MR_string_const("bad var", 7);
	MR_succip_word = MR_sv(7);
	MR_decr_sp(7);
	MR_np_tailcall_ent(require__unexpected_3_0);
MR_def_label(transform_hlds__table_gen__get_input_output_vars_7_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.get_input_output_vars\'/7", 60);
	MR_r3 = (MR_Word) MR_string_const("lists not same length", 21);
	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(hlds__hlds_pred__proc_info_interface_determinism_2_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_call_table_tip_3_0);
MR_decl_entry(hlds__hlds_pred__proc_info_set_maybe_proc_table_io_info_3_0);
MR_decl_entry(check_hlds__mode_util__recompute_instmap_delta_proc_5_0);
MR_decl_entry(check_hlds__purity__repuritycheck_proc_4_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module97)
	MR_init_entry1(transform_hlds__table_gen__table_gen_transform_proc_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_transform_proc_11_0);
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,2,3,4,5,6,7,8,9,10,13)
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,12,11,17,19,16,24,25,26,27,28)
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,23,32,33,34,37,36,39,35,40,31)
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,44,47,48,49,50,52,55,54,57,60)
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,56,15,65,67,68,69,70,71,73,74)
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,63,14,76,77,78,79,80,107,82,81)
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_11_0,85,87,88,89,90,91,93,94,95,96)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_transform_proc'/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__table_gen__table_gen_transform_proc_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(18);
	MR_sv(18) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r4;
	MR_sv(14) = MR_tempr1;
	MR_tempr2 = MR_r5;
	MR_sv(15) = MR_tempr2;
	MR_tempr3 = MR_r6;
	MR_sv(16) = MR_tempr3;
	MR_sv(17) = MR_r7;
	MR_r1 = MR_tempr3;
	MR_r2 = MR_tempr2;
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_init_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i2);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_interface_determinism_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i3);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(hlds__code_model__determinism_to_code_model_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i4);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_headvars_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i5);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_varset_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i6);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_vartypes_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i7);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i8);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(10) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_argmodes_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i9);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(14);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_table_attributes_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i10);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i12);
	}
	MR_sv(12) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_data__default_memo_table_attributes_0_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i13);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r5 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(11);
	MR_r4 = MR_r5;
	MR_r3 = MR_sv(16);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i11);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(11);
	MR_r4 = MR_tfield(1, MR_sv(12), 0);
	MR_r3 = MR_sv(16);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(((((MR_Integer) MR_sv(1) == (MR_Integer) MR_tbmkword(0, 1)) || ((MR_Integer) MR_sv(1) == (MR_Integer) MR_tbmkword(0, 2))) || (MR_tag(MR_sv(1)) == MR_mktag((MR_Integer) 2))))) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i15);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r4;
	MR_r5 = MR_tfield(0, MR_tempr2, 0);
	if (MR_LTAGS_TESTR(MR_r5,0,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i17);
	}
	MR_tempr1 = MR_tempr2;
	MR_r6 = MR_tempr1;
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,1,0);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 2);
	MR_r5 = MR_tfield(0, MR_tempr1, 1);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i16);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r5,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i19);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r4;
	MR_r6 = MR_tempr1;
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_sv(13) = MR_tfield(0, MR_tempr1, 2);
	MR_r5 = MR_tfield(0, MR_tempr1, 1);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i16);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tempr3 = MR_r5;
	MR_tfield(1, MR_tempr1, 0) = MR_tfield(1, MR_tempr3, 0);
	MR_tfield(1, MR_tempr1, 1) = MR_tfield(1, MR_tempr3, 1);
	MR_tempr2 = MR_r4;
	MR_r4 = MR_tempr1;
	MR_sv(13) = MR_tfield(0, MR_tempr2, 2);
	MR_r5 = MR_tfield(0, MR_tempr2, 1);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i23);
	}
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(transform_hlds__table_gen__get_input_output_vars_7_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i24);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(6) = MR_r3;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i25);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i26);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(11);
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_new_loop_goal_17_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i27);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_tempr3 = MR_r3;
	MR_sv(5) = MR_tempr3;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r4;
	MR_r1 = MR_tempr3;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_r6;
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i28);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 1);
	MR_tfield(1, MR_r2, 0) = MR_sv(7);
	MR_tag_alloc_heap(MR_sv(8), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(8), 0) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = MR_r2;
	MR_sv(9) = MR_sv(17);
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_extract_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i76);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(1),0,2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i31);
	}
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(transform_hlds__table_gen__get_input_output_vars_7_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i32);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(11) = MR_r3;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i33);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(11);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i34);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(6),2)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i36);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(12);
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(4);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i37);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_r12 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r7;
	MR_sv(4) = MR_r2;
	MR_r2 = MR_sv(2);
	MR_r8 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_r9 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r8;
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r4;
	MR_r4 = MR_r6;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_r9;
	MR_r7 = MR_sv(11);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i35);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(12);
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(4);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i39);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(4) = MR_r2;
	MR_r2 = MR_sv(2);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r3;
	MR_r3 = MR_sv(3);
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r4;
	MR_r4 = MR_r6;
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_tempr2;
	MR_r7 = MR_sv(11);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i40);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tag_alloc_heap(MR_sv(8), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(8), 0) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = MR_tempr1;
	MR_sv(9) = MR_sv(17);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_extract_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i76);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,31)
	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(0,22);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__428__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_r5;
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r4;
	MR_sv(16) = MR_r3;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_transform_proc\'/11", 64);
	MR_r3 = (MR_Word) MR_string_const("eval_minimal with size limit", 28);
	}
	MR_np_call_localret_ent(require__expect_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i44);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_r1, 0) = (MR_Word) MR_COMMON(0,23);
	MR_tfield(0, MR_r1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__430__1_2_0);
	MR_tfield(0, MR_r1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_r1, 3) = MR_sv(12);
	MR_tfield(0, MR_r1, 4) = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_transform_proc\'/11", 64);
	MR_r3 = (MR_Word) MR_string_const("eval_minimal without all_strict", 31);
	MR_np_call_localret_ent(require__expect_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i47);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,47)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(16);
	MR_r4 = MR_sv(12);
	MR_np_call_localret_ent(transform_hlds__table_gen__get_input_output_vars_7_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i48);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r2;
	MR_sv(12) = MR_r3;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i49);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_r1 = MR_sv(12);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i50);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,50)
	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(0,24);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__493__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(6);
	MR_tfield(0, MR_tempr1, 4) = (MR_Integer) 2;
	MR_sv(1) = MR_tfield(2, MR_sv(1), 0);
	MR_sv(6) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_transform_proc\'/11", 64);
	MR_r3 = (MR_Word) MR_string_const("table_gen_transform_proc: minimal model but not model_non", 57);
	}
	MR_np_call_localret_ent(require__expect_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i52);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i54);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(15);
	MR_r7 = MR_sv(14);
	MR_r8 = MR_sv(7);
	MR_r9 = MR_sv(16);
	MR_r10 = MR_sv(6);
	MR_r11 = MR_sv(8);
	MR_r12 = MR_sv(9);
	MR_r13 = MR_sv(4);
	MR_r14 = MR_sv(17);
	MR_np_call_localret_ent(transform_hlds__table_gen__do_own_stack_transform_21_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i55);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,55)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_r1 = MR_r3;
	MR_sv(6) = MR_r5;
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(8) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(9) = MR_r4;
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_extract_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i76);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,54)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(1),0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i56);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(13);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(16);
	MR_r8 = MR_sv(6);
	MR_r9 = MR_sv(8);
	MR_r10 = MR_sv(9);
	MR_r11 = MR_sv(4);
	MR_np_call_localret_ent(transform_hlds__table_gen__create_new_mm_goal_18_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i57);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(7), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(7), 0) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r7;
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_tempr2 = MR_r3;
	MR_sv(5) = MR_tempr2;
	MR_sv(6) = MR_r5;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_r6;
	MR_r5 = MR_tempr1;
	MR_r6 = MR_sv(11);
	MR_r7 = MR_sv(12);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_gen_proc_table_info_8_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i60);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_sv(8), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(8), 0) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_sv(5) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(9) = MR_sv(17);
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_extract_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i76);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_transform_proc\'/11", 64);
	MR_r3 = (MR_Word) MR_string_const("own stacks generator", 20);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i14);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i63);
	}
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 5);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_COMMON(0,25);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_ENTRY_AP(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__397__1_2_0);
	MR_tfield(0, MR_tempr1, 2) = (MR_Integer) 2;
	MR_tfield(0, MR_tempr1, 3) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 4) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(7) = MR_r1;
	MR_sv(11) = MR_r2;
	MR_sv(16) = MR_r3;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_transform_proc\'/11", 64);
	MR_r3 = (MR_Word) MR_string_const("eval_table_io and Attributes", 28);
	}
	MR_np_call_localret_ent(require__expect_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i65);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(16);
	MR_r4 = (MR_Word) MR_TAG_COMMON(0,1,1);
	MR_np_call_localret_ent(transform_hlds__table_gen__get_input_output_vars_7_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i67);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,67)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r3;
	MR_r1 = MR_r2;
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i68);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 0;
	MR_np_call_localret_ent(transform_hlds__table_gen__allocate_slot_numbers_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i69);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_r2, 0);
	MR_sv(5) = MR_tfield(1, MR_r2, 1);
	MR_sv(13) = MR_r1;
	MR_r1 = MR_sv(16);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i70);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 116;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i71);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_mode);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(11);
	MR_np_call_localret_ent(assoc_list__from_corresponding_lists_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i73);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(10);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_tempr1;
	MR_r8 = MR_sv(12);
	MR_r9 = MR_sv(13);
	MR_r10 = MR_sv(8);
	MR_r11 = MR_sv(9);
	MR_r12 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__create_new_io_goal_17_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i74);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_r1 = MR_r3;
	MR_sv(6) = MR_r4;
	MR_sv(5) = MR_r5;
	MR_sv(7) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(8) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(9) = MR_sv(17);
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_extract_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i76);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_transform_proc\'/11", 64);
	MR_r3 = (MR_Word) MR_string_const("eval_normal", 11);
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i14);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(transform_hlds__table_gen__table_info_extract_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i76);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(6);
	MR_sv(6) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_r3;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_goal_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i77);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,77)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_varset_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i78);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_vartypes_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i79);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,79)
	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_np_call_localret_ent(hlds__hlds_pred__proc_info_set_call_table_tip_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i80);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(5),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i82);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,107)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_sv(6);
	MR_r2 = MR_r1;
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i81);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,82)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_maybe_proc_table_io_info_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i107);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,81)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_sv(8),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_11_0_i85);
	}
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(check_hlds__mode_util__recompute_instmap_delta_proc_5_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i88);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,85)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_sv(2);
	MR_tfield(0, MR_r1, 1) = MR_sv(3);
	MR_sv(1) = MR_r2;
	MR_r2 = MR_tfield(1, MR_sv(8), 0);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__add_proc_table_struct_5_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i87);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_r3 = MR_r1;
	MR_r1 = (MR_Integer) 1;
	MR_np_call_localret_ent(check_hlds__mode_util__recompute_instmap_delta_proc_5_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i88);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_sv(4) = MR_r2;
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_procedures_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i89);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_info);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__det_update_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i90);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,90)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_set_procedures_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i91);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,91)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_sv(3);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(check_hlds__purity__repuritycheck_proc_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i93);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_preds_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i94);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_info);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__det_update_4_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i95);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,95)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_preds_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_11_0_i96);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_11_0,96)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(9);
	MR_decr_sp_and_return(18);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(libs__globals__current_grade_supports_tabling_2_0);
MR_decl_entry(fn__hlds__hlds_error_util__describe_one_proc_name_3_0);
MR_decl_entry(fn__parse_tree__prog_out__eval_method_to_string_1_0);
extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__error_util__type_ctor_info_format_component_0;
MR_decl_entry(hlds__hlds_module__module_info_set_pred_proc_info_6_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module98)
	MR_init_entry1(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0);
	MR_init_label10(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,2,3,6,8,9,19,20,27,28,5)
	MR_init_label1(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_transform_proc_if_possible'/13 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_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(5) = MR_r4;
	MR_sv(6) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(7) = MR_tempr1;
	MR_sv(8) = MR_r7;
	MR_sv(9) = MR_r8;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i2);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(libs__globals__current_grade_supports_tabling_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i3);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i5);
	}
	MR_r1 = MR_sv(6);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_context_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i6);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	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(2);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(3);
	MR_sv(4) = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = (MR_Integer) 0;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i8);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_out__eval_method_to_string_1_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i9);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 1);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_TAG_COMMON(1,2,12);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = (MR_Word) MR_TAG_COMMON(3,11,0);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr2;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,2,14);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i19);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i20);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(4);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 2);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 13);
	MR_tfield(0, MR_tempr1, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_sv(4) = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_sv(9);
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_r2 = MR_sv(5);
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_eval_method_3_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i27);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(7);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_set_pred_proc_info_6_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i28);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(6);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(4);
	MR_decr_sp_and_return(10);
	}
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,5)
	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_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
	MR_r7 = MR_sv(8);
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_transform_proc_11_0,
		transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0_i29);
MR_def_label(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r5 = MR_sv(9);
	MR_decr_sp_and_return(10);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_pred__eval_method_requires_tabling_transform_1_0);
MR_decl_entry(libs__globals__lookup_bool_option_3_1);
MR_decl_entry(hlds__hlds_pred__proc_info_has_io_state_pair_4_0);
MR_decl_entry(fn__hlds__code_model__proc_info_interface_code_model_1_0);
MR_decl_entry(hlds__hlds_pred__pred_id_to_int_2_0);
MR_decl_entry(fn__hlds__hlds_module__predicate_module_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module99)
	MR_init_entry1(transform_hlds__table_gen__table_gen_process_proc_10_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_process_proc_10_0);
	MR_init_label10(transform_hlds__table_gen__table_gen_process_proc_10_0,2,4,3,8,9,11,13,15,16,17)
	MR_init_label10(transform_hlds__table_gen__table_gen_process_proc_10_0,18,19,14,21,22,23,24,25,27,28)
	MR_init_label10(transform_hlds__table_gen__table_gen_process_proc_10_0,30,34,26,43,45,44,48,49,7,51)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_process_proc'/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__table_gen__table_gen_process_proc_10_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_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(3) = MR_tempr1;
	MR_sv(4) = MR_r4;
	MR_sv(9) = MR_r5;
	MR_sv(10) = MR_r6;
	MR_sv(11) = MR_r7;
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_eval_method_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i2);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__hlds_pred__eval_method_requires_tabling_transform_1_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i4);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i3);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(11);
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i49);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(9);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i8);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r2 = (MR_Integer) 114;
	MR_r3 = (MR_Integer) 1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_1,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i9);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i7);
	}
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_has_io_state_pair_4_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i11);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i7);
	}
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(fn__hlds__code_model__proc_info_interface_code_model_1_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i13);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i15);
	}
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 118;
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i14);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_id_to_int_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i16);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__string__int_to_string_1_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i17);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(" not model_det", 14);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i18);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("I/O procedure pred id ", 22);
	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__table_gen__table_gen_process_proc_10_0_i19);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.table_gen_process_proc\'/10", 62);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(require__unexpected_3_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i14);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i21);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(5);
	MR_r2 = (MR_Integer) 117;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i22);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_get_goal_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i23);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(1);
	MR_np_call_localret_ent(fn__hlds__hlds_module__predicate_module_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i24);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__should_io_procedure_be_transformed_6_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i25);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i27);
	}
	MR_sv(6) = MR_r2;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(11);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i26);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r2;
	MR_r1 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_context_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i28);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	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(1);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(2);
	MR_sv(7) = MR_r1;
	MR_r1 = MR_sv(9);
	MR_r2 = (MR_Integer) 1;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_error_util__describe_one_proc_name_3_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i30);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__error_util, format_component);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Word) MR_TAG_COMMON(1,2,15);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i34);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 1);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 13);
	MR_tfield(0, MR_tempr1, 2) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_sv(11);
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	}
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_sv(6),0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i51);
	}
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(5);
	MR_sv(5) = MR_tfield(1, MR_sv(6), 0);
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_r2;
	MR_sv(6) = MR_r3;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Integer) 115;
	}
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i43);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i45);
	}
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Integer) 0;
	MR_tfield(1, MR_r1, 1) = MR_sv(5);
	MR_r2 = MR_sv(3);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_proc_10_0_i44);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r1, 0) = (MR_Integer) 1;
	MR_tfield(1, MR_r1, 1) = MR_sv(5);
	MR_r2 = MR_sv(3);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__proc_info_set_eval_method_3_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i48);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,48)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(1);
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(9);
	MR_r7 = MR_sv(10);
	MR_r8 = MR_sv(6);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_transform_proc_if_possible_13_0,
		transform_hlds__table_gen__table_gen_process_proc_10_0_i49);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_r3;
	MR_r2 = MR_r4;
	MR_r3 = MR_r5;
	MR_decr_sp_and_return(12);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(11);
MR_def_label(transform_hlds__table_gen__table_gen_process_proc_10_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(12);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(map__lookup_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module100)
	MR_init_entry1(transform_hlds__table_gen__table_gen_process_procs_8_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_process_procs_8_0);
	MR_init_label7(transform_hlds__table_gen__table_gen_process_procs_8_0,14,3,4,5,6,7,8)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_process_procs'/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__table_gen__table_gen_process_procs_8_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r2,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_procs_8_0_i3);
	}
	MR_r1 = MR_r3;
	MR_r2 = MR_r4;
	MR_r3 = MR_r5;
	MR_decr_sp_and_return(8);
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r3;
	MR_sv(2) = MR_tempr1;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_sv(5) = MR_tfield(1, MR_r2, 0);
	MR_sv(6) = MR_tfield(1, MR_r2, 1);
	MR_r1 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_preds_2_0,
		transform_hlds__table_gen__table_gen_process_procs_8_0_i4);
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(1);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__table_gen__table_gen_process_procs_8_0_i5);
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(hlds__hlds_pred__pred_info_get_procedures_2_0,
		transform_hlds__table_gen__table_gen_process_procs_8_0_i6);
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_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, proc_id);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, proc_info);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(5);
	}
	MR_np_call_localret_ent(map__lookup_3_0,
		transform_hlds__table_gen__table_gen_process_procs_8_0_i7);
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_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_sv(5);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(3);
	MR_r7 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_process_proc_10_0,
		transform_hlds__table_gen__table_gen_process_procs_8_0_i8);
MR_def_label(transform_hlds__table_gen__table_gen_process_procs_8_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(6);
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr1;
	MR_r4 = MR_tempr2;
	MR_r5 = MR_tempr3;
	MR_succip_word = MR_sv(8);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_procs_8_0_i14);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__hlds__hlds_pred__pred_info_procids_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module101)
	MR_init_entry1(transform_hlds__table_gen__table_gen_process_preds_7_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_process_preds_7_0);
	MR_init_label5(transform_hlds__table_gen__table_gen_process_preds_7_0,12,3,4,5,6)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_process_preds'/7 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__table_gen_process_preds_7_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(6);
	MR_sv(6) = (MR_Word) MR_succip;
MR_def_label(transform_hlds__table_gen__table_gen_process_preds_7_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_preds_7_0_i3);
	}
	MR_r1 = MR_r2;
	MR_r2 = MR_r3;
	MR_r3 = MR_r4;
	MR_decr_sp_and_return(6);
MR_def_label(transform_hlds__table_gen__table_gen_process_preds_7_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_tfield(1, MR_r1, 0);
	MR_sv(5) = MR_tfield(1, MR_r1, 1);
	MR_r1 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_pred_info_3_0,
		transform_hlds__table_gen__table_gen_process_preds_7_0_i4);
MR_def_label(transform_hlds__table_gen__table_gen_process_preds_7_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__hlds__hlds_pred__pred_info_procids_1_0,
		transform_hlds__table_gen__table_gen_process_preds_7_0_i5);
MR_def_label(transform_hlds__table_gen__table_gen_process_preds_7_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(2);
	MR_r5 = MR_sv(3);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_process_procs_8_0,
		transform_hlds__table_gen__table_gen_process_preds_7_0_i6);
MR_def_label(transform_hlds__table_gen__table_gen_process_preds_7_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(5);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr3 = MR_r3;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_succip_word = MR_sv(6);
	MR_GOTO_LAB(transform_hlds__table_gen__table_gen_process_preds_7_0_i12);
	}
#ifdef MR_maybe_local_thread_engine_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__keys_2_0);
MR_decl_entry(map__init_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module102)
	MR_init_entry1(transform_hlds__table_gen__table_gen_process_module_4_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__table_gen_process_module_4_0);
	MR_init_label4(transform_hlds__table_gen__table_gen_process_module_4_0,2,3,4,5)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'table_gen_process_module'/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__table_gen__table_gen_process_module_4_0);
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(4);
	MR_sv(4) = (MR_Word) MR_succip;
	MR_sv(2) = MR_r1;
	MR_sv(3) = MR_r2;
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_preds_2_0,
		transform_hlds__table_gen__table_gen_process_module_4_0_i2);
MR_def_label(transform_hlds__table_gen__table_gen_process_module_4_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_info);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(map__keys_2_0,
		transform_hlds__table_gen__table_gen_process_module_4_0_i3);
MR_def_label(transform_hlds__table_gen__table_gen_process_module_4_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_pred, pred_id);
	MR_r2 = MR_r1;
	MR_np_call_localret_ent(map__init_1_0,
		transform_hlds__table_gen__table_gen_process_module_4_0_i4);
MR_def_label(transform_hlds__table_gen__table_gen_process_module_4_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(3);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_gen_process_preds_7_0,
		transform_hlds__table_gen__table_gen_process_module_4_0_i5);
MR_def_label(transform_hlds__table_gen__table_gen_process_module_4_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_r3;
	MR_decr_sp_and_return(4);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_declare_entry(MR_do_fail);
MR_decl_entry(hlds__goal_util__goal_contains_goal_2_0);
MR_declare_entry(MR_do_redo);
MR_decl_entry(fn__parse_tree__prog_data__get_may_call_mercury_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module103)
	MR_init_entry1(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0);
	MR_init_label2(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0,1,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'subgoal_may_call_mercury_attribute'/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__table_gen__subgoal_may_call_mercury_attribute_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_mkframe("pred transform_hlds.table_gen.subgoal_may_call_mercury_attribute/2-0", 0,
		MR_ENTRY(MR_do_fail));
	MR_np_call_localret_ent(hlds__goal_util__goal_contains_goal_2_0,
		transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0_i1);
MR_def_label(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_r2,3,0)) {
		MR_GOTO(MR_ENTRY(MR_do_redo));
	}
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_np_call_localret_ent(fn__parse_tree__prog_data__get_may_call_mercury_1_0,
		transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0_i3);
MR_def_label(transform_hlds__table_gen__subgoal_may_call_mercury_attribute_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succeed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(fn__parse_tree__prog_data__get_tabled_for_io_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module104)
	MR_init_entry1(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0);
	MR_init_label2(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0,1,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'subgoal_tabled_for_io_attribute'/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__table_gen__subgoal_tabled_for_io_attribute_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_mkframe("pred transform_hlds.table_gen.subgoal_tabled_for_io_attribute/2-0", 0,
		MR_ENTRY(MR_do_fail));
	MR_np_call_localret_ent(hlds__goal_util__goal_contains_goal_2_0,
		transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0_i1);
MR_def_label(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_tfield(0, MR_r1, 0);
	if (MR_RTAGS_TESTR(MR_r2,3,0)) {
		MR_GOTO(MR_ENTRY(MR_do_redo));
	}
	MR_r1 = MR_tfield(3, MR_r2, 1);
	MR_np_call_localret_ent(fn__parse_tree__prog_data__get_tabled_for_io_1_0,
		transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0_i3);
MR_def_label(transform_hlds__table_gen__subgoal_tabled_for_io_attribute_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r1,0)) {
		MR_GOTO(MR_ENTRY(MR_do_redo));
	}
	MR_succeed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module105)
	MR_init_entry1(transform_hlds__table_gen__filter_marker_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__filter_marker_1_0);
	MR_init_label1(transform_hlds__table_gen__filter_marker_1_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'filter_marker'/1 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(transform_hlds__table_gen__filter_marker_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_EQ(MR_r1,20)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,18)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,24)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,23)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,12)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,13)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,21)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,22)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,16)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,14)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	if (MR_INT_EQ(MR_r1,15)) {
		MR_GOTO_LAB(transform_hlds__table_gen__filter_marker_1_0_i2);
	}
	MR_r1 = ((MR_Integer) MR_r1 == (MR_Integer) 17);
	MR_proceed();
MR_def_label(transform_hlds__table_gen__filter_marker_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module106)
	MR_init_entry1(fn__transform_hlds__table_gen__project_out_arg_method_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__project_out_arg_method_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'project_out_arg_method'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__project_out_arg_method_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_r1, 2);
	MR_r1 = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module107)
	MR_init_entry1(fn__transform_hlds__table_gen__project_out_pos_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__project_out_pos_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'project_out_pos'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__project_out_pos_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 1);
	MR_tfield(0, MR_r2, 2) = MR_tfield(0, MR_r1, 3);
	MR_r1 = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module108)
	MR_init_entry1(transform_hlds__table_gen__var_mode_pos_is_io_state_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__var_mode_pos_is_io_state_2_0);
	MR_init_label1(transform_hlds__table_gen__var_mode_pos_is_io_state_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'var_mode_pos_is_io_state'/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__table_gen__var_mode_pos_is_io_state_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__var_mode_pos_is_io_state_2_0_i3);
MR_def_label(transform_hlds__table_gen__var_mode_pos_is_io_state_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__type_is_io_state_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module109)
	MR_init_entry1(transform_hlds__table_gen__var_mode_is_io_state_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__var_mode_is_io_state_2_0);
	MR_init_label1(transform_hlds__table_gen__var_mode_is_io_state_2_0,3)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'var_mode_is_io_state'/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__table_gen__var_mode_is_io_state_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(1);
	MR_sv(1) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		transform_hlds__table_gen__var_mode_is_io_state_2_0_i3);
MR_def_label(transform_hlds__table_gen__var_mode_is_io_state_2_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_succip_word = MR_sv(1);
	MR_decr_sp(1);
	MR_np_tailcall_ent(parse_tree__prog_type__type_is_io_state_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module110)
	MR_init_entry1(__Unify___transform_hlds__table_gen__call_or_answer_table_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__call_or_answer_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_def_static(__Unify___transform_hlds__table_gen__call_or_answer_table_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_r1 == MR_r2);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(private_builtin__builtin_compare_int_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module111)
	MR_init_entry1(__Compare___transform_hlds__table_gen__call_or_answer_table_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__call_or_answer_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_def_static(__Compare___transform_hlds__table_gen__call_or_answer_table_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___tree234__tree234_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module112)
	MR_init_entry1(__Unify___transform_hlds__table_gen__generator_map_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__generator_map_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___transform_hlds__table_gen__generator_map_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_id);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	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__table_gen_module113)
	MR_init_entry1(__Compare___transform_hlds__table_gen__generator_map_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__generator_map_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___transform_hlds__table_gen__generator_map_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_id);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_r1;
	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___list__list_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module114)
	MR_init_entry1(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__maybe_specified_method_0_0);
	MR_init_label4(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0,15,5,9,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0_i15);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_r2;
	MR_sv(2) = MR_tempr2;
	if (MR_PTAG_TESTR(MR_tempr1,0)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_tempr2,0)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0_i1);
	}
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	MR_r1 = (MR_r1 == MR_r2);
	MR_decr_sp(3);
	MR_proceed();
	}
MR_def_label(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0_i1);
	}
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(1, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(1, MR_tempr2, 1);
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,8);
	MR_r2 = MR_tfield(1, MR_tempr1, 0);
	MR_r3 = MR_tfield(1, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___list__list_1_0,
		__Unify___transform_hlds__table_gen__maybe_specified_method_0_0_i9);
MR_def_label(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0_i1);
	}
	MR_r1 = (MR_sv(1) == MR_sv(2));
	MR_decr_sp_and_return(3);
MR_def_label(__Unify___transform_hlds__table_gen__maybe_specified_method_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___list__list_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module115)
	MR_init_entry1(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__maybe_specified_method_0_0);
	MR_init_label7(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,3,2,7,5,10,13,56)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i3);
	}
	MR_incr_sp(3);
	MR_sv(3) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i2);
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(1),0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i5);
	}
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i7);
	}
	MR_r1 = MR_tfield(0, MR_sv(1), 0);
	MR_r2 = MR_tfield(0, MR_sv(2), 0);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 1;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_PTAG_TESTR(MR_sv(2),0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i10);
	}
	MR_r1 = (MR_Integer) 2;
	MR_decr_sp_and_return(3);
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(1);
	MR_tempr1 = MR_tfield(1, MR_tempr5, 1);
	MR_tempr6 = MR_sv(2);
	MR_tempr2 = MR_tfield(1, MR_tempr6, 1);
	MR_tempr3 = MR_tempr5;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr6;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,8);
	MR_r2 = MR_tfield(1, MR_tempr3, 0);
	MR_r3 = MR_tfield(1, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___list__list_1_0,
		__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i13);
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0_i56);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(1);
	MR_succip_word = MR_sv(3);
	MR_decr_sp(3);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___transform_hlds__table_gen__maybe_specified_method_0_0,56)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(3);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___hlds__hlds_module__module_info_0_0);
MR_decl_entry(__Unify___hlds__hlds_pred__pred_info_0_0);
MR_decl_entry(__Unify___hlds__hlds_pred__proc_info_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module116)
	MR_init_entry1(__Unify___transform_hlds__table_gen__table_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__table_info_0_0);
	MR_init_label4(__Unify___transform_hlds__table_gen__table_info_0_0,4,6,10,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___transform_hlds__table_gen__table_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__table_info_0_0_i10);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	MR_r2 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___hlds__hlds_module__module_info_0_0,
		__Unify___transform_hlds__table_gen__table_info_0_0_i4);
MR_def_label(__Unify___transform_hlds__table_gen__table_info_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__table_info_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___hlds__hlds_pred__pred_info_0_0,
		__Unify___transform_hlds__table_gen__table_info_0_0_i6);
MR_def_label(__Unify___transform_hlds__table_gen__table_info_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__table_info_0_0_i1);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Unify___hlds__hlds_pred__proc_info_0_0);
MR_def_label(__Unify___transform_hlds__table_gen__table_info_0_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__table_gen__table_info_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___hlds__hlds_module__module_info_0_0);
MR_decl_entry(__Compare___hlds__hlds_pred__pred_info_0_0);
MR_decl_entry(__Compare___hlds__hlds_pred__proc_info_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module117)
	MR_init_entry1(__Compare___transform_hlds__table_gen__table_info_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__table_info_0_0);
	MR_init_label5(__Compare___transform_hlds__table_gen__table_info_0_0,3,2,5,9,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___transform_hlds__table_gen__table_info_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__table_info_0_0_i3);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___transform_hlds__table_gen__table_info_0_0_i2);
MR_def_label(__Compare___transform_hlds__table_gen__table_info_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___transform_hlds__table_gen__table_info_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr3, 0);
	MR_r2 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___hlds__hlds_module__module_info_0_0,
		__Compare___transform_hlds__table_gen__table_info_0_0_i5);
MR_def_label(__Compare___transform_hlds__table_gen__table_info_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__table_info_0_0_i29);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___hlds__hlds_pred__pred_info_0_0,
		__Compare___transform_hlds__table_gen__table_info_0_0_i9);
MR_def_label(__Compare___transform_hlds__table_gen__table_info_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__table_info_0_0_i29);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(__Compare___hlds__hlds_pred__proc_info_0_0);
MR_def_label(__Compare___transform_hlds__table_gen__table_info_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___parse_tree__prog_data__mer_mode_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module118)
	MR_init_entry1(__Unify___transform_hlds__table_gen__var_mode_method_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__var_mode_method_0_0);
	MR_init_label4(__Unify___transform_hlds__table_gen__var_mode_method_0_0,4,6,8,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___transform_hlds__table_gen__var_mode_method_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_method_0_0_i8);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___transform_hlds__table_gen__var_mode_method_0_0_i4);
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_method_0_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_method_0_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__mer_mode_0_0,
		__Unify___transform_hlds__table_gen__var_mode_method_0_0_i6);
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_method_0_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_method_0_0_i1);
	}
	MR_r1 = (MR_sv(2) == MR_sv(4));
	MR_decr_sp_and_return(5);
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_method_0_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_method_0_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Compare___term__var_1_0);
MR_decl_entry(__Compare___parse_tree__prog_data__mer_mode_0_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module119)
	MR_init_entry1(__Compare___transform_hlds__table_gen__var_mode_method_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__var_mode_method_0_0);
	MR_init_label5(__Compare___transform_hlds__table_gen__var_mode_method_0_0,3,2,5,9,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___transform_hlds__table_gen__var_mode_method_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r1 == MR_r2)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_method_0_0_i3);
	}
	MR_incr_sp(5);
	MR_sv(5) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_method_0_0_i2);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_method_0_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_method_0_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___transform_hlds__table_gen__var_mode_method_0_0_i5);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_method_0_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_method_0_0_i29);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(3);
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__mer_mode_0_0,
		__Compare___transform_hlds__table_gen__var_mode_method_0_0_i9);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_method_0_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_method_0_0_i29);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(4);
	MR_succip_word = MR_sv(5);
	MR_decr_sp(5);
	MR_np_tailcall_ent(private_builtin__builtin_compare_int_3_0);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_method_0_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(5);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module120)
	MR_init_entry1(__Unify___transform_hlds__table_gen__var_mode_pos_method_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__var_mode_pos_method_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___transform_hlds__table_gen__var_mode_pos_method_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module121)
	MR_init_entry1(__Compare___transform_hlds__table_gen__var_mode_pos_method_0_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__var_mode_pos_method_0_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___transform_hlds__table_gen__var_mode_pos_method_0_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_np_tailcall_ent(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(builtin__unify_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module122)
	MR_init_entry1(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Unify___transform_hlds__table_gen__var_mode_pos_method_1_0);
	MR_init_label4(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0,4,6,10,1)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Unify__'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r2 == MR_r3)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0_i10);
	}
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(7) = MR_r1;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tfield(0, MR_tempr1, 1);
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(3) = MR_tfield(0, MR_tempr1, 3);
	MR_sv(4) = MR_tfield(0, MR_tempr2, 1);
	MR_sv(5) = MR_tfield(0, MR_tempr2, 2);
	MR_sv(6) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr1, 0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	}
	MR_np_call_localret_ent(__Unify___term__var_1_0,
		__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0_i4);
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0_i1);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(__Unify___parse_tree__prog_data__mer_mode_0_0,
		__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0_i6);
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (!(MR_r1)) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0_i1);
	}
	if ((MR_sv(2) != MR_sv(5))) {
		MR_GOTO_LAB(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0_i1);
	}
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(6);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(builtin__unify_2_0);
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_TRUE;
	MR_proceed();
MR_def_label(__Unify___transform_hlds__table_gen__var_mode_pos_method_1_0,1)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_FALSE;
	MR_decr_sp_and_return(8);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(builtin__compare_3_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module123)
	MR_init_entry1(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury____Compare___transform_hlds__table_gen__var_mode_pos_method_1_0);
	MR_init_label6(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,3,2,5,9,13,37)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for '__Compare__'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if ((MR_r2 == MR_r3)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i3);
	}
	MR_incr_sp(8);
	MR_sv(8) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(7) = MR_r1;
	MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i2);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Integer) 0;
	MR_proceed();
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr5 = MR_sv(2);
	MR_sv(6) = MR_tfield(0, MR_tempr5, 3);
	MR_sv(5) = MR_tfield(0, MR_tempr5, 2);
	MR_sv(4) = MR_tfield(0, MR_tempr5, 1);
	MR_tempr6 = MR_sv(1);
	MR_sv(3) = MR_tfield(0, MR_tempr6, 3);
	MR_tempr1 = MR_tfield(0, MR_tempr6, 2);
	MR_tempr2 = MR_tfield(0, MR_tempr6, 1);
	MR_tempr3 = MR_tempr6;
	MR_sv(1) = MR_tempr2;
	MR_tempr4 = MR_tempr5;
	MR_sv(2) = MR_tempr1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = MR_tfield(0, MR_tempr3, 0);
	MR_r3 = MR_tfield(0, MR_tempr4, 0);
	}
	MR_np_call_localret_ent(__Compare___term__var_1_0,
		__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i5);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i37);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(4);
	MR_np_call_localret_ent(__Compare___parse_tree__prog_data__mer_mode_0_0,
		__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i9);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i37);
	}
	MR_r1 = MR_sv(2);
	MR_r2 = MR_sv(5);
	MR_np_call_localret_ent(private_builtin__builtin_compare_int_3_0,
		__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i13);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0_i37);
	}
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(6);
	MR_succip_word = MR_sv(8);
	MR_decr_sp(8);
	MR_np_tailcall_ent(builtin__compare_3_0);
MR_def_label(__Compare___transform_hlds__table_gen__var_mode_pos_method_1_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_decr_sp_and_return(8);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(__Unify___maybe__maybe_1_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module124)
	MR_init_entry1(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__428__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__428__1_2_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(transform_hlds__table_gen_module125)
	MR_init_entry1(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__430__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__430__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__table_gen_transform_proc__430__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__table_gen__IntroducedFrom__pred__table_gen_transform_proc__430__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(__Unify___transform_hlds__table_gen__maybe_specified_method_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

extern const MR_TypeCtorInfo_Struct mercury_data_parse_tree__prog_data__type_ctor_info_table_attributes_0;

MR_BEGIN_MODULE(transform_hlds__table_gen_module126)
	MR_init_entry1(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__397__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__397__1_2_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(transform_hlds__table_gen_module127)
	MR_init_entry1(transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__493__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__IntroducedFrom__pred__table_gen_transform_proc__493__1_2_0);
MR_BEGIN_CODE

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


MR_BEGIN_MODULE(transform_hlds__table_gen_module128)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_loop_goal__718__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_loop_goal__718__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__create_new_loop_goal__718__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(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_loop_goal__718__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module129)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_goal__947__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_goal__947__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__create_new_memo_goal__947__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(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_goal__947__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module130)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_non_goal__1109__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_non_goal__1109__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__create_new_memo_non_goal__1109__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(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_memo_non_goal__1109__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module131)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1281__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1281__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__create_new_io_goal__1281__1'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1281__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module132)
	MR_init_entry1(transform_hlds__table_gen__IntroducedFrom__pred__create_new_io_goal__1282__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__IntroducedFrom__pred__create_new_io_goal__1282__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__create_new_io_goal__1282__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__table_gen__IntroducedFrom__pred__create_new_io_goal__1282__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_118_97_114_95_98_101_108_111_110_103_95_116_111_95_108_105_115_116_95_95_91_49_93_95_48_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__table_gen_module133)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1288__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1288__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__create_new_io_goal__1288__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(fn__transform_hlds__table_gen__IntroducedFrom__func__create_new_io_goal__1288__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_112_111_115_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module134)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_transform__1629__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_transform__1629__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__do_own_stack_transform__1629__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(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_transform__1629__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_109_111_100_101_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module135)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1766__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1766__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__do_own_stack_create_generator__1766__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(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1766__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module136)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1768__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1768__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__do_own_stack_create_generator__1768__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(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1768__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_109_111_100_101_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module137)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1770__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1770__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__do_own_stack_create_generator__1770__1'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__transform_hlds__table_gen__IntroducedFrom__func__do_own_stack_create_generator__1770__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_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__table_gen_module138)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_gen_proc_table_info__2007__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__generate_gen_proc_table_info__2007__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__generate_gen_proc_table_info__2007__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(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_gen_proc_table_info__2007__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 2);
	MR_r1 = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module139)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_simple_call_table_lookup_goal__2064__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__generate_simple_call_table_lookup_goal__2064__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__generate_simple_call_table_lookup_goal__2064__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(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_simple_call_table_lookup_goal__2064__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module140)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_call_table_lookup_goal__2122__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_call_table_lookup_goal__2122__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__generate_memo_non_call_table_lookup_goal__2122__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(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_call_table_lookup_goal__2122__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module141)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_call_table_lookup_goal__2179__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_call_table_lookup_goal__2179__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__generate_mm_call_table_lookup_goal__2179__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(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_call_table_lookup_goal__2179__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_tailcall_ent(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module142)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_restore_goal__2966__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_restore_goal__2966__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__generate_memo_non_restore_goal__2966__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(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_memo_non_restore_goal__2966__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module143)
	MR_init_entry1(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_restore_or_suspend_goal__3039__1_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_restore_or_suspend_goal__3039__1_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__func__generate_mm_restore_or_suspend_goal__3039__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(fn__transform_hlds__table_gen__IntroducedFrom__func__generate_mm_restore_or_suspend_goal__3039__1_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module144)
	MR_init_entry1(transform_hlds__table_gen__IntroducedFrom__pred__get_input_output_vars__3317__1_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__transform_hlds__table_gen__IntroducedFrom__pred__get_input_output_vars__3317__1_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'IntroducedFrom__pred__get_input_output_vars__3317__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__table_gen__IntroducedFrom__pred__get_input_output_vars__3317__1_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, arg_tabling_method);
	MR_r3 = MR_tempr1;
	MR_np_tailcall_ent(__Unify___maybe__maybe_1_0);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module145)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0);
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,3,4,5,6,7,9,11,12,15,16)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,17,18,19,21,24,26,28,30,14,37)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,38,39,40,41,43,44,45,46,49,50)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,51,53,54,57,59,60,61,62,63,64)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,65,66,68,69,71,73,74,76,78,80)
	MR_init_label5(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,36,13,88,89,94)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__create_new_memo_goal__[4]_0'/18 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(24);
	MR_sv(24) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(16) = MR_r9;
	MR_sv(17) = MR_r10;
	MR_sv(18) = MR_r11;
	MR_sv(20) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(21) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(21);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i3);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_tfield(0, MR_sv(2), 1);
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i4);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_sv(10) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i5);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_tfield(0, MR_sv(18), 0);
	MR_r1 = MR_sv(1);
	MR_np_call_localret_ent(hlds__code_model__determinism_to_code_model_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i6);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__infinite_recursion_msg_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(19) = MR_r1;
	MR_sv(14) = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r1 = MR_sv(14);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(list__length_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i9);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_r1 = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r2 = MR_sv(21);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,17);
	MR_r4 = MR_sv(8);
	MR_np_call_localret_ent(fn__list__map_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i12);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(13),0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i14);
	}
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_det_status_type_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i15);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("table_memo_det_setup_shortcut", 29);
	MR_r3 = (MR_Word) MR_string_const("MR_tbl_memo_det_setup", 21);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(3);
	MR_r8 = MR_sv(11);
	MR_r9 = MR_sv(16);
	MR_r10 = MR_sv(17);
	MR_r11 = MR_sv(18);
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i16);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r7;
	MR_sv(5) = MR_r5;
	MR_sv(7) = MR_r6;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_r3;
	MR_sv(12) = MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tempr3;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(19);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr2;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_error_goal_8_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i17);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,17)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(12);
	MR_sv(12) = MR_r3;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(14);
	MR_r4 = MR_sv(11);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_tempr3;
	MR_r7 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i18);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r4;
	MR_sv(18) = MR_r3;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(11);
	MR_r5 = MR_tempr2;
	MR_r6 = MR_tempr3;
	MR_r7 = MR_sv(18);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i19);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,19)
	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_sv(6);
	MR_sv(6) = MR_r3;
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_r2;
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(21);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i21);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(8);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(2) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_sv(8) = MR_r1;
	MR_r2 = MR_sv(13);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i24);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(2);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_det_active_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i26);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(12);
	MR_sv(12) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_det_inactive_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i28);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_det_succeeded_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i30);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(6);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(12);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 4);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 3;
	MR_tempr4 = MR_sv(5);
	MR_tfield(3, MR_tempr3, 1) = MR_tempr4;
	MR_tfield(3, MR_tempr3, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 3) = MR_tempr2;
	MR_r3 = MR_tempr4;
	MR_r4 = MR_sv(8);
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(21);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i88);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_sv(13),1)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i36);
	}
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_semi_status_type_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i37);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const("table_memo_semi_setup_shortcut", 30);
	MR_r3 = (MR_Word) MR_string_const("MR_tbl_memo_semi_setup", 22);
	MR_r4 = MR_sv(7);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	MR_r7 = MR_sv(3);
	MR_r8 = MR_sv(11);
	MR_r9 = MR_sv(16);
	MR_r10 = MR_sv(17);
	MR_r11 = MR_sv(18);
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_simple_call_table_lookup_goal_18_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i38);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,38)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r7;
	MR_sv(5) = MR_r5;
	MR_sv(7) = MR_r6;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr3 = MR_r3;
	MR_sv(16) = MR_tempr3;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_tempr3;
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(11);
	MR_r3 = MR_sv(19);
	MR_r4 = MR_tempr1;
	MR_r5 = MR_tempr2;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_error_goal_8_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i39);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(22) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(3);
	MR_r3 = MR_sv(14);
	MR_r4 = MR_sv(11);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tempr2;
	MR_r7 = MR_sv(16);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i40);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r3;
	MR_sv(14) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(11);
	MR_r5 = MR_tempr1;
	MR_r6 = MR_tempr2;
	MR_r7 = MR_sv(18);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i41);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(6);
	MR_sv(23) = MR_r3;
	MR_sv(6) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(21);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i43);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(8);
	MR_sv(8) = MR_r1;
	MR_r1 = MR_sv(15);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_sv(6);
	MR_r4 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__goal_util__create_renaming_9_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i44);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(2);
	MR_sv(2) = MR_r3;
	MR_sv(6) = MR_r4;
	MR_sv(16) = MR_r1;
	MR_sv(17) = MR_r2;
	MR_r1 = MR_r5;
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__hlds_goal__rename_some_vars_in_goal_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i45);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,45)
	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(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(14);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i46);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr1, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr1, 2) = MR_r1;
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(3);
	MR_tfield(1, MR_r2, 1) = MR_sv(15);
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_tempr1;
	MR_r1 = MR_sv(21);
	MR_r3 = MR_tempr2;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i49);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(21);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i50);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(13);
	MR_r3 = (MR_Integer) 0;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i51);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,51)
	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(6);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_sv(6) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i53);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,53)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i54);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,54)
	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(14);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(14), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(14), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__trie_node_type_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i57);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(14);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(14) = MR_r2;
	MR_r1 = MR_sv(18);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i59);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__cur_table_node_name_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i60);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,60)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(");", 2);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i61);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,61)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i62);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,62)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(15);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i63);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,63)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i64);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,64)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_mark_as_failed", 26);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i65);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,65)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(15) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i66);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,66)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(19) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(14);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(14) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i68);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,68)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_mark_as_failed", 25);
	MR_r2 = (MR_Integer) 7;
	MR_r3 = MR_sv(14);
	MR_r4 = MR_sv(19);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(15);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(12);
	MR_r10 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i69);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,69)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 3, (MR_Integer) 5);
	MR_tfield(3, MR_tempr1, 0) = (MR_Integer) 6;
	MR_tfield(3, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(3, MR_tempr1, 2) = MR_sv(2);
	MR_tfield(3, MR_tempr1, 3) = MR_sv(6);
	MR_tfield(3, MR_tempr1, 4) = MR_r1;
	MR_sv(2) = MR_tempr1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(13);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i71);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,71)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(12) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__hlds_goal__fail_goal_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i73);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_semi_active_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i74);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_sv(6) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(22);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_semi_inactive_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i76);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(12);
	MR_sv(12) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_semi_succeeded_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i78);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_sv(14) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(23);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_semi_failed_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i80);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_r4 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(2);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr3;
	MR_tfield(1, MR_tempr3, 0) = MR_sv(14);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(12);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr4, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr4;
	MR_tfield(1, MR_tempr4, 0) = MR_sv(6);
	MR_tfield(1, MR_tempr4, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr5, 3, (MR_Integer) 4);
	MR_sv(2) = MR_tempr5;
	MR_tfield(3, MR_tempr5, 0) = (MR_Integer) 3;
	MR_tempr6 = MR_sv(5);
	MR_tfield(3, MR_tempr5, 1) = MR_tempr6;
	MR_tfield(3, MR_tempr5, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr5, 3) = MR_tempr4;
	MR_r3 = MR_tempr6;
	MR_r4 = MR_sv(8);
	MR_r1 = MR_sv(20);
	MR_r2 = MR_sv(21);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i88);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("transform_hlds.table_gen", 24);
	MR_r2 = (MR_Word) MR_string_const("predicate \140transform_hlds.table_gen.create_new_memo_goal\'/18", 60);
	MR_r3 = (MR_Word) MR_string_const("model_non", 9);
	MR_np_call_localret_ent(require__unexpected_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i13);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i88);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(13);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i89);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,89)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0_i94);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_103_111_97_108_95_95_91_52_93_95_48_18_0,94)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(17);
	MR_r3 = MR_sv(18);
	MR_r4 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_decr_sp_and_return(24);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module146)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0);
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,3,4,5,7,8,9,10,11,12,13)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,14,15,16,19,21,22,23,24,25,26)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,27,28,29,30,31,32,33,34,35,36)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,37,39,40,41,42,43,44,45,46,49)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,50,51,52,57,58,59,70,72,73,74)
	MR_init_label6(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,76,78,80,87,88,93)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__create_new_memo_non_goal__[4]_0'/19 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(29);
	MR_sv(29) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(4) = MR_r4;
	MR_sv(5) = MR_r5;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r6;
	MR_sv(6) = MR_tempr1;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r8;
	MR_sv(14) = MR_r9;
	MR_sv(15) = MR_r10;
	MR_sv(16) = MR_r11;
	MR_sv(26) = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_sv(27) = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r1 = MR_sv(26);
	MR_r2 = MR_sv(27);
	MR_r3 = MR_tempr1;
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i3);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_sv(10) = MR_tfield(0, MR_sv(2), 1);
	MR_r1 = MR_sv(10);
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_instmap_delta_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i4);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(10);
	MR_sv(10) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__goal_info_get_context_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i5);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(11) = MR_r1;
	MR_sv(12) = MR_tfield(0, MR_sv(16), 0);
	MR_sv(28) = (MR_Word) MR_TAG_COMMON(0,2,1);
	MR_r1 = MR_sv(28);
	MR_r2 = MR_sv(8);
	MR_np_call_localret_ent(list__length_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(13) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__infinite_recursion_msg_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(14);
	MR_r5 = MR_sv(15);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_error_goal_8_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i9);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(14) = MR_r3;
	MR_sv(15) = MR_r1;
	MR_sv(17) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__need_minimal_model_msg_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i10);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_sv(11);
	MR_r3 = MR_tempr1;
	MR_r4 = MR_sv(15);
	MR_r5 = MR_sv(17);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_error_goal_8_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(7);
	MR_sv(7) = MR_r3;
	MR_tempr2 = MR_r1;
	MR_r1 = MR_tempr1;
	MR_tempr3 = MR_r2;
	MR_r2 = MR_sv(4);
	MR_r3 = MR_sv(5);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_tempr2;
	MR_r7 = MR_tempr3;
	MR_r8 = MR_sv(16);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_memo_non_call_table_lookup_goal_15_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i12);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r4;
	MR_tempr2 = MR_sv(4);
	MR_sv(4) = MR_r7;
	MR_tempr3 = MR_sv(13);
	MR_sv(13) = MR_r5;
	MR_sv(15) = MR_r6;
	MR_tempr4 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_tempr5 = MR_r2;
	MR_r2 = MR_tempr2;
	MR_tempr6 = MR_r3;
	MR_r3 = MR_sv(5);
	MR_r5 = MR_tempr3;
	MR_r6 = MR_tempr1;
	MR_r7 = MR_sv(11);
	MR_r8 = MR_tempr4;
	MR_r9 = MR_tempr5;
	MR_r10 = MR_tempr6;
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_memo_non_save_goals_15_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i13);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r4;
	MR_sv(16) = MR_r5;
	MR_sv(24) = MR_r3;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_tempr2 = MR_r2;
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(10);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(11);
	MR_r6 = MR_tempr1;
	MR_r7 = MR_tempr2;
	MR_r8 = MR_sv(24);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__generate_memo_non_restore_goal_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i14);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(17) = MR_r3;
	MR_sv(22) = MR_r1;
	MR_sv(23) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_name_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i15);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i16);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(18);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(19), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(19), 0) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_record_type_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i19);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 4);
	MR_tfield(0, MR_r2, 0) = MR_sv(3);
	MR_tfield(0, MR_r2, 1) = MR_sv(19);
	MR_tfield(0, MR_r2, 2) = MR_r1;
	MR_tfield(0, MR_r2, 3) = (MR_Integer) 0;
	MR_sv(19) = MR_r2;
	MR_r1 = MR_sv(24);
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__get_debug_arg_string_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i21);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(20) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i22);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i23);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(20);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i24);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i25);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_mark_as_incomplete", 30);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i26);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(21) = MR_r1;
	MR_r1 = MR_sv(18);
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i27);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i28);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(20);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i29);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i30);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_mark_as_active_and_fail", 35);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i31);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(18);
	MR_sv(18) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = (MR_Word) MR_string_const(");\n", 3);
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i32);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,32)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i33);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,33)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(20);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i34);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,34)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i35);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,35)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_mark_as_complete_and_fail", 37);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i36);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,36)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(20) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i37);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,37)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(25) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(19);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(19) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i39);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,39)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_mark_as_incomplete", 29);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(19);
	MR_r4 = MR_sv(25);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(21);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(12);
	MR_r10 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i40);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,40)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(19) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i41);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,41)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(21) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i42);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,42)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_mark_as_active_and_fail", 34);
	MR_r2 = (MR_Integer) 7;
	MR_r3 = MR_sv(21);
	MR_r4 = MR_sv(25);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(18);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(12);
	MR_r10 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i43);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,43)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(18) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i44);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,44)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(21) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i45);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,45)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_mark_as_complete_and_fail", 36);
	MR_r2 = (MR_Integer) 7;
	MR_r3 = MR_sv(21);
	MR_r4 = MR_sv(25);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(20);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(12);
	MR_r10 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i46);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,46)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr1, 1) = MR_sv(16);
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_sv(12) = MR_tempr2;
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_sv(2) = MR_r1;
	MR_sv(16) = MR_tempr1;
	MR_r1 = MR_sv(26);
	MR_r2 = MR_sv(27);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(9);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i49);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,49)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(16) = MR_r1;
	MR_r1 = MR_tfield(3, MR_sv(12), 2);
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i50);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,50)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(hlds__instmap__instmap_delta_restrict_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i51);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,51)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(16);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 3;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i52);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,52)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_sv(16) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(18);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_sv(19);
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr4, 3, (MR_Integer) 2);
	MR_sv(18) = MR_tempr4;
	MR_tfield(3, MR_tempr4, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr4, 1) = MR_tempr3;
	MR_sv(12) = MR_r1;
	MR_r1 = MR_sv(27);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(fn__set__make_singleton_set_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i57);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,57)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(19) = MR_r1;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_np_call_localret_ent(transform_hlds__table_gen__create_instmap_delta_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i58);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,58)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(19);
	MR_r2 = MR_tempr1;
	MR_r3 = (MR_Integer) 3;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i59);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,59)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5, MR_tempr6;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(18);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(16);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_tempr2;
	MR_tempr6 = MR_sv(12);
	MR_tfield(0, MR_tempr1, 1) = MR_tempr6;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr3, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr3, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr3, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 2);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 2;
	MR_tfield(3, MR_tempr2, 1) = MR_tempr3;
	MR_tag_alloc_heap(MR_tempr4, 0, (MR_Integer) 2);
	MR_sv(2) = MR_tempr4;
	MR_tfield(0, MR_tempr4, 0) = MR_tempr2;
	MR_tfield(0, MR_tempr4, 1) = MR_tempr6;
	MR_tag_alloc_heap(MR_tempr5, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr5;
	MR_tfield(1, MR_tempr5, 0) = MR_sv(3);
	MR_tfield(1, MR_tempr5, 1) = MR_sv(6);
	MR_r1 = MR_sv(26);
	MR_r2 = MR_sv(27);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_105_115_116_95_116_111_95_115_101_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i70);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,70)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(6) = MR_r1;
	MR_r1 = MR_sv(28);
	MR_r2 = MR_sv(27);
	MR_r3 = (MR_Word) MR_TAG_COMMON(0,4,18);
	MR_r4 = MR_sv(8);
	MR_np_call_localret_ent(fn__list__map_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i72);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,72)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_vars_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i73);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,73)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(8) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_active_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i74);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,74)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_sv(12) = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(14);
	}
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_inactive_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i76);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,76)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_incomplete_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i78);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,78)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 3);
	MR_tfield(0, MR_r2, 0) = MR_r1;
	MR_tfield(0, MR_r2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_r2, 2) = MR_sv(7);
	MR_sv(7) = MR_r2;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__memo_non_complete_cons_id_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i80);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,80)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 3);
	MR_tfield(0, MR_tempr1, 0) = MR_r1;
	MR_tfield(0, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tfield(0, MR_tempr1, 2) = MR_sv(17);
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(7);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr2, 1) = MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(12);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr3, 3, (MR_Integer) 4);
	MR_sv(2) = MR_tempr3;
	MR_tfield(3, MR_tempr3, 0) = (MR_Integer) 3;
	MR_tempr4 = MR_sv(13);
	MR_tfield(3, MR_tempr3, 1) = MR_tempr4;
	MR_tfield(3, MR_tempr3, 2) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr3, 3) = MR_tempr1;
	MR_r1 = MR_sv(26);
	MR_r2 = MR_sv(27);
	MR_r3 = MR_tempr4;
	MR_r4 = MR_sv(6);
	}
	MR_np_call_localret_ent(f_115_101_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_105_110_115_101_114_116_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i87);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,87)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(1);
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i88);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,88)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(15);
	MR_tfield(1, MR_tempr1, 1) = MR_tempr2;
	MR_tag_alloc_heap(MR_tempr2, 3, (MR_Integer) 3);
	MR_tfield(3, MR_tempr2, 0) = (MR_Integer) 1;
	MR_tfield(3, MR_tempr2, 1) = (MR_Integer) 0;
	MR_tfield(3, MR_tempr2, 2) = MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_tempr2;
	MR_r1 = MR_sv(9);
	MR_r2 = MR_sv(10);
	MR_r3 = MR_tempr1;
	MR_r4 = (MR_Integer) 2;
	MR_r5 = MR_sv(11);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__goal_info_init_hide_6_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0_i93);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_99_114_101_97_116_101_95_110_101_119_95_109_101_109_111_95_110_111_110_95_103_111_97_108_95_95_91_52_93_95_48_19_0,93)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 2);
	MR_r5 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(0, MR_tempr1, 1) = MR_r1;
	MR_r1 = MR_sv(22);
	MR_r2 = MR_sv(23);
	MR_r3 = MR_sv(24);
	MR_r4 = MR_sv(3);
	MR_r6 = MR_sv(4);
	MR_r7 = MR_sv(5);
	MR_decr_sp_and_return(29);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef 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__table_gen_module147)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0);
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,2,5,8,11,12,14,15,16,18,10)
	MR_init_label9(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,19,20,22,23,24,25,26,28,29)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__generate_memo_save_goal__[1]_0'/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(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_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_Word MR_tempr1;
	MR_tempr1 = MR_r7;
	MR_sv(5) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_sv(8) = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i2);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_string_const("cur_node", 8);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(9), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(9), 0) = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i5);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_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_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_trie_node", 12);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_r9 = MR_tempr1;
	MR_tfield(0, MR_tempr1, 0) = MR_sv(2);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(9);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 0;
	if (MR_INT_LE(MR_sv(3),0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i10);
	}
	MR_tempr2 = MR_sv(1);
	MR_sv(1) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = (MR_Word) MR_string_const("cur_node", 8);
	MR_r3 = MR_sv(3);
	MR_r4 = (MR_Word) MR_string_const("MR_tbl_memo_create_answer_block", 31);
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(6);
	MR_r7 = MR_sv(7);
	MR_r8 = MR_sv(8);
	}
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r4;
	MR_sv(3) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r7;
	MR_sv(8) = MR_r1;
	MR_sv(9) = MR_r2;
	MR_sv(10) = MR_r3;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i12);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_tempr1;
	MR_r1 = MR_tempr2;
	MR_r2 = MR_sv(7);
	}
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i14);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(7) = MR_r1;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i15);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_fill_answer_block_shortcut", 37);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(2);
	MR_r6 = MR_sv(7);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(5);
	MR_r10 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i16);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r3 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_sv(3);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i18);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,18)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r4 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(10);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r9;
	MR_r1 = MR_tfield(0, MR_sv(8), 0);
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i19);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i20);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i22);
	}
	MR_r1 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r2 = (MR_Word) MR_string_const(", cur_node);", 12);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i23);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_r2 = (MR_Word) MR_string_const(", cur_node);", 12);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i23);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,23)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i24);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,24)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_mark_as_succeeded", 29);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i25);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(2) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i26);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_sv(3) = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_sv(1) = MR_r1;
	}
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_bind_no_var_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i28);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_mark_as_succeeded", 28);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = MR_sv(2);
	MR_r7 = (MR_Integer) 2;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(5);
	MR_r10 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0_i29);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_115_97_118_101_95_103_111_97_108_95_95_91_49_93_95_48_11_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_r4 = MR_tempr1;
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	MR_r3 = MR_sv(8);
	MR_decr_sp_and_return(11);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module148)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0);
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,2,3,5,4,6,7,8,9,10,11)
	MR_init_label5(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,12,13,14,15,16)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__generate_all_save_goals__[1]_0'/15 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_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_sv(7) = MR_r7;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r8;
	MR_sv(8) = MR_tempr1;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i2);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i3);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,3)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i5);
	}
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_r2 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i4);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r3 = MR_sv(5);
	MR_r2 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_r4 = MR_sv(6);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r2;
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i6);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r4;
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(3);
	MR_sv(3) = MR_r5;
	MR_sv(6) = MR_r6;
	MR_sv(7) = MR_r1;
	MR_sv(8) = MR_r2;
	MR_sv(9) = MR_r3;
	MR_r1 = MR_tempr1;
	}
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Word) MR_string_const(", answerblock);\n", 16);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i9);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,9)
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i10);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_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_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i12);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,12)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i13);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(4);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i14);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,14)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i15);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,15)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(6);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0_i16);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_97_108_108_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_15_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(7);
	MR_r2 = MR_sv(8);
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(3);
	MR_r6 = (MR_Word) MR_string_const("\tMR_AnswerBlock answerblock;\n", 29);
	MR_r7 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module149)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0);
	MR_init_label8(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,22,5,6,7,8,9,10,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__generate_save_goals__[1]_0'/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(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i22);
	}
	MR_r1 = MR_r4;
	MR_r2 = MR_r5;
	MR_r3 = MR_r6;
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_r5 = (MR_Word) MR_tbmkword(0, 0);
	MR_r6 = (MR_Word) MR_string_const("", 0);
	MR_proceed();
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr2 = MR_r5;
	MR_sv(4) = MR_tempr2;
	MR_tempr3 = MR_r6;
	MR_sv(5) = MR_tempr3;
	MR_sv(6) = MR_tfield(1, MR_r1, 1);
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 2);
	MR_sv(9) = MR_tfield(0, MR_tempr3, 0);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(7);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i5);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(9);
	MR_sv(9) = MR_r1;
	MR_r1 = MR_tempr1;
	MR_r2 = MR_sv(9);
	}
	MR_np_call_localret_ent(fn__check_hlds__type_util__classify_type_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i6);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(9);
	MR_r3 = MR_sv(7);
	MR_r4 = MR_sv(8);
	MR_r5 = MR_sv(1);
	MR_r6 = MR_sv(2);
	MR_r7 = MR_sv(3);
	MR_r8 = MR_sv(4);
	MR_r9 = MR_sv(5);
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_save_call_for_type_15_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3, MR_tempr4, MR_tempr5;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r4;
	MR_sv(4) = MR_r5;
	MR_tempr2 = MR_sv(6);
	MR_sv(6) = MR_r6;
	MR_tempr3 = MR_r1;
	MR_r1 = MR_tempr2;
	MR_tempr4 = MR_r2;
	MR_r2 = MR_tempr1;
	MR_tempr5 = MR_r3;
	MR_r3 = MR_sv(2);
	MR_r4 = MR_tempr3;
	MR_r5 = MR_tempr4;
	MR_r6 = MR_tempr5;
	}
	MR_np_localcall_lab(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_sv(3) = MR_r3;
	MR_sv(5) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(hlds__hlds_goal, foreign_arg);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_r4;
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i9);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,9)
	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(hlds__hlds_goal, hlds_goal);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(5);
	}
	MR_np_call_localret_ent(fn__f_108_105_115_116_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i10);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_115_97_118_101_95_103_111_97_108_115_95_95_91_49_93_95_48_12_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_sv(5);
	MR_r6 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module150)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,4,3,5,6,8,7,9,10,13,16)
	MR_init_label10(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,19,20,21,22,23,24,25,26,27,28)
	MR_init_label3(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,29,30,31)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__generate_memo_restore_goal__[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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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;
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i3);
	}
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_np_call_localret_ent(fn__hlds__hlds_goal__true_goal_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,4)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r1;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_sv(7);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_Word MR_tempr1;
	MR_tempr1 = MR_r7;
	MR_sv(5) = MR_tempr1;
	MR_sv(6) = MR_r5;
	MR_sv(7) = MR_r6;
	MR_r1 = MR_tfield(0, MR_tempr1, 0);
	}
	MR_np_call_localret_ent(hlds__hlds_module__module_info_get_globals_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = (MR_Integer) 287;
	MR_np_call_localret_ent(libs__globals__lookup_bool_option_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i6);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_INT_NE(MR_r1,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i8);
	}
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = (MR_Word) MR_string_const("MR_FALSE", 8);
	MR_r4 = MR_tfield(0, MR_sv(5), 0);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
	MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = (MR_Word) MR_string_const("MR_TRUE", 7);
	MR_r4 = MR_tfield(0, MR_sv(5), 0);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r3;
	MR_sv(2) = MR_r4;
	MR_np_call_localret_ent(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i9);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,9)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(5) = MR_r3;
	MR_sv(6) = MR_r4;
	MR_sv(7) = MR_r5;
	MR_sv(8) = MR_r1;
	MR_sv(9) = MR_r2;
	MR_np_call_localret_ent(fn__parse_tree__prog_mode__in_mode_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i10);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,10)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = (MR_Word) MR_string_const("base", 4);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_tag_alloc_heap(MR_sv(10), 1, (MR_Integer) 1);
	MR_tfield(1, MR_sv(10), 0) = MR_r2;
	MR_np_call_localret_ent(fn__mdbcomp__prim_data__mercury_table_builtin_module_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i13);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,13)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_r1;
	MR_tfield(1, MR_tempr1, 1) = (MR_Word) MR_string_const("ml_trie_node", 12);
	MR_tag_alloc_heap(MR_r1, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r1, 0) = MR_tempr1;
	MR_tfield(0, MR_r1, 1) = (MR_Integer) 0;
	MR_r2 = (MR_Word) MR_tbmkword(0, 0);
	}
	MR_np_call_localret_ent(parse_tree__prog_type__construct_type_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,16)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_tfield(0, MR_tempr1, 0) = MR_sv(3);
	MR_tfield(0, MR_tempr1, 1) = MR_sv(10);
	MR_tfield(0, MR_tempr1, 2) = MR_r1;
	MR_tfield(0, MR_tempr1, 3) = (MR_Integer) 0;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(3) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_tempr1;
	MR_tfield(1, MR_tempr2, 1) = (MR_Word) MR_tbmkword(0, 0);
	MR_r1 = (MR_Word) MR_string_const(");\n", 3);
	MR_r2 = MR_sv(7);
	}
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i19);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,19)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("answerblock", 11);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i20);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,20)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i21);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,21)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("base", 4);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i22);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const(", ", 2);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i23);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_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_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_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_Word) MR_string_const("(", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i25);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,25)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("MR_tbl_memo_get_answer_block", 28);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i26);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,26)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\t", 1);
	MR_r2 = MR_tempr1;
	}
	MR_np_call_localret_ent(fn__f_115_116_114_105_110_103_95_95_43_43_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i27);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,27)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(1) = MR_r1;
	MR_np_call_localret_ent(fn__transform_hlds__table_gen__tabling_c_attributes_dupl_0_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i28);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,28)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("\tMR_AnswerBlock answerblock;\n", 29);
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i29);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,29)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r2 = MR_sv(5);
	MR_sv(5) = MR_r1;
	MR_r1 = MR_r2;
	MR_np_call_localret_ent(fn__hlds__instmap__instmap_delta_from_assoc_list_1_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i30);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,30)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_string_const("table_memo_get_answer_block_shortcut", 36);
	MR_r2 = (MR_Integer) 0;
	MR_r3 = MR_sv(1);
	MR_r4 = MR_sv(3);
	MR_r5 = MR_sv(6);
	MR_r6 = MR_sv(5);
	MR_r7 = (MR_Integer) 1;
	MR_r8 = MR_tempr1;
	MR_r9 = MR_sv(2);
	MR_r10 = MR_sv(4);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__table_generate_foreign_proc_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0_i31);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_109_101_109_111_95_114_101_115_116_111_114_101_95_103_111_97_108_95_95_91_49_93_95_48_10_0,31)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r3 = MR_r1;
	MR_r1 = MR_sv(8);
	MR_r2 = MR_sv(9);
	MR_decr_sp_and_return(11);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module151)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0);
	MR_init_label6(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,22,5,6,7,8,11)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__generate_restore_goals__[1]_0'/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(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TESTR(MR_r1,0,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0_i22);
	}
	MR_r1 = MR_r5;
	MR_r2 = MR_r6;
	MR_r3 = (MR_Word) MR_tbmkword(0, 0);
	MR_r4 = (MR_Word) MR_tbmkword(0, 0);
	MR_r5 = (MR_Word) MR_string_const("", 0);
	MR_proceed();
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,22)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(10);
	MR_sv(10) = (MR_Word) MR_succip;
	MR_sv(1) = MR_r2;
	MR_sv(2) = MR_r3;
	MR_sv(3) = MR_r4;
	MR_sv(4) = MR_r5;
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr2 = MR_r6;
	MR_sv(5) = MR_tempr2;
	MR_sv(6) = MR_tfield(1, MR_r1, 1);
	MR_tempr1 = MR_tfield(1, MR_r1, 0);
	MR_sv(7) = MR_tfield(0, MR_tempr1, 0);
	MR_sv(8) = MR_tfield(0, MR_tempr1, 2);
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, mer_type);
	MR_r4 = MR_tempr2;
	MR_r5 = MR_sv(7);
	}
	MR_np_call_localret_ent(f_109_97_112_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_111_114_95_102_117_110_99_95_95_108_111_111_107_117_112_95_95_91_75_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_3_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0_i5);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,5)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_sv(9) = MR_r1;
	MR_r1 = MR_sv(3);
	MR_r2 = MR_sv(9);
	MR_np_call_localret_ent(fn__check_hlds__type_util__classify_type_2_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0_i6);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(2);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_sv(9);
	MR_r4 = MR_sv(1);
	MR_r5 = MR_sv(7);
	MR_r6 = MR_sv(8);
	}
	MR_np_call_localret_ent(transform_hlds__table_gen__gen_restore_call_for_type_9_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0_i7);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tempr1 = MR_sv(1);
	MR_sv(1) = MR_r1;
	MR_tempr2 = MR_sv(2);
	MR_sv(2) = MR_r2;
	MR_tempr3 = MR_sv(3);
	MR_sv(3) = MR_r3;
	MR_r1 = MR_sv(6);
	MR_r2 = MR_tempr1;
	MR_r3 = MR_tempr2;
	MR_r4 = MR_tempr3;
	MR_r5 = MR_sv(4);
	MR_r6 = MR_sv(5);
	}
	MR_np_localcall_lab(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,
		f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0_i8);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,8)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2, MR_tempr3;
	MR_tag_alloc_heap(MR_tempr1, 1, (MR_Integer) 2);
	MR_tfield(1, MR_tempr1, 0) = MR_sv(1);
	MR_tfield(1, MR_tempr1, 1) = MR_r3;
	MR_tag_alloc_heap(MR_tempr2, 1, (MR_Integer) 2);
	MR_sv(4) = MR_tempr2;
	MR_tfield(1, MR_tempr2, 0) = MR_sv(2);
	MR_tfield(1, MR_tempr2, 1) = MR_r4;
	MR_sv(1) = MR_r1;
	MR_sv(2) = MR_r2;
	MR_tempr3 = MR_sv(3);
	MR_sv(3) = MR_tempr1;
	MR_r1 = MR_tempr3;
	MR_r2 = MR_r5;
	}
	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_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0_i11);
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_103_101_110_101_114_97_116_101_95_114_101_115_116_111_114_101_95_103_111_97_108_115_95_95_91_49_93_95_48_11_0,11)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1;
	MR_tempr1 = MR_r1;
	MR_r1 = MR_sv(1);
	MR_r2 = MR_sv(2);
	MR_r3 = MR_sv(3);
	MR_r4 = MR_sv(4);
	MR_r5 = MR_tempr1;
	MR_decr_sp_and_return(10);
	}
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module152)
	MR_init_entry1(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__func__project_var__[1]_0'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_95_91_49_93_95_48_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module153)
	MR_init_entry1(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_112_111_115_95_95_91_49_93_95_48_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_112_111_115_95_95_91_49_93_95_48_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__func__project_var_pos__[1]_0'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_112_111_115_95_95_91_49_93_95_48_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_tfield(0, MR_r1, 0);
	MR_tfield(0, MR_r2, 1) = MR_tfield(0, MR_r1, 2);
	MR_r1 = MR_r2;
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module154)
	MR_init_entry1(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0);
	MR_init_label1(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__func__project_var_init_inst__[1]_0'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_incr_sp(2);
	MR_sv(2) = (MR_Word) MR_succip;
	MR_sv(1) = MR_tfield(0, MR_r2, 0);
	MR_r2 = MR_tfield(0, MR_r2, 1);
	MR_np_call_localret_ent(check_hlds__mode_util__mode_get_insts_4_0,
		fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0_i2);
MR_def_label(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_118_97_114_95_105_110_105_116_95_105_110_115_116_95_95_91_49_93_95_48_2_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_tag_alloc_heap(MR_r2, 0, (MR_Integer) 2);
	MR_tfield(0, MR_r2, 0) = MR_sv(1);
	MR_tfield(0, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp_and_return(2);
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module155)
	MR_init_entry1(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_109_111_100_101_95_95_91_49_93_95_48_1_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_109_111_100_101_95_95_91_49_93_95_48_1_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__func__project_mode__[1]_0'/2 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(fn__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_102_117_110_99_95_95_112_114_111_106_101_99_116_95_109_111_100_101_95_95_91_49_93_95_48_1_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = MR_tfield(0, MR_r1, 1);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE


MR_BEGIN_MODULE(transform_hlds__table_gen_module156)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0);
	MR_init_label3(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0,6,7,2)
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__reallocate_slot_numbers__[1]_0'/3 mode 0 */
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_local_thread_engine_base
#endif
MR_def_static(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	if (MR_LTAGS_TEST(MR_r1,0,0)) {
		MR_GOTO_LAB(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0_i2);
	}
	MR_r4 = (MR_Word) MR_sp;
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0,6)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_incr_sp(1);
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tag_alloc_heap(MR_tempr1, 0, (MR_Integer) 4);
	MR_sv(1) = MR_tempr1;
	MR_tempr2 = MR_tfield(1, MR_r1, 0);
	MR_tfield(0, MR_tempr1, 0) = MR_tfield(0, MR_tempr2, 0);
	MR_tfield(0, MR_tempr1, 1) = MR_tfield(0, MR_tempr2, 1);
	MR_tfield(0, MR_tempr1, 2) = MR_r2;
	MR_tfield(0, MR_tempr1, 3) = MR_tfield(0, MR_tempr2, 3);
	MR_r1 = MR_tfield(1, MR_r1, 1);
	MR_r2 = ((MR_Integer) MR_r2 + (MR_Integer) 1);
	if (MR_LTAGS_TESTR(MR_r1,0,0))
		continue;
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	}
	break; } /* end while */
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0,7)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	while (1) {
	MR_tag_alloc_heap(MR_r2, 1, (MR_Integer) 2);
	MR_tfield(1, MR_r2, 0) = MR_sv(1);
	MR_tfield(1, MR_r2, 1) = MR_r1;
	MR_r1 = MR_r2;
	MR_decr_sp(1);
	if (((MR_Integer) MR_sp > (MR_Integer) MR_r4))
		continue;
	MR_proceed();
	break; } /* end while */
MR_def_label(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_114_101_97_108_108_111_99_97_116_101_95_115_108_111_116_95_110_117_109_98_101_114_115_95_95_91_49_93_95_48_3_0,2)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	MR_r1 = (MR_Word) MR_tbmkword(0, 0);
	MR_proceed();
#ifdef MR_maybe_local_thread_engine_base
	#undef MR_maybe_local_thread_engine_base
	#define MR_maybe_local_thread_engine_base MR_thread_engine_base
#endif
MR_END_MODULE

MR_decl_entry(f_108_105_115_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0);

MR_BEGIN_MODULE(transform_hlds__table_gen_module157)
	MR_init_entry1(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_118_97_114_95_98_101_108_111_110_103_95_116_111_95_108_105_115_116_95_95_91_49_93_95_48_2_0);
	MR_INIT_PROC_LAYOUT_ADDR(mercury__f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_118_97_114_95_98_101_108_111_110_103_95_116_111_95_108_105_115_116_95_95_91_49_93_95_48_2_0);
MR_BEGIN_CODE

/*-------------------------------------------------------------------------*/
/* code for 'UnusedArgs__pred__var_belong_to_list__[1]_0'/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(f_116_114_97_110_115_102_111_114_109_95_104_108_100_115_95_95_116_97_98_108_101_95_103_101_110_95_95_85_110_117_115_101_100_65_114_103_115_95_95_112_114_101_100_95_95_118_97_114_95_98_101_108_111_110_103_95_116_111_95_108_105_115_116_95_95_91_49_93_95_48_2_0)
	MR_MAYBE_INIT_LOCAL_THREAD_ENGINE_BASE
	{
	MR_Word MR_tempr1, MR_tempr2;
	MR_tempr1 = MR_r1;
	MR_r1 = (MR_Word) MR_CTOR0_ADDR(parse_tree__prog_data, prog_var_type);
	MR_tempr2 = MR_r2;
	MR_r2 = (MR_Word) MR_TAG_COMMON(0,2,0);
	MR_r3 = MR_tfield(0, MR_tempr2, 0);
	MR_r4 = MR_tempr1;
	MR_np_tailcall_ent(f_108_105_115_116_95_95_84_121_112_101_83_112_101_99_79_102_95_95_112_114_101_100_95_95_109_101_109_98_101_114_95_95_91_84_32_61_32_118_97_114_40_86_95_50_41_93_95_48_95_49_2_0);
	}
#ifdef MR_maybe_local_thread_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__table_gen_maybe_bunch_0(void)
{
	transform_hlds__table_gen_module0();
	transform_hlds__table_gen_module1();
	transform_hlds__table_gen_module2();
	transform_hlds__table_gen_module3();
	transform_hlds__table_gen_module4();
	transform_hlds__table_gen_module5();
	transform_hlds__table_gen_module6();
	transform_hlds__table_gen_module7();
	transform_hlds__table_gen_module8();
	transform_hlds__table_gen_module9();
	transform_hlds__table_gen_module10();
	transform_hlds__table_gen_module11();
	transform_hlds__table_gen_module12();
	transform_hlds__table_gen_module13();
	transform_hlds__table_gen_module14();
	transform_hlds__table_gen_module15();
	transform_hlds__table_gen_module16();
	transform_hlds__table_gen_module17();
	transform_hlds__table_gen_module18();
	transform_hlds__table_gen_module19();
	transform_hlds__table_gen_module20();
	transform_hlds__table_gen_module21();
	transform_hlds__table_gen_module22();
	transform_hlds__table_gen_module23();
	transform_hlds__table_gen_module24();
	transform_hlds__table_gen_module25();
	transform_hlds__table_gen_module26();
	transform_hlds__table_gen_module27();
	transform_hlds__table_gen_module28();
	transform_hlds__table_gen_module29();
	transform_hlds__table_gen_module30();
	transform_hlds__table_gen_module31();
	transform_hlds__table_gen_module32();
	transform_hlds__table_gen_module33();
	transform_hlds__table_gen_module34();
	transform_hlds__table_gen_module35();
	transform_hlds__table_gen_module36();
	transform_hlds__table_gen_module37();
	transform_hlds__table_gen_module38();
	transform_hlds__table_gen_module39();
}

static void mercury__transform_hlds__table_gen_maybe_bunch_1(void)
{
	transform_hlds__table_gen_module40();
	transform_hlds__table_gen_module41();
	transform_hlds__table_gen_module42();
	transform_hlds__table_gen_module43();
	transform_hlds__table_gen_module44();
	transform_hlds__table_gen_module45();
	transform_hlds__table_gen_module46();
	transform_hlds__table_gen_module47();
	transform_hlds__table_gen_module48();
	transform_hlds__table_gen_module49();
	transform_hlds__table_gen_module50();
	transform_hlds__table_gen_module51();
	transform_hlds__table_gen_module52();
	transform_hlds__table_gen_module53();
	transform_hlds__table_gen_module54();
	transform_hlds__table_gen_module55();
	transform_hlds__table_gen_module56();
	transform_hlds__table_gen_module57();
	transform_hlds__table_gen_module58();
	transform_hlds__table_gen_module59();
	transform_hlds__table_gen_module60();
	transform_hlds__table_gen_module61();
	transform_hlds__table_gen_module62();
	transform_hlds__table_gen_module63();
	transform_hlds__table_gen_module64();
	transform_hlds__table_gen_module65();
	transform_hlds__table_gen_module66();
	transform_hlds__table_gen_module67();
	transform_hlds__table_gen_module68();
	transform_hlds__table_gen_module69();
	transform_hlds__table_gen_module70();
	transform_hlds__table_gen_module71();
	transform_hlds__table_gen_module72();
	transform_hlds__table_gen_module73();
	transform_hlds__table_gen_module74();
	transform_hlds__table_gen_module75();
	transform_hlds__table_gen_module76();
	transform_hlds__table_gen_module77();
	transform_hlds__table_gen_module78();
	transform_hlds__table_gen_module79();
}

static void mercury__transform_hlds__table_gen_maybe_bunch_2(void)
{
	transform_hlds__table_gen_module80();
	transform_hlds__table_gen_module81();
	transform_hlds__table_gen_module82();
	transform_hlds__table_gen_module83();
	transform_hlds__table_gen_module84();
	transform_hlds__table_gen_module85();
	transform_hlds__table_gen_module86();
	transform_hlds__table_gen_module87();
	transform_hlds__table_gen_module88();
	transform_hlds__table_gen_module89();
	transform_hlds__table_gen_module90();
	transform_hlds__table_gen_module91();
	transform_hlds__table_gen_module92();
	transform_hlds__table_gen_module93();
	transform_hlds__table_gen_module94();
	transform_hlds__table_gen_module95();
	transform_hlds__table_gen_module96();
	transform_hlds__table_gen_module97();
	transform_hlds__table_gen_module98();
	transform_hlds__table_gen_module99();
	transform_hlds__table_gen_module100();
	transform_hlds__table_gen_module101();
	transform_hlds__table_gen_module102();
	transform_hlds__table_gen_module103();
	transform_hlds__table_gen_module104();
	transform_hlds__table_gen_module105();
	transform_hlds__table_gen_module106();
	transform_hlds__table_gen_module107();
	transform_hlds__table_gen_module108();
	transform_hlds__table_gen_module109();
	transform_hlds__table_gen_module110();
	transform_hlds__table_gen_module111();
	transform_hlds__table_gen_module112();
	transform_hlds__table_gen_module113();
	transform_hlds__table_gen_module114();
	transform_hlds__table_gen_module115();
	transform_hlds__table_gen_module116();
	transform_hlds__table_gen_module117();
	transform_hlds__table_gen_module118();
	transform_hlds__table_gen_module119();
}

static void mercury__transform_hlds__table_gen_maybe_bunch_3(void)
{
	transform_hlds__table_gen_module120();
	transform_hlds__table_gen_module121();
	transform_hlds__table_gen_module122();
	transform_hlds__table_gen_module123();
	transform_hlds__table_gen_module124();
	transform_hlds__table_gen_module125();
	transform_hlds__table_gen_module126();
	transform_hlds__table_gen_module127();
	transform_hlds__table_gen_module128();
	transform_hlds__table_gen_module129();
	transform_hlds__table_gen_module130();
	transform_hlds__table_gen_module131();
	transform_hlds__table_gen_module132();
	transform_hlds__table_gen_module133();
	transform_hlds__table_gen_module134();
	transform_hlds__table_gen_module135();
	transform_hlds__table_gen_module136();
	transform_hlds__table_gen_module137();
	transform_hlds__table_gen_module138();
	transform_hlds__table_gen_module139();
	transform_hlds__table_gen_module140();
	transform_hlds__table_gen_module141();
	transform_hlds__table_gen_module142();
	transform_hlds__table_gen_module143();
	transform_hlds__table_gen_module144();
	transform_hlds__table_gen_module145();
	transform_hlds__table_gen_module146();
	transform_hlds__table_gen_module147();
	transform_hlds__table_gen_module148();
	transform_hlds__table_gen_module149();
	transform_hlds__table_gen_module150();
	transform_hlds__table_gen_module151();
	transform_hlds__table_gen_module152();
	transform_hlds__table_gen_module153();
	transform_hlds__table_gen_module154();
	transform_hlds__table_gen_module155();
	transform_hlds__table_gen_module156();
	transform_hlds__table_gen_module157();
}

/* suppress gcc -Wmissing-decls warnings */
void mercury__transform_hlds__table_gen__init(void);
void mercury__transform_hlds__table_gen__init_type_tables(void);
void mercury__transform_hlds__table_gen__init_debugger(void);
#ifdef MR_DEEP_PROFILING
void mercury__transform_hlds__table_gen__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp);
#endif
#ifdef MR_RECORD_TERM_SIZES
void mercury__transform_hlds__table_gen__init_complexity_procs(void);
#endif
#ifdef MR_THREADSCOPE
void mercury__transform_hlds__table_gen__init_threadscope_string_table(void);
#endif

void mercury__transform_hlds__table_gen__init(void)
{
	static MR_bool done = MR_FALSE;
	if (done) {
		return;
	}
	done = MR_TRUE;
	mercury__transform_hlds__table_gen_maybe_bunch_0();
	mercury__transform_hlds__table_gen_maybe_bunch_1();
	mercury__transform_hlds__table_gen_maybe_bunch_2();
	mercury__transform_hlds__table_gen_maybe_bunch_3();
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_call_or_answer_table_0,
		transform_hlds__table_gen__call_or_answer_table_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_generator_map_0,
		transform_hlds__table_gen__generator_map_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_maybe_specified_method_0,
		transform_hlds__table_gen__maybe_specified_method_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_table_info_0,
		transform_hlds__table_gen__table_info_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_method_0,
		transform_hlds__table_gen__var_mode_method_0_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_1,
		transform_hlds__table_gen__var_mode_pos_method_1_0);
	MR_INIT_TYPE_CTOR_INFO(
		mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_0,
		transform_hlds__table_gen__var_mode_pos_method_0_0);
	mercury__transform_hlds__table_gen__init_debugger();
}

void mercury__transform_hlds__table_gen__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__table_gen__type_ctor_info_call_or_answer_table_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__table_gen__type_ctor_info_generator_map_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__table_gen__type_ctor_info_maybe_specified_method_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__table_gen__type_ctor_info_table_info_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_method_0);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_1);
	}
	{
		MR_register_type_ctor_info(
		&mercury_data_transform_hlds__table_gen__type_ctor_info_var_mode_pos_method_0);
	}
}


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

#ifdef MR_DEEP_PROFILING

void mercury__transform_hlds__table_gen__write_out_proc_statics(FILE *deep_fp, FILE *procrep_fp)
{
	MR_write_out_module_proc_reps_start(procrep_fp, &mercury_data__module_common_layout__transform_hlds__table_gen);
	MR_write_out_module_proc_reps_end(procrep_fp);
}

#endif

#ifdef MR_RECORD_TERM_SIZES

void mercury__transform_hlds__table_gen__init_complexity_procs(void)
{
}

#endif

#ifdef MR_THREADSCOPE

void mercury__transform_hlds__table_gen__init_threadscope_string_table(void)
{
}

#endif

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